Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 421472

Summary: please configure Maven in the eTrice HIPP
Product: Community Reporter: Henrik Rentz-Reichert <hrr>
Component: CI-JenkinsAssignee: CI Admin Inbox <ci.admin-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: thanh.ha, webmaster
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Henrik Rentz-Reichert CLA 2013-11-11 12:47:59 EST
I would like to tun a Maven build in our HIPP https://hudson.eclipse.org/etrice/
Comment 1 Eclipse Webmaster CLA 2013-11-12 10:37:21 EST
The Maven plugin is installed, and it's an option when creating a new job.  

Is there something I'm missing?

-M.
Comment 2 Henrik Rentz-Reichert CLA 2013-11-12 10:41:37 EST
When I configure my build I see in the line with "Maven-Version" a hint that Hudson has to know the Maven installation directory. Please enter it in the system configuration https://hudson.eclipse.org/etrice/configure
Comment 3 Eclipse Webmaster CLA 2013-11-12 11:10:56 EST
Ok, I've added some config details for the Maven2 plugin.

-M.
Comment 4 Henrik Rentz-Reichert CLA 2013-11-12 11:22:11 EST
Now I get this error:
(see https://hudson.eclipse.org/etrice/job/etrice-maven/1/console)

[org.eclipse.etrice.parent] $ java -cp /home/hudson/genie.modeling.mdt.etrice/.hudson/plugins/maven-plugin/WEB-INF/lib/maven3-agent-2.2.1.jar:/shared/common/apache-maven-3.0.5/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /shared/common/apache-maven-3.0.5 /home/hudson/genie.modeling.mdt.etrice/.hudson/war/webapp/WEB-INF/lib/hudson-remoting-3.0.0.jar /home/hudson/genie.modeling.mdt.etrice/.hudson/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-2.2.1.jar 57281
ERROR: Failed to parse POMs
java.io.IOException: Cannot run program "java" (in directory "/home/hudson/genie.modeling.mdt.etrice/.hudson/jobs/etrice-maven/workspace/etrice_local_repo/releng/org.eclipse.etrice.parent"): error=13, Permission denied
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
	at hudson.Proc$LocalProc.<init>(Proc.java:187)
	at hudson.Proc$LocalProc.<init>(Proc.java:157)
	at hudson.Launcher$LocalLauncher.launch(Launcher.java:649)
	at hudson.Launcher$ProcStarter.start(Launcher.java:266)
	at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:210)
	at hudson.maven.ProcessCache.get(ProcessCache.java:231)
	at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:588)
	at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:434)
	at hudson.model.Run.run(Run.java:1390)
	at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:414)
	at hudson.model.ResourceController.execute(ResourceController.java:82)
	at hudson.model.Executor.run(Executor.java:137)
Caused by: java.io.IOException: error=13, Permission denied
	at java.lang.UNIXProcess.forkAndExec(Native Method)
	at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
	at java.lang.ProcessImpl.start(ProcessImpl.java:130)
	at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
	... 12 more
Comment 5 Thanh Ha CLA 2013-11-12 12:05:15 EST
you need to explicitly pick a java version. HIPP does not define a default java. this is so projects can make sure they are building on the version they think they are building on. 

the setting for java version is under the permissions matrix in the job config.
Comment 6 Henrik Rentz-Reichert CLA 2013-11-12 12:29:53 EST
Thanks, now it works.