[ http://jira.codehaus.org/browse/MNG-2503?page=comments#action_77162 ] Andrew Forman commented on MNG-2503: ------------------------------------
I can confirm issue #1. I've 4NT 8.00.36 and do see the SETLOCAL error when running the mvn.bat that comes with 2.0.4. The fix I made to resolve the issue was to change the :error section, removing the @endlocal (as follows). :error if "%OS%"=="Windows_NT" set ERROR_CODE=1 > mvn.bat file is not correct for 4NT 5.0 and does "endlocal" twice if error > -------------------------------------------------------------------------- > > Key: MNG-2503 > URL: http://jira.codehaus.org/browse/MNG-2503 > Project: Maven 2 > Issue Type: Bug > Components: Command Line > Affects Versions: 2.0.4 > Environment: Windows XP SP2 and 4NT 5.00U > Reporter: Mark DeLaFranier > Priority: Minor > Attachments: mvn.bat > > > 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 -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira