公司新開發一個項目,寫了一個多月,今天打包測試,結果發現打包不了,
報錯信息如下
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>標簽中加入
再進行打包,打包完成后,還原重新打包,就不會報錯