Use MVND_HOME instead of MAVEN_HOME to not mess the stock maven usage, fixes
@@ -63,17 +63,17 @@ done
saveddir=`pwd`
-MAVEN_HOME=`dirname "$PRG"`/..
+MVND_HOME=`dirname "$PRG"`/..
# make it fully qualified
-MAVEN_HOME=`cd "$MAVEN_HOME" && pwd`
+MVND_HOME=`cd "$MVND_HOME" && pwd`
cd "$saveddir"
# For Cygwin, ensure paths are in Unix format before anything is touched
if $cygwin ; then
- [ -n "$MAVEN_HOME" ] &&
- MAVEN_HOME=`cygpath --unix "$MAVEN_HOME"`
+ [ -n "$MVND_HOME" ] &&
+ MVND_HOME=`cygpath --unix "$MVND_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --unix "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
@@ -82,8 +82,8 @@ fi
# For MinGW, ensure paths are in Unix format before anything is touched
if $mingw ; then
- [ -n "$MAVEN_HOME" ] &&
- MAVEN_HOME=`(cd "$MAVEN_HOME"; pwd)`
+ [ -n "$MVND_HOME" ] &&
+ MVND_HOME=`(cd "$MVND_HOME"; pwd)`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`(cd "$JAVA_HOME"; pwd)`
# TODO classpath?
@@ -102,14 +102,14 @@ if [ ! -x "$JAVACMD" ] ; then
exit 1
fi
-DAEMON_JAR=`echo "${MAVEN_HOME}"/lib/ext/*.jar "${MAVEN_HOME}"/lib/*.jar`
+DAEMON_JAR=`echo "${MVND_HOME}"/lib/ext/*.jar "${MVND_HOME}"/lib/*.jar`
DAEMON_JAR=$(echo $DAEMON_JAR | sed -e 's/ /:/g')
DAEMON_LAUNCHER=org.jboss.fuse.mvnd.daemon.Client
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
- [ -n "$MAVEN_HOME" ] &&
- MAVEN_HOME=`cygpath --path --windows "$MAVEN_HOME"`
+ [ -n "$MVND_HOME" ] &&
+ MVND_HOME=`cygpath --path --windows "$MVND_HOME"`
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"`
[ -n "$CLASSPATH" ] &&
@@ -193,8 +193,8 @@ exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "${DAEMON_JAR}" \
- "-Dlogback.configurationFile=${MAVEN_HOME}/conf/logging/logback.xml" \
- "-Dmaven.home=${MAVEN_HOME}" \
- "-Dlibrary.jansi.path=${MAVEN_HOME}/lib/jansi-native" \
+ "-Dlogback.configurationFile=${MVND_HOME}/conf/logging/logback.xml" \
+ "-Dmaven.home=${MVND_HOME}" \
+ "-Dlibrary.jansi.path=${MVND_HOME}/lib/jansi-native" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${DAEMON_LAUNCHER} -T1C --builder smart "$@"
