maven解决 Could not find artifact xxx and 'parent.relativePath' points

maven | 2019-11-02 14:00:30

建立了一个多模块的maven项目,执行maven打包或者clean总是出现错误:
 

[FATAL] Non-resolvable parent POM for net.itxw.test:eureka-server:0.0.1-SNAPSHOT: Could not find artifact net.itxw.test:ecg:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 5, column 13

。。。。

[ERROR]   The project net.itxw.test:eureka-server:0.0.1-SNAPSHOT (D:\workspace\code\ecg\eureka-server\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for net.itxw.test:eureka-server:0.0.1-SNAPSHOT: Could not find artifact net.itxw.test:ecg:pom:0.0.1-SNAPSHOT and 'parent.relativePath' points at no local POM @ line 5, column 13 -> [Help 2]

 

我看了一下:子模块的parent里面确实有<relativePath/>,直接去掉还是怎么办呢?

登录后即可回复 登录 | 注册
    
关注编程学问公众号