diff --git a/apache-maven/src/bin/mvn b/apache-maven/src/bin/mvn index ecebe9f393..d9a2d75b1a 100755 --- a/apache-maven/src/bin/mvn +++ b/apache-maven/src/bin/mvn @@ -62,14 +62,14 @@ case "`uname`" in # # Apple JDKs # - JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [[ -z "$JAVA_HOME" && -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ]] ; then - # - # Oracle JDKs - # - JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + # + # Oracle JDKs + # + export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi ;; esac diff --git a/apache-maven/src/bin/mvnDebug b/apache-maven/src/bin/mvnDebug index b7fffc7bb4..14f76b1ad9 100755 --- a/apache-maven/src/bin/mvnDebug +++ b/apache-maven/src/bin/mvnDebug @@ -66,14 +66,14 @@ case "`uname`" in # # Apple JDKs # - JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [[ -z "$JAVA_HOME" && -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ]] ; then - # - # Oracle JDKs - # - JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + # + # Oracle JDKs + # + export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi ;; esac diff --git a/apache-maven/src/bin/mvnyjp b/apache-maven/src/bin/mvnyjp index 99154db73d..d42bc87184 100755 --- a/apache-maven/src/bin/mvnyjp +++ b/apache-maven/src/bin/mvnyjp @@ -70,14 +70,14 @@ case "`uname`" in # # Apple JDKs # - JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + export JAVA_HOME=/System/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [[ -z "$JAVA_HOME" && -L "/Library/Java/JavaVirtualMachines/CurrentJDK" ]] ; then - # - # Oracle JDKs - # - JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home + # + # Oracle JDKs + # + export JAVA_HOME=/Library/Java/JavaVirtualMachines/CurrentJDK/Contents/Home fi if [ -z "$YJP_HOME" ]; then