Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion apache-maven/src/bin/mvn
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ if [ -z "$JAVA_HOME" ] ; then
fi

CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
CLASSWORDS_JAR=`echo "${M2_HOME}"/boot/plexus-classworlds-*.jar`

# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
Expand All @@ -187,6 +188,8 @@ if $cygwin; then
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
CLASSPATH=`cygpath --path --windows "$CLASSPATH"`
[ -n "$CLASSWORLDS_JAR" ] &&
CLASSWORLDS_JAR=`cygpath --path --windows "$CLASSWORLDS_JAR"`
fi

# Provide a "standardized" way to retrieve the CLI args that will
Expand All @@ -196,7 +199,7 @@ export MAVEN_CMD_LINE_ARGS

exec "$JAVACMD" \
$MAVEN_OPTS \
-classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
-classpath "${CLASSWORLDS_JAR}" \
"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
"-Dmaven.home=${M2_HOME}" \
${CLASSWORLDS_LAUNCHER} "$@"