項目第一次打包出錯 Some problems were encountered while processing the POMs:


公司新開發一個項目,寫了一個多月,今天打包測試,結果發現打包不了,

報錯信息如下

 Some problems were encountered while processing the POMs:

[ERROR] Non-resolvable parent POM for com.ydart:ydart-order-client:1.1.0: Failure to find com.ydart:ydart-cloud:pom:1.1.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 alimaven has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]

網上說是因為層級太多,導致混亂

解決如下

子模塊的

<parent>
  <relativePath>../pom.xml</relativePath>
</parent>標簽中加入
 
        

再進行打包,打包完成后,還原重新打包,就不會報錯

 

參考鏈接https://www.cnblogs.com/yuan1994/p/11180098.html


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM