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

本文详细介绍了使用Maven安装JAR包的过程,包括安装特定版本的JAR包及解决依赖问题的方法。

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

转载于:https://my.oschina.net/forrest420/blog/110248

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值