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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major
    • Component/s: m2release-plugin
    • None
    • Environment:
      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)

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

              Created:
              Updated:
              Resolved: