From b79759f3383ffdf05a480f419d13086c65c68a7b Mon Sep 17 00:00:00 2001 From: Mark Hobson Date: Tue, 19 Jun 2007 16:32:57 +0000 Subject: [PATCH] [MNG-3039] mvn.bat fails Fixing same problem for trunk. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@548789 13f79535-47bb-0310-9956-ffa450edef68 --- maven-embedder/src/bin/mvn.bat | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-embedder/src/bin/mvn.bat b/maven-embedder/src/bin/mvn.bat index 8212583b13..695f60d4cf 100644 --- a/maven-embedder/src/bin/mvn.bat +++ b/maven-embedder/src/bin/mvn.bat @@ -130,17 +130,17 @@ SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" if "%@eval[2+2]" == "4" goto 4NTCWJars @REM -- Regular WinNT shell -for %%i in ("%M2_HOME%"\core\boot\classworlds-*) do set CLASSWORLDS_JAR="%%i" +for %%i in ("%M2_HOME%"\lib\maven-embedder-*) do set MAVEN_JAR="%%i" goto runm2 @REM The 4NT Shell from jp software :4NTCWJars -for %%i in ("%M2_HOME%\core\boot\classworlds-*") do set CLASSWORLDS_JAR="%%i" +for %%i in ("%M2_HOME%\lib\maven-embedder-*") do set MAVEN_JAR="%%i" goto runm2 @REM Start MAVEN2 :runm2 -%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %CLASSWORLDS_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% +%MAVEN_JAVA_EXE% %MAVEN_OPTS% -classpath %MAVEN_JAR% "-Dclassworlds.conf=%M2_HOME%\bin\m2.conf" "-Dmaven.home=%M2_HOME%" org.codehaus.classworlds.Launcher %MAVEN_CMD_LINE_ARGS% if ERRORLEVEL 1 goto error goto end