Ticket #45610: patch-bin-mvn.diff

File patch-bin-mvn.diff, 576 bytes (added by easye, 10 years ago)

Patch for mvn to use /usr/libexec/java_home properly

  • bin/mvn

    old new  
    8383             #
    8484             # Apple JDKs
    8585             #
    86              export JAVA_HOME=/usr/libexec/java_home
     86             export JAVA_HOME=`/usr/libexec/java_home`
    8787           fi
    8888           ;;
    8989esac
     
    199199  -classpath "${M2_HOME}"/boot/plexus-classworlds-*.jar \
    200200  "-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
    201201  "-Dmaven.home=${M2_HOME}"  \
    202   ${CLASSWORLDS_LAUNCHER} "$@"
    203  No newline at end of file
     202  ${CLASSWORLDS_LAUNCHER} "$@"