was cached in the local repository

[INFO] Scanning for projects...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.kq:userservice:[unknown-version]: Failure to find com.kq:spring:pom:1.0.0 in http://192.168.1.168:8082/nexus/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, column 13
 @ 
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project com.kq:userservice:[unknown-version] (E:\spring\userservice\pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.kq:userservice:[unknown-version]: Failure to find com.kq:spring:pom:1.0.0 in http://192.168.1.168:8082/nexus/repository/maven-public/ was cached in the local repository, resolution will not be reattempted until the update interval of nexus-central has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 5, 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

父pom

<version>1.0.0</version>

子pom

<version>1.0.0-SNAPSHOT</version>

在父pom加上-SNAPSHOT,或者子pom去掉-SNAPSHOT

猜你喜欢

转载自blog.csdn.net/kq1983/article/details/83090556
今日推荐