cat /usr/local/Cellar/maven/3.6.3_1/bin/mvn
(maven uses this if present) - not sure if this has anything with homebrew
installed maven. If there are any hardcoded versions, it might cause a difference in behavior.echo $JAVA_HOME
(maven uses this path and complains if not found) JAVA_HOME
explicitly in any of the terminal sessions? Also, how did you install java and maven? are they both installed using homebrew
?
alias java11="export JAVA_HOME=`/usr/libexec/java_home -v 11`"
alias java8="export JAVA_HOME=`/usr/libexec/java_home -v 1.8`"
.bashrc
or .zshrc
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.