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

XMLWordPrintable

    • 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
      

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

              Created:
              Updated:
              Resolved: