将maven储藏室下载不到的jar包手动装入自己的maven储藏室

Maven 安装 JAR 包的命令是:


mvn install:install-file -Dfile=jar包的位置 -DgroupId=上面的groupId -DartifactId=上面的artifactId -Dversion=上面的version -Dpackaging=jar


mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hbase-0.98.1-cdh5.1.0/lib/hbase-client-0.98.1-cdh5.1.0.jar -DgroupId=org.apache.hbase -DartifactId=hbase-client -Dversion=0.98.1-cdh5.1.0 -Dpackaging=jar

mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hbase-0.98.1-cdh5.1.0/lib/hbase-common-0.98.1-cdh5.1.0.jar -DgroupId=org.apache.hbase -DartifactId=hbase-common -Dversion=0.98.1-cdh5.1.0 -Dpackaging=jar

mvn install:install-file -Dfile=/Users/ .wang/Documents/hadoopTools/cdh5/hadoop-2.3.0-cdh5.1.0/share/hadoop/common/hadoop-common-2.3.0-cdh5.1.0.jar -DgroupId=org.apache.hadoop -DartifactId=hadoop-common -Dversion=2.3.0-cdh5.1.0 -Dpackaging=jar


 ===




Maven: Including jar not found in public repository

看完下面的链接就知道怎么操作了:

http://stackoverflow.com/questions/1355548/maven-including-jar-not-found-in-public-repository
http://jeff.langcode.com/archives/27

你可能感兴趣的:(maven)