jenkins appeared Non-resolvable parent POM for xxx

When deploying java multi-module project with jenkins, the following error appears:

Non-resolvable parent POM for xxx

1. An error screenshot appears

 

2. Specific information:

15:38:16 Parsing POMs
15:38:16 ERROR: Failed to parse POMs
15:38:16 org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
15:38:16 [FATAL] Non-resolvable parent POM for com.xxx:robot-server:2.1.0: Failure to find com.xxx:xxx:pom:2.1.0 in https://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 no local POM @ line 13, column 13
15:38:16 
15:38:16 	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:383)
15:38:16 	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:370)
15:38:16 	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:340)
15:38:16 	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1329)
15:38:16 	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1126)
15:38:16 	at hudson.FilePath.act(FilePath.java:1075)
15:38:16 	at hudson.FilePath.act(FilePath.java:1058)
15:38:16 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:987)
15:38:16 	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:691)
15:38:16 	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:504)
15:38:16 	at hudson.model.Run.execute(Run.java:1838)
15:38:16 	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:543)
15:38:16 	at hudson.model.ResourceController.execute(ResourceController.java:97)
15:38:16 	at hudson.model.Executor.run(Executor.java:429)
15:38:16 [austar-platfrom-robot-server定时器] $ /bin/sh -xe /tmp/jenkins8213535733765384347.sh
15:38:16 Finished: FAILURE

3. Solution

At this point, just add a sentence in the submodule:

<relativePath>../pom.xml</relativePath>

Resubmit jenkins deployment once to solve the problem.

Published 115 original articles · Like 58 · Visits 160,000+

Guess you like

Origin blog.csdn.net/luChenH/article/details/103123853