zoukankan      html  css  js  c++  java
  • Eclipse添加maven依赖找不到maven库中的jar

    开发中,经常需要添加第三方jar到maven库,添加jar的方法,这里不多介绍,网上很多,下面就以添加dana 的memcached客户端jar的例子来说明这次遇到的问题与解决的方法。

    1. 安装第三方jar

    进入cmd,

    F:java_memcached-release_2.6.6>mvn install:install-file -Dfile=java_memcached-r

    elease_2.6.6.jar -DgroupId=com.dana -DartifactId=memcached -Dversion=2.6.6 -Dpac

    kaging=jar -DgeneratePom=true

    如此就把我们的第三方jar安装到了我们的本地库中!

    2.重建maven本地库(Repository)索引index( window->show View->other->Maven->Meven Repositorise点击  OK  然后在视图中 点击local Repositorise右键Rubuild Index

    其实这一步相当于让maven重新对本地的Responsitory中的jar建立索引,以让我们搜索包的时候可以搜索到我们最新安装的jar。

    转自:http://my.oschina.net/Boston/blog/167555?fromerr=Z7nbtMDP

  • 相关阅读:
    Gym
    [APIO2014] 回文串
    python选课系统
    python面向对象之类成员修饰符
    python面向对象之类成员
    python的shelve模块
    python的re模块
    python的configparser模块
    python的sys和os模块
    python的hashlib模块
  • 原文地址:https://www.cnblogs.com/harry335/p/5518515.html
Copyright © 2011-2022 走看看