Maven无法正常加载nexus私服3rd party中类库

导入项目后,项目是由maven构建的,公司搭建的有nexus 私服,用maven构建各个项目时不小心也在调eclipse配置,导致构建中断.重新构建时,一直提示失败:

    [WARNING] The requested profile "pom.xml" could not be activated because it does not exist.
[ERROR] Failed to execute goal on project pay-common-web: Could not resolve dependencies for project wusc.edu.pay.common:pay-common-web:jar:1.0-SNAPSHOT: Failure to find org.csource:fastdfs_client:jar:1.24 in http://192.170.18.152:8081/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

登上nexus查看了下,3rd party里有项目需要的jar包,很肯定项目里pom.xml中配置是正确的,找半天资料,想起来以前出现过的错误(刚开始用maven,没配置国内代理,下载很慢,有时候嫌慢,就直接关掉eclipse,导致后来配置了国内代理,再构建,一直报错),为了验证是否是这个原因,去本地仓库看了下,果然是这个原因
这里写图片描述
jar包没有下载完整中断了,导致后面构建时,maven先检查本地是否存着,然后请求nexus,本地有,但不完整,所以构建失败.
1.删除本地仓库的这个jar文件,重新构建,它会检查本地(没有),请求nexus私服或中央仓库的..
2.使用eclipse,右键项目的maven选项,重新构建项目

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值