sunmingtao / sample-code

3 stars 4 forks source link

Jenkins: fails to find the artefact on nexus #280

Closed sunmingtao closed 3 years ago

sunmingtao commented 3 years ago
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for au.gov.nla.sbdp:trove-common:10.12.0-SNAPSHOT: Failure to find au.gov.nla.sbdp:trove-parent:pom:10.12.0-SNAPSHOT in http://dev.nla.gov.au/nexus/content/groups/all was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 7, column 13
 @ 
[INFO] [jenkins-event-spy] Generated /var/lib/jenkins/workspace/NLA_trove-common_release_10.12.0@tmp/withMaven9c3b352e/maven-spy-20210305-101308-2503074213231110231014.log
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]   
[ERROR]   The project au.gov.nla.sbdp:trove-common:10.12.0-SNAPSHOT (/var/lib/jenkins/workspace/NLA_trove-common_release_10.12.0/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for au.gov.nla.sbdp:trove-common:10.12.0-SNAPSHOT: Failure to find au.gov.nla.sbdp:trove-parent:pom:10.12.0-SNAPSHOT in http://dev.nla.gov.au/nexus/content/groups/all was cached in the local repository, resolution will not be reattempted until the update interval of nexus has elapsed or updates are forced and 'parent.relativePath' points at wrong local POM @ line 7, 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
sunmingtao commented 3 years ago

Add -U to the command to build. e.g. mvn -U clean compile -DskipTests=true