java - eclipse中maven项目pom.xml文件找不到parent要怎么解决?
PHP中文网
PHP中文网 2017-04-18 09:31:21
0
1
1173

在maven项目中方pom.xml文件找不到parent,maven clean报错如下:

[ERROR] [ERROR] Some problems were encountered while processing the
POMs: [FATAL] Non-resolvable parent POM for
com.chinaredstar:p-tx-promotion-service:[unknown-version]: Failure to
find com.chinaredstar:p-tx-promotion:pom:0.0.1-SNAPSHOT in
http://10.11.25.246:8081/nexus/content/groups/public/ was cached in
the local repository, resolution will not be reattempted until the
update interval of private-mirror has elapsed or updates are forced
and 'parent.relativePath' points at wrong local POM @ line 3, column
13 @ [ERROR] The build could not read 1 project -> [Help 1] [ERROR]
[ERROR] The project
com.chinaredstar:p-tx-promotion-service:[unknown-version]
(D:MKL_PROJECTtx_promotionp-tx-promotionp-tx-promotion-servicepom.xml)
has 1 error [ERROR] Non-resolvable parent POM for
com.chinaredstar:p-tx-promotion-service:[unknown-version]: Failure to
find com.chinaredstar:p-tx-promotion:pom:0.0.1-SNAPSHOT in
http://10.11.25.246:8081/nexus/content/groups/public/ was cached in
the local repository, resolution will not be reattempted until the
update interval of private-mirror has elapsed or updates are forced
and 'parent.relativePath' points at wrong local POM @ line 3, 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] [ERROR] For more
information about the errors and possible solutions, please read the
following articles: [ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2]
http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
要怎么解决呢,各位好心人求解~ ~

PHP中文网
PHP中文网

认证0级讲师

全部回复(1)
Peter_Zhu

首先在你的parent 项目上 mvn clean install ,然后在编译你当前的项目。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板