Is Maven version 1.1 compatible with Jenkins 1.532 ?

204 views
Skip to first unread message

inderpree...@gmail.com

unread,
Jun 9, 2015, 7:56:28 AM6/9/15
to jenkins...@googlegroups.com
I am trying to configure a project using maven version 1.1 in Jenkins 1.532.Upon firing the build, i get below error:
 
java.lang.RuntimeException: Unable to determine Maven version
 at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:157)
 at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:110)
 at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:923)
 at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:59)
 at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
 at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:600)
 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566)
 at hudson.model.Run.execute(Run.java:1665)
 at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509)
 at hudson.model.ResourceController.execute(ResourceController.java:88)
 at hudson.model.Executor.run(Executor.java:246)
Caused by: org.kohsuke.stapler.framework.io.IOException2: hudson.maven.MavenEmbedderException: Couldn't find maven version information in '/path/to/my/directory'. Are you sure that this is a valid maven home?
 at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:47)
 at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
 at hudson.remoting.UserRequest.perform(UserRequest.java:118)
 at hudson.remoting.UserRequest.perform(UserRequest.java:48)
 at hudson.remoting.Request$2.run(Request.java:328)
 at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
 at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
 at java.util.concurrent.FutureTask.run(FutureTask.java:138)
 at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
 at java.lang.Thread.run(Thread.java:662)
Caused by: hudson.maven.MavenEmbedderException: Couldn't find maven version information in '/path/to/my/directory'. Are you sure that this is a valid maven home?
 at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:198)
 at hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
 at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
 ... 10 more
project=hudson.maven.MavenModuleSet@212eb3a6[MyProject]
project.getModules()=[]
project.getRootModule()=null
FATAL: Unable to determine Maven version
 

I have set Maven_home as well in Jenkins Configure System.Can anyone help me ?

Karl Heinz Marbaise

unread,
Jun 9, 2015, 8:26:46 AM6/9/15
to jenkins...@googlegroups.com
Hi,

you have to configure a freestyle job and not a Maven job
type...otherwise you will not get it to run with such extreme old Maven
version...

Kind regards
Karl Heinz Marbaise
> <mailto:project=hudson.maven.MavenModuleSet@212eb3a6[MyProject>]
> project.getModules()=[]
> project.getRootModule()=null
> FATAL: Unable to determine Maven version
>
> I have set Maven_home as well in Jenkins Configure System.Can anyone
> help me ?
>
> --

inderpree...@gmail.com

unread,
Jun 10, 2015, 4:10:35 AM6/10/15
to jenkins...@googlegroups.com, in...@soebes.de
Hi,
 
Thanks for the help.It is working now :)
 
Regards,
Inderpreet
Reply all
Reply to author
Forward
0 new messages