maven报错Non-resolvable parent POM

来源:互联网 发布:淘宝匿名购买什么意思 编辑:程序博客网 时间:2024/06/07 15:59
ERROR] The build could not read 1 project -> [Help 1][ERROR]   

[ERROR]   The project org.xbib.elasticsearch:elasticsearch-river-jdbc:2.0.4-SNAPSHOT (E:\ecerp-saas\Sources\ecerp\ecerp-util\elasticsearch-river-jdbc\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM: Failure to find gy.ecerp:ecerp:pom:1.0.0 in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 6, column 13 -> [Help 2]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]

==============================================================

加入 <relativePath>../../pom.xml</relativePath>
例如:

<parent>
        <groupId>gy.ecerp</groupId>
        <artifactId>ecerp</artifactId>
        <version>1.0.0</version>
        <relativePath>../../pom.xml</relativePath>
    </parent>

0 0
原创粉丝点击