

As the screenshot shows, the java version is different, how can I change the java version in maven to 1.8?
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 .zshrcIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With