Jenkins 1.600 generates [FATAL] Non-resolvable parent POM: Could not find artifact (external to project) while parsing POMs

1,038 views
Skip to first unread message

Paul Bors

unread,
Mar 4, 2015, 11:26:24 AM3/4/15
to jenkins...@googlegroups.com
I have an organization POM file with all the settings necessary between projects.

My multi module project is extending it and maven builds fine from CLI but when I run it through Jenkins I receive the following error:
Parsing POMs
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Could not find artifact com.xxx:yyy:pom:1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 8, column 13

	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361)
	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1300)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
	at hudson.FilePath.act(FilePath.java:989)
	at hudson.FilePath.act(FilePath.java:967)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:959)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
	at hudson.model.Run.execute(Run.java:1717)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

Here "com.xxx:yyy:pom:1-SNAPSHOT" is my organization's external POM that I extend to inherit all the settings necessary.

My Jenkins System Properties are:

Name  ↓Value   
awt.toolkitsun.awt.windows.WToolkit
executable-warC:\Program Files (x86)\Jenkins\jenkins.war
file.encodingCp1252
file.encoding.pkgsun.io
file.separator\
guice.disable.misplaced.annotation.checktrue
hudson.diyChunkingtrue
hudson.lifecyclehudson.lifecycle.WindowsServiceLifecycle
java.awt.graphicsenvsun.awt.Win32GraphicsEnvironment
java.awt.headlesstrue
java.awt.printerjobsun.awt.windows.WPrinterJob
java.class.pathC:\Program Files (x86)\Jenkins\jenkins.war
java.class.version51.0
java.endorsed.dirsC:\Program Files (x86)\Jenkins\jre\lib\endorsed
java.ext.dirsC:\Program Files (x86)\Jenkins\jre\lib\ext;C:\Windows\Sun\Java\lib\ext
java.homeC:\Program Files (x86)\Jenkins\jre
java.io.tmpdirC:\Windows\TEMP\
java.library.pathC:\Program Files (x86)\Jenkins\jre\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\Program Files\Java\jre7\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\Maven\apache-maven-3.1.1\bin;C:\ZendServer\share\ZendFramework\bin;C:\ZendServer\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Mozilla Firefox\;;.
java.runtime.nameJava(TM) SE Runtime Environment
java.runtime.version1.7.0_25-b17
java.specification.nameJava Platform API Specification
java.specification.vendorOracle Corporation
java.specification.version1.7
java.vendorOracle Corporation
java.vendor.urlhttp://java.oracle.com/
java.vendor.url.bughttp://bugreport.sun.com/bugreport/
java.version1.7.0_25
java.vm.infomixed mode
java.vm.nameJava HotSpot(TM) Client VM
java.vm.specification.nameJava Virtual Machine Specification
java.vm.specification.vendorOracle Corporation
java.vm.specification.version1.7
java.vm.vendorOracle Corporation
java.vm.version23.25-b01
jnidispatch.pathC:\Windows\TEMP\jna--1178734642\jna7190187834224696640.dll
lib.svnkit.http.methodsDigest,Basic,NTLM,Negotiate
lib.svnkit.ssh2.persistentfalse
line.separator
mail.smtp.sendpartialtrue
mail.smtps.sendpartialtrue
os.archx86
os.nameWindows Server 2012
os.version6.2
path.separator;
sun.arch.data.model32
sun.boot.class.pathC:\Program Files (x86)\Jenkins\jre\lib\resources.jar;C:\Program Files (x86)\Jenkins\jre\lib\rt.jar;C:\Program Files (x86)\Jenkins\jre\lib\sunrsasign.jar;C:\Program Files (x86)\Jenkins\jre\lib\jsse.jar;C:\Program Files (x86)\Jenkins\jre\lib\jce.jar;C:\Program Files (x86)\Jenkins\jre\lib\charsets.jar;C:\Program Files (x86)\Jenkins\jre\lib\jfr.jar;C:\Program Files (x86)\Jenkins\jre\classes
sun.boot.library.pathC:\Program Files (x86)\Jenkins\jre\bin
sun.cpu.endianlittle
sun.cpu.isalistpentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86
sun.desktopwindows
sun.io.unicode.encodingUnicodeLittle
sun.java.commandC:\Program Files (x86)\Jenkins\jenkins.war --httpPort=8080
sun.java.launcherSUN_STANDARD
sun.jnu.encodingCp1252
sun.management.compilerHotSpot Client Compiler
sun.os.patch.level
user.countryUS
user.dirC:\Program Files (x86)\Jenkins
user.homeC:\Windows\System32\config\systemprofile
user.languageen
user.nameWIN-M8HJD1N6NRM$
user.script
user.timezoneAmerica/New_York
user.variant

Environment Variables

Name  ↓Value   
ALLUSERSPROFILEC:\ProgramData
APPDATAC:\Windows\system32\config\systemprofile\AppData\Roaming
BASEC:\Program Files (x86)\Jenkins
CommonProgramFilesC:\Program Files (x86)\Common Files
CommonProgramFiles(x86)C:\Program Files (x86)\Common Files
CommonProgramW6432C:\Program Files\Common Files
COMPUTERNAMEWIN-M8HJD1N6NRM
ComSpecC:\Windows\system32\cmd.exe
FP_NO_HOST_CHECKNO
JAVA_HOMEC:\Program Files\Java\jdk1.7.0_60\jre
JENKINS_HOMEC:\Program Files (x86)\Jenkins
LOCALAPPDATAC:\Windows\system32\config\systemprofile\AppData\Local
NUMBER_OF_PROCESSORS2
OSWindows_NT
PathC:\Program Files\Java\jre7\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Amazon\cfn-bootstrap\;C:\Maven\apache-maven-3.1.1\bin;C:\ZendServer\share\ZendFramework\bin;C:\ZendServer\bin;C:\Program Files\TortoiseSVN\bin;C:\Program Files (x86)\Mozilla Firefox\;
PATHEXT.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTUREx86
PROCESSOR_ARCHITEW6432AMD64
PROCESSOR_IDENTIFIERIntel64 Family 6 Model 62 Stepping 4, GenuineIntel
PROCESSOR_LEVEL6
PROCESSOR_REVISION3e04
ProgramDataC:\ProgramData
ProgramFilesC:\Program Files (x86)
ProgramFiles(x86)C:\Program Files (x86)
ProgramW6432C:\Program Files
PSModulePathC:\Windows\system32\WindowsPowerShell\v1.0\Modules\;C:\Program Files (x86)\AWS Tools\PowerShell\
PUBLICC:\Users\Public
SERVICE_IDjenkins
SystemDriveC:
SystemRootC:\Windows
TEMPC:\Windows\TEMP
TMPC:\Windows\TEMP
USERDOMAINWORKGROUP
USERNAMEWIN-M8HJD1N6NRM$
USERPROFILEC:\Windows\system32\config\systemprofile
windirC:\Windows
WINSW_EXECUTABLEC:\Program Files (x86)\Jenkins\jenkins.exe

Plugins

Name  ↓Version   Enabled   Pinned   
analysis-core1.70truefalse
ant1.2truefalse
antisamy-markup-formatter1.3truetrue
credentials1.22truetrue
cvs2.12truetrue
dry2.41truefalse
external-monitor-job1.4truefalse
javadoc1.3truetrue
jquery1.7.2-1truefalse
junit1.4truetrue
junit-attachments1.3truefalse
ldap1.11truetrue
mailer1.15truetrue
mapdb-api1.0.6.0truefalse
matrix-auth1.2truetrue
matrix-project1.4.1truefalse
maven-plugin2.8truetrue
pam-auth1.2truetrue
pmd3.40truefalse
saferestart0.3truefalse
scm-api0.2truefalse
script-security1.13truefalse
sonar2.1truefalse
ssh-credentials1.10truefalse
ssh-slaves1.9truefalse
subversion2.5truetrue
translation1.12truetrue
windows-slaves1.0truefalse
ws-cleanup0.25truefalse

Any help would be appreciated as I can no longer build any projects.

Baptiste Mathus

unread,
Mar 4, 2015, 11:52:16 AM3/4/15
to jenkins...@googlegroups.com

Try Jenkins 1.601 beforehand. 1.600 has been reported to have blocking issues. Not sure that one could be related though

...

Paul Bors

unread,
Mar 4, 2015, 12:19:32 PM3/4/15
to jenkins...@googlegroups.com

How do I manually upgrade to 1.601?

I would beed at least the war.

And why would they still allow an automatic upgrade to 1.600 if it's known to have issues?

--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-users/kFUBxxqrFDY/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CANWgJS5547q5O5bkydQkDGKcR64uTWnvedPwrP4XM%3DuY7WyH%2BA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Paul Bors

unread,
Mar 4, 2015, 2:27:16 PM3/4/15
to jenkins...@googlegroups.com
I didn't realize that 1.601 was released yesterday.

Even after updating to 1.601 I'm still receiving the same error:

Parsing POMs
ERROR: Failed to parse POMs
org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM: Could not find artifact com.xxx:yyy:pom:1-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 8, column 13

	at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:364)
	at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361)
	at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1300)
	at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1097)
	at hudson.FilePath.act(FilePath.java:989)
	at hudson.FilePath.act(FilePath.java:967)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.parsePoms(MavenModuleSetBuild.java:959)
	at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:679)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:536)
	at hudson.model.Run.execute(Run.java:1750)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
	at hudson.model.ResourceController.execute(ResourceController.java:89)
	at hudson.model.Executor.run(Executor.java:240)
Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered
Finished: FAILURE

Unless someone has a better idea I guess I'll have to check out Jenkin's code and start looking it over...

Paul Bors

unread,
Mar 4, 2015, 4:19:04 PM3/4/15
to jenkins...@googlegroups.com

Okay I figured out what the problem was.

As it turns out during the upgrade I lost the contents of:
<Jenkins install folder>\tools\hudson.tasks.Maven_MavenInstallation\Maven_3.x.x\conf\settings.xml

Thus the embedded maven couldn't connect to our Nexus repositories and resolve the parent POM.
The error was misleading and it took me a while to figure it out.

I also tried to set the Maven settings file at the project level and I noticed that didn't work.
Also, is annoying how you can't just configure this parameter as a system wide for the given maven installation.

Jérôme Van Der Linden

unread,
Oct 31, 2017, 7:02:45 AM10/31/17
to Jenkins Users
Hi,

I have an equivalent problem. I've created an issue (https://issues.jenkins-ci.org/browse/JENKINS-47479) that was rejected, so here I am.

When using the jenkins maven build, I got the same error. When i use a freestyle job, passing the settings in the command line, it works.

How to see the command that jenkins execute ? It seems it can't find the settings on local project.
Reply all
Reply to author
Forward
0 new messages