Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-36465

Unable to determine Maven version

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: artifactory-plugin
    • Labels:
      None
    • Environment:
      centos 6
      Jenkins 1.651.3
      Artifactory plugin 2.5.1
    • Similar Issues:

      Description

      Building in workspace /var/lib/jenkins/workspace/JFrog sample
      > git rev-parse --is-inside-work-tree # timeout=10
      Fetching changes from the remote Git repository
      > git config remote.origin.url https://github.com/JFrogDev/project-examples.git # timeout=10
      Fetching upstream changes from https://github.com/JFrogDev/project-examples.git
      > git --version # timeout=10
      > git fetch --tags --progress https://github.com/JFrogDev/project-examples.git +refs/heads/:refs/remotes/origin/
      > git rev-parse refs/remotes/origin/master^

      {commit} # timeout=10
      > git rev-parse refs/remotes/origin/origin/master^{commit}

      # timeout=10
      Checking out Revision 8b6c06a4bb903bdfb831f740da364dedf82adb75 (refs/remotes/origin/master)
      > git config core.sparsecheckout # timeout=10
      > git checkout -f 8b6c06a4bb903bdfb831f740da364dedf82adb75
      > git rev-list 8b6c06a4bb903bdfb831f740da364dedf82adb75 # timeout=10
      ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
      java.lang.RuntimeException: Unable to determine Maven version
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:167)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.IllegalArgumentException: mavenHome '/home/srijini/maven/apache-maven-3.3.9' doesn't seem to exist on this node (or you don't have sufficient rights to access it)
      at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
      at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
      at hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
      at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
      at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
      at hudson.FilePath.act(FilePath.java:1077)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165)
      ... 10 more
      project=hudson.maven.MavenModuleSet@56ea02c9[JFrog sample]
      project.getModules()=[]
      project.getRootModule()=null
      FATAL: Unable to determine Maven version
      java.lang.RuntimeException: Unable to determine Maven version
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:167)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.buildEnvVars(MavenExtractorEnvironment.java:100)
      at hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:947)
      at hudson.maven.AbstractMavenBuild.getEnvironment(AbstractMavenBuild.java:56)
      at hudson.maven.MavenModuleSetBuild.getEnvironment(MavenModuleSetBuild.java:165)
      at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:620)
      at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
      at hudson.model.Run.execute(Run.java:1738)
      at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:529)
      at hudson.model.ResourceController.execute(ResourceController.java:98)
      at hudson.model.Executor.run(Executor.java:410)
      Caused by: java.lang.IllegalArgumentException: mavenHome '/home/srijini/maven/apache-maven-3.3.9' doesn't seem to exist on this node (or you don't have sufficient rights to access it)
      at hudson.maven.MavenEmbedderUtils.buildClassRealm(MavenEmbedderUtils.java:76)
      at hudson.maven.MavenEmbedderUtils.getMavenVersion(MavenEmbedderUtils.java:188)
      at hudson.maven.MavenEmbedderUtils.isAtLeastMavenVersion(MavenEmbedderUtils.java:215)
      at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:45)
      at org.jfrog.hudson.maven3.MavenVersionCallable.call(MavenVersionCallable.java:33)
      at hudson.FilePath.act(FilePath.java:1077)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeast(MavenVersionHelper.java:109)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastVersion(MavenVersionHelper.java:81)
      at org.jfrog.hudson.util.MavenVersionHelper.isAtLeastResolutionCapableVersion(MavenVersionHelper.java:72)
      at org.jfrog.hudson.maven3.extractor.MavenExtractorEnvironment.isMavenVersionValid(MavenExtractorEnvironment.java:165)
      ... 10 more
      Finished: FAILURE

        Attachments

          Activity

            People

            • Assignee:
              eyalbe Eyal Ben Moshe
              Reporter:
              sri_1990 srijini s
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: