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