in Education by
I used to work with Hudson on my project, and lately I had to move it to a new server. 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: 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 The pom.xml file when I got to Hudson "workspace" looks like this: [...] com.rha MyProject 1.0-SNAPSHOT [...] com.rha business 1.0-SNAPSHOT ejb com.rha web 1.0-SNAPSHOT war [Edit] Actually I forgot some important informations: My project is divided into 3 parts: business (packaged into .jar) web (packaged into a .war) ear (packaged the .war and .jar into a .ear) I'm using Subversion, and under my "trunk" folder I got a "MyProject" folder including: .project .settings/ business/ ear/ pom.xml src/ web/ what happens is: in my Hudson job configuration, I filled the SVN field "repository URL" with: http://[...]/trunk/MyProject/ear and here is the "pom.xml" from "MyProject" folder: <?xml version="1.0" encoding="UTF-8"?> business web ear [...] so the parent "pom.xml" is actually located at "../pom.xml" on my SVN repository, under "trunk/MyFolder". But Hudson can't see it for some reason (but like I said, it used to work on the previous server). Any clue ? [/Edit] 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 ... Any help will be greatly appreciated ! Nicolas JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
relativePath (of the parent) defaults to ../pom.xml. It looks like it is not present in there. You could set it to an empty value so that maven downloads it as a dependency. This link discusses this. [Edit: based on the edits to the question] Hudson only sees the source code inside ear folder. Though the parent pom is present in SVN, it is not available to Hudson. Missing parent pom was aa warning in Maven 2 but strict in Maven 3. There are two ways to solve this. One is to specify to hudson, the url http://[...]/trunk/MyProject/. You can then chose to build all the modules or still choose to build the pom.xml of ear project alone. The other is to manually run mvn install on the hudson system so that the parent pom gets deployed once and thereafter used by hudson. However, this will not get updated if parent pom is subsequently changed.

Related questions

0 votes
    If you fail to define any information, where does your pom inherits that information from?...
asked May 4, 2021 in Technology by Editorial Staff
0 votes
    My question may be silly but I've been trying several ways and I still can't do what I want, i. ... , JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Feb 16, 2022 in Education by JackTerrance
0 votes
    What does POM stand for? A. Program Object Model B. Project Oriented Model C. Project Object Model D. Program Oriented Model...
asked Dec 8, 2022 in Education by JackTerrance
0 votes
    What does POM stand for? A. Program Object Model B. Project Oriented Model C. Project Object Model D. Program Oriented Model...
asked Dec 3, 2022 in Education by JackTerrance
0 votes
    What are the elements in POM that a profile can freely modify when specified in the POM?...
asked May 4, 2021 in Technology by Editorial Staff
0 votes
    What is the use of the execution element in pom file?...
asked May 4, 2021 in Technology by Editorial Staff
0 votes
    Is it possible to refer a property defined in your pom.xml file?...
asked May 4, 2021 in Technology by Editorial Staff
0 votes
    My Cloud Storage signed download URLs fail after three days. I think I've fixed the problem, so this ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Jun 2, 2022 in Education by JackTerrance
0 votes
    If the probabilities for A to fail in an examination is 0.2 and that for B is 0.3, then the probability that either A ... C. ≤ .5 D. 0 Select the correct answer from above options...
asked Nov 20, 2021 in Education by JackTerrance
0 votes
    In a college, 30% students fail in physics, 25% fail in mathematics and 10% fail in both. One student is chosen at ... 9/20 D. 1/3 Select the correct answer from above options...
asked Nov 19, 2021 in Education by JackTerrance
0 votes
    If the probabilities for A to fail in an examination is 0.2 and that for B is 0.3, then the probability that either A ... C. ≤0.5 D. 0 Select the correct answer from above options...
asked Nov 15, 2021 in Education by JackTerrance
0 votes
    What do you understand by fail-fast in JAVA?...
asked May 27, 2021 in Technology by JackTerrance
0 votes
    Why do shower cartridges fail?...
asked Jan 28, 2021 in General by JackTerrance
0 votes
    What happens if you fail to make required premium payments?...
asked Dec 31, 2020 in Health by Editorial Staff
...