maven项目子工程相互依赖错误解决


错误表象:父工程A下有两个工程B,C,B的pom文件中依赖了C,C中maven compile 报错,A下install报错

错误代码:Failure to find com.testcrud:testcrud-parent:pom:1.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 nexus-aliyun has elapsed or updates are forced

解决方法:原因C中Pom文件打包成了POM,<packaging>pom</packaging>这段话删除后解决


免责声明!

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



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