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

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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: m2release-plugin
    • Labels:
      None
    • Environment:
      Mac OS X
    • Similar Issues:

      Description

      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)

        Attachments

          Activity

            People

            • Assignee:
              teilo James Nord
              Reporter:
              johnsmart johnsmart
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: