Note that there are some explanatory texts on larger screens.

plurals
  1. POHudson build fail: Non-resolvable parent POM
    primarykey
    data
    text
    <p>I used to work with Hudson on my project, and lately I had to move it to a new server.</p> <p>I configured it the exact same way it use to be (for all I can tell) but when I try to launch a build, it fails and I get the following error:</p> <pre><code>Démarré par l'utilisateur anonymous Checking out http://[...]/trunk/MyProject/ear A .classpath A .project A target AU target/ear-1.0-SNAPSHOT.ear A target/application.xml A target/ear-1.0-SNAPSHOT A target/ear-1.0-SNAPSHOT/META-INF A target/ear-1.0-SNAPSHOT/META-INF/application.xml AU target/ear-1.0-SNAPSHOT/web-1.0-SNAPSHOT.war AU target/ear-1.0-SNAPSHOT/business-1.0-SNAPSHOT.jar A pom.xml A .settings A .settings/org.eclipse.jdt.core.prefs A .settings/org.maven.ide.eclipse.prefs At revision 136 no change for http://[...]/trunk/MyProject/ear since the previous build Found mavenVersion 3.0.2 from file jar:file:/usr/share/maven/apache-maven-3.0.2/lib/maven-core-3.0.2.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties Parsing POMs ERROR: Echec à la lecture des POMs org.apache.maven.project.ProjectBuildingException: Some problems were encountered while processing the POMs: [FATAL] Non-resolvable parent POM: Could not find artifact com.rha:MyProject:pom:1.0-SNAPSHOT and 'parent.relativePath' points at wrong local POM @ line 9, column 10 at org.apache.maven.project.DefaultProjectBuilder.build(DefaultProjectBuilder.java:325) at hudson.maven.MavenEmbedder.buildProjects(MavenEmbedder.java:360) at hudson.maven.MavenEmbedder.readProjects(MavenEmbedder.java:330) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:1148) at hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java:991) at hudson.FilePath.act(FilePath.java:756) at hudson.FilePath.act(FilePath.java:738) at hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.java:698) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:531) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:420) at hudson.model.Run.run(Run.java:1362) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:405) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:145) Finished: FAILURE </code></pre> <p>The pom.xml file when I got to Hudson "workspace" looks like this:</p> <p> [...]</p> <pre><code> &lt;parent&gt; &lt;groupId&gt;com.rha&lt;/groupId&gt; &lt;artifactId&gt;MyProject&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;/parent&gt; </code></pre> <p>[...]</p> <pre><code> &lt;dependencies&gt; &lt;dependency&gt; &lt;groupId&gt;com.rha&lt;/groupId&gt; &lt;artifactId&gt;business&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;type&gt;ejb&lt;/type&gt; &lt;/dependency&gt; &lt;dependency&gt; &lt;groupId&gt;com.rha&lt;/groupId&gt; &lt;artifactId&gt;web&lt;/artifactId&gt; &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt; &lt;type&gt;war&lt;/type&gt; &lt;/dependency&gt; &lt;/dependencies&gt; &lt;/project&gt; </code></pre> <p><strong>[Edit]</strong></p> <p>Actually I forgot some important informations:</p> <p>My project is divided into 3 parts:</p> <p>business (packaged into .jar) web (packaged into a .war) ear (packaged the .war and .jar into a .ear)</p> <p>I'm using Subversion, and under my "trunk" folder I got a "MyProject" folder including:</p> <pre><code>.project .settings/ business/ ear/ pom.xml src/ web/ </code></pre> <p>what happens is:</p> <p>in my Hudson job configuration, I filled the SVN field "repository URL" with:</p> <blockquote> <p>http://[...]/trunk/MyProject/ear</p> </blockquote> <p>and here is the "pom.xml" from "MyProject" folder:</p> <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 [...] &lt;modules&gt; &lt;module&gt;business&lt;/module&gt; &lt;module&gt;web&lt;/module&gt; &lt;module&gt;ear&lt;/module&gt; &lt;/modules&gt; [...] </code></pre> <p>so the parent "pom.xml" is actually located at "../pom.xml" on my SVN repository, under "trunk/MyFolder".</p> <p>But Hudson can't see it for some reason (but like I said, it used to work on the previous server).</p> <p>Any clue ?</p> <p><strong>[/Edit]</strong></p> <p>I guess this is a rookie mistake, I'm a total beginner on Maven, but I just can't figure out why it's not working anymore ... </p> <p>Any help will be greatly appreciated !</p> <p>Nicolas</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload