Hello, I created a simple Maven webapp by issuing this command. *mvn archetype:generate -DgroupId=web.myapp -DartifactId=myapp -DarchetypeArtifactId=maven-archetype-webapp -DinteractiveMode=false * and Later i try to build this in jenkins. While building I am getting the following error.
Started by user anonymous Building in workspace F:\Jenkins\jobs\Mavenjob\workspace Unable to auto-install JDK until the license is accepted. Parsing POMs Unable to auto-install JDK until the license is accepted. Unable to auto-install JDK until the license is accepted. [webapp] $ F:\Jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.7.0_25/bin/java -Xms256m -Xmx512m -cp F:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-agent-1.3.jar;F:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\F_Maven\boot\plexus-classworlds-2.4.2.jar org.jvnet.hudson.maven3.agent.Maven3Main F:\Jenkins\tools\hudson.tasks.Maven_MavenInstallation\F_Maven F:\svn\tomcat\webapps\jenkins\WEB-INF\lib\remoting-2.24.jar F:\Jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-1.3.jar 50791 ERROR: Failed to parse POMs java.io.IOException: Cannot run program "F:\Jenkins\tools\hudson.model.JDK\C_Program_Files_x86_Java_jdk1.7.0_25/bin/java" (in directory "F:\webapp"): CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at hudson.Proc$LocalProc.<init>(Proc.java:244) at hudson.Proc$LocalProc.<init>(Proc.java:216) at hudson.Launcher$LocalLauncher.launch(Launcher.java:763) at hudson.Launcher$ProcStarter.start(Launcher.java:353) at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:228) at hudson.maven.ProcessCache.get(ProcessCache.java:231) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:686) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586) at hudson.model.Run.execute(Run.java:1593) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:491) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:242) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.<init>(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 13 more Finished: FAILURE Help me out in fixing this issue. Thanks Inbaraj -- View this message in context: http://jenkins-ci.361315.n4.nabble.com/Building-Maven-project-in-Jenkins-tp4676610.html Sent from the Jenkins users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
