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