项目第一次打包出错 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