解决maven install 时 依赖的本地jar无法找到的问题


maven install报错如下:(文章中的xxx指的是你的jar名字)

Failed to execute goal on project xxxx: Could not resolve dependencies for project xxxx:war:1.0.0: Failed to collect dependencies at xxxxxx:jar:1.2.0: Failed to read artifact descriptor for xxx:xxxx:jar:1.2.0: Failure to find xxx:2.0.0 in http://maven.aliyun.com/nexus/content/groups/public/ was cached in the local repository, resolution will not be reattempted until the update interval of ali has elapsed or updates are forced -> [Help 1]

解决办法:

找到本地仓库jar对应的目录,修改_remote.repositories文件里的xxx.pom>=为xxx.pom>nexus=

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM