This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Maven's startup script (mvn/mvn.bat) uses M2_HOME as the default HOME directory when specified. It causes NoClassDefFoundError when startup script's major version doesn't consist with the one of default Maven directory, as the filename of the bootstrap jar has been changed since Maven 2.2.1 (classworlds-1.1.jar) to Maven 3 (plexus-classworlds-2.2.3.jar). Clearly, it will stop NB's upcoming version from calling Maven when user still keeps this environment variable for some reason since NB will come with the latest Maven 3. M2_HOME should be exclused when NB calls Maven's startup script.
Created attachment 102649 [details] Remove M2_HOME from mvn's executing environment Consider Windows is case-insensitive, removes M2_HOME in an iteration and regarding cases.
*** Bug 189898 has been marked as a duplicate of this bug. ***
Thanks! Committed with minor modifications: core-main #4b9fc7550193
Integrated into 'main-golden', will be available in build *201010280000* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4b9fc7550193 User: Jesse Glick <jglick@netbeans.org> Log: #191374: $M2_HOME would interfere w/ command execution.
*** Bug 191780 has been marked as a duplicate of this bug. ***