I have just used maven2 with hudson. I aim to launch selenium tests with
maven via hudson.
I have create a maven2 project with eclipse. I have tested it with eclipse
and it works.
The next step is to launch it via hudson.
I have followed those steps.
1. Create a new job de type (maven2)
2. Configure the job as this:
- in the Build part: I have pointed on the POM of my project
- in Post build action: I have coched publish html report and ponted on
the path of the report generated.
3. Launch the build and as a result I have thsi:
ERROR: Processing failed due to a bug in the code. Please report this to
hudson...@googlegroups.com
java.lang.IllegalArgumentException: mavenHome must exists
at
hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:74)
at
hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:170)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:56)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:40)
at hudson.FilePath.act(FilePath.java:784)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:495)
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)
project=hudson.maven.MavenModuleSet@9e7e21[maven_selenium]
project.getModules()=[]
project.getRootModule()=null
FATAL: mavenHome must exists
java.lang.IllegalArgumentException: mavenHome must exists
at
hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:74)
at
hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:170)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:56)
at hudson.maven.MavenVersionCallable.call(MavenVersionCallable.java:40)
at hudson.FilePath.act(FilePath.java:784)
at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:495)
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)
NB: I have created a global variable that contains the MAVEN2_HOME.
I can't resolve this problem.
Any help please.
--
View this message in context: http://jenkins.361315.n4.nabble.com/Maven-and-hudson-tp3405406p3405406.html
Sent from the Jenkins users mailing list archive at Nabble.com.
--
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy
2011/3/25 ensienne <t.ze...@gmail.com>:
--
View this message in context: http://jenkins.361315.n4.nabble.com/Maven-and-hudson-tp3405406p3405505.html
Go to in http://ip:port/configure (Manage Jenkins then Configure System).
Do you have at least one maven installation ?
If not add at least one.
--
Olivier Lamy
http://twitter.com/olamy
http://www.linkedin.com/in/olamy
2011/3/25 ensienne <t.ze...@gmail.com>:
thank you again
--
View this message in context: http://jenkins.361315.n4.nabble.com/Maven-and-hudson-tp3405406p3406307.html