Mike, I'm probably wrong since we use AnthillPro not Jenkins but looking at the exception seems it is Maven throwing the exception because it doesn't know where to retrieve the parent pom from. Where is your <repositories> section defined? We are switching our configurations to put the <repositories> section in the settings.xml file so the poms don't need it defined but either one should work.
Regards, --Ken -----Original Message----- From: Michael Smith [mailto:[email protected]] Sent: Friday, November 11, 2011 8:55 AM To: [email protected] Subject: Re: [Artifactory-users] Jenkins not resolving parent pomfrom Artifactory Michael Smith wrote: > Hi, > > I'm configuring a Maven job on a Jenkins server. The job's parent pom is > built on another server, so it's not available in the local Maven repo, > but it is deployed to Artifactory. The job is configured to resolve > artifacts from Artifactory, but the build fails: it looks like when > Jenkins parses the POM before launching Maven, it doesn't consult > Artifactory. > > I'm using Jenkins 1.438, Artifactory 2.0.4, and Maven 3.0.3. Should read Artifactory plugin 2.0.4. Artifactory itself is 2.4.0. > > Started by user msmith > Updating https://xxxx/someproject > At revision 656 > no change for https://xxxx/someproject since the previous build > 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 > xxxxx:parent-pom:pom:1.0-SNAPSHOT and 'parent.relativePath' points at > wrong local POM @ line 9, column 11 > > at > org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuild er.java:339) > at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:361) > at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:331) > at > hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.ja va:1203) > at > hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.ja va:1032) > at hudson.FilePath.act(FilePath.java:785) > at hudson.FilePath.act(FilePath.java:767) > at > hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuil d.java:897) > at > hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.ja va:647) > at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:461) > at hudson.model.Run.run(Run.java:1404) > at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:470) > at hudson.model.ResourceController.execute(ResourceController.java:88) > at hudson.model.Executor.run(Executor.java:230) > > Finished: FAILURE > > Thanks, > Mike ------------------------------------------------------------------------ ------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. ------------------------------------------------------------------------------ RSA(R) Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
