찾다

 >  Q&A  >  본문

java - eclipse中maven项目pom.xml文件找不到parent要怎么解决?

在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中文网2808일 전1171

모든 응답(1)나는 대답할 것이다

  • 天蓬老师

    天蓬老师2017-04-18 09:33:21

    먼저 상위 프로젝트에 mvn 새로 설치한 다음 현재 프로젝트를 컴파일하세요.

    회신하다
    0
  • 취소회신하다