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

Maven 3.3.1 build fails on Unix if this Maven version doesn't match with the one in $PATH

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Blocker Blocker
    • maven-plugin
    • None
    • Red Hat Linux 6.6, Jenkins 1.609

      We face the following build error when using Maven 3.3.1 in Jenkins with the following setup:

      • Maven 3.3.1 is installed on /apps/tools/distrib/apache-maven-3.3.1
      • Maven 3.1.1 is installed on /apps/tools/distrib/apache-maven-3.1.1
      • We have a symbolic link /apps/tools/distrib/maven -> /apps/tools/distrib/apache-maven-3.1.1
      • We have added /apps/tools/distrib/maven/bin in $PATH OS environment variable
      • On Jenkins we have configured a Maven installation (name : MAVEN, path : /apps/tools/distrib/apache-maven-3.3.1)
      • The job we want to run is a Maven project which have a pre-step "Invoke top-level Maven targets" having (Default) as Maven version selected.
      Building on master in workspace /myapp/mymodule
      Updating svn://svn.mycompany.com/mymodule at revision '2015-04-23T16:00:24.616 +0100'
      At revision 37434
      no change for svn://svn.mycompany.com/mymodule since the previous build
      [build_mymodule] $ mvn -DparentVersion=[31.0.26] versions:update-parent versions:use-releases -X
      Build step 'Invoke top-level Maven targets' marked build as failure
      

          [JENKINS-28070] Maven 3.3.1 build fails on Unix if this Maven version doesn't match with the one in $PATH

          Daniel Beck added a comment -

          Isn't this just a duplicate of the linked issue?

          Daniel Beck added a comment - Isn't this just a duplicate of the linked issue?

          The linked issue concerns Windows not Unix.

          Laurent TOURREAU added a comment - The linked issue concerns Windows not Unix.

          I added more precision of the configuration.

          Laurent TOURREAU added a comment - I added more precision of the configuration.

          The issue disappears if a set the symbolic link /apps/tools/distrib/maven to /apps/tools/distrib/apache-maven-3.3.1.
          The build is run.

          Conclusion : We can't mix Maven version used by "Invoke top-level Maven targets" in Pre-Step section and the Maven used in Build section of the job.

          Laurent TOURREAU added a comment - The issue disappears if a set the symbolic link /apps/tools/distrib/maven to /apps/tools/distrib/apache-maven-3.3.1. The build is run. Conclusion : We can't mix Maven version used by "Invoke top-level Maven targets" in Pre-Step section and the Maven used in Build section of the job.

          I don't follow this ticket anymore.

          Laurent TOURREAU added a comment - I don't follow this ticket anymore.

            Unassigned Unassigned
            lautou Laurent TOURREAU
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: