You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ke...@apache.org on 2006/11/02 18:17:50 UTC

svn commit: r470421 - /maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn

Author: kenney
Date: Thu Nov  2 09:17:50 2006
New Revision: 470421

URL: http://svn.apache.org/viewvc?view=rev&rev=470421
Log:
PR: MNG-2341

MAVEN_HOME was used here. Looking at the script, it's never
used, and the M2_HOME var is calculated from the path of the mvn
shell script. Removed check for ~/m2/ and /opt/m2 since they
are effectively never used.

Added doco for the env vars.

Modified:
    maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn

Modified: maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn
URL: http://svn.apache.org/viewvc/maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn?view=diff&rev=470421&r1=470420&r2=470421
==============================================================================
--- maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn (original)
+++ maven/components/branches/maven-2.0.x/maven-core/src/bin/mvn Thu Nov  2 09:17:50 2006
@@ -18,6 +18,22 @@
 #   Copyright (c) 2001-2002 The Apache Software Foundation.  All rights
 #   reserved.
 
+# ----------------------------------------------------------------------------
+# Maven2 Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+#   JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+#   M2_HOME - location of maven2's installed home dir
+#   MAVEN_OPTS - parameters passed to the Java VM when running Maven
+#     e.g. to debug Maven itself, use
+#       set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# ----------------------------------------------------------------------------
+
+
 QUOTED_ARGS=""
 while [ "$1" != "" ] ; do
 
@@ -60,15 +76,6 @@
 fi
 
 if [ -z "$M2_HOME" ] ; then
-  # try to find MAVEN
-  if [ -d /opt/m2 ] ; then
-    MAVEN_HOME=/opt/m2
-  fi
-
-  if [ -d "$HOME/m2" ] ; then
-    MAVEN_HOME="$HOME/m2"
-  fi
-
   ## resolve links - $0 may be a link to maven's home
   PRG="$0"