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

Maven Release Plugin does not work if Maven 3 is on the system path

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • m2release-plugin
    • None
    • Mac OS X

      The M2 Release Plugin doesn't work with Maven 3. And even if you select Maven 2 for the build job, the Release plugin still tries to use the version of Maven it finds on the system path, and crashes with the following exception:

      ...
      [INFO] Executing goals 'clean install'...
      [INFO] Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
      [INFO] Caused by: java.lang.ClassNotFoundException: org.codehaus.classworlds.Launcher
      [INFO] at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
      [INFO] at java.security.AccessController.doPrivileged(Native Method)
      [INFO] at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
      [INFO] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
      [INFO] at java.lang.ClassLoader.loadClass(ClassLoader.java:248)

          [JENKINS-7837] Maven Release Plugin does not work if Maven 3 is on the system path

          johnsmart created issue -
          James Nord made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Progress [ 3 ] New: Resolved [ 5 ]
          johnsmart made changes -
          Resolution Original: Fixed [ 1 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          SCM/JIRA link daemon made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 137940 ] New: JNJira + In-Review [ 187753 ]
          James Nord made changes -
          Assignee Original: James Nord [ teilo ]

            Unassigned Unassigned
            johnsmart johnsmart
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: