• Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Critical Critical
    • maven-plugin
    • None
    • Linux, Java 1.6
      /Windows Server 2008 R2, Java 1.7

      After upgrading Jenkins to version 1.483, I see this behaviour:

      Changing some (other) values on the Jenkins settings page, the Maven installation entries get lost after the save.
      This results in broken maven build jobs, because they are missing their configured Maven installation.

      Trying to reconfigure a Maven installation on the Jenkins settings page has no effect. After calling "save", the Maven entries disappear.

      I have no log to present, because I had to downgrade Jenkins to version 1.481 to get my builds working.

          [JENKINS-15312] maven installation settings get lost

          sakkew added a comment -

          I worked around this by overriding jenkins/tools-folder and jenkins/hudson.tasks.Maven.xml from another setup and then restarting Jenkins.
          If you save Jenkins config even without doing any changes, the file hudson.tasks.Maven.xml gets reset, and maven is not found by builds anymore.

          sakkew added a comment - I worked around this by overriding jenkins/tools-folder and jenkins/hudson.tasks.Maven.xml from another setup and then restarting Jenkins. If you save Jenkins config even without doing any changes, the file hudson.tasks.Maven.xml gets reset, and maven is not found by builds anymore.

          This is a duplicate of JENKINS-15293, workaround is using either 1.482 or configuring the Maven installations by hand (eg don't set it to install from Apache).

          Jeroen Ferdinandus added a comment - This is a duplicate of JENKINS-15293 , workaround is using either 1.482 or configuring the Maven installations by hand (eg don't set it to install from Apache).

          sogabe added a comment -

          sogabe added a comment - the following changes will fix this. https://github.com/jenkinsci/jenkins/commit/e6685a700c2c7e34f6cbd2c9ad474b2c201919f4#core/src/main/java/hudson/tasks/Maven.java

          evernat added a comment -

          so resolving as duplicate of JENKINS-15293, which is fixed

          evernat added a comment - so resolving as duplicate of JENKINS-15293 , which is fixed

            Unassigned Unassigned
            lfischer lfischer
            Votes:
            3 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: