Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 2.0.4
-
Fix Version/s: 3.0-alpha-1
-
Component/s: Command Line
-
Labels:None
-
Environment:Windows XP SP2 and 4NT 5.00U
-
Complexity:Intermediate
Description
1. If not setup properly and error occurs, the script attempts to "endlocal" twice:
[d:] > mvn --version
Exception in thread "main" java.lang.NoClassDefFoundError: org/codehaus/classworlds/Launcher
4NT: D:\dev\maven2\bin\mvn.bat [145] Missing SETLOCAL
2. Syntax wrong for adding CLASSWORLDS_JAR when under 4NT.
For #1, I updated the :error section of the mvn.bat file.
For #2, I added a new section to add the CLASSWORLDS_JAR
Issue Links
- is related to
-
MNG-2685
mvn.bat detection of 4NT syntax error
-
I tried to reproduce your problem with the last version of 4nt without success, ie
4NT 7.01 (4nt.exe, 3.2Mb, build 370) [1]
Try to upgrade your 4nt version. I'd like a confirmation before I close this issue.
Another tips for the next time, please refer to [2], "Creating and submitting a patch" part
Thanks!
[1] http://jpsoft.com/download.htm
[2] http://maven.apache.org/guides/development/guide-m2-development.html