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

Maven 3 no longer supports org.apache.maven.global-settings

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • maven-plugin
    • None
    • WindowsXP, JDK1.6 but most importantly Maven 3 (3.0.2)

      Maven 3 no longer supports org.apache.maven.global-settings (http://jira.codehaus.org/browse/MNG-3914) the new way of specifying a global settings file is using -gs or --global-settings. The MAVEN_OPTS as configured in Jenkins is inserted too early in the commandline and the options will be interpreted as JVM options thus giving an error. The easiest solution probably is to have two OPTS:

      • MAVEN_JVM_OPTS is what the current MAVEN_OPTS is (actual JVM OPTS)
      • MAVEN_OPTS is specified after the phases in the command line and can contain actual maven options

      The only was to push in custom global settings when using maven 3 is to replace the settings.xml in the Jenkins/tools/maven

            Unassigned Unassigned
            tbee Tom Eugelink
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: