I have used the following command to set the java version temporarily
export JAVA_HOME=/etc/alternatives/java_sdk_1.8.0
export PATH=$JAVA_HOME/bin:$PATH
but when i run mvn -v
I see it's pointing to java 7
so how to change JAVA_HOME
temporarily and see the effect in mvn -v
??
I solved by downloading another maven. and running
./mavendir/bin/mvn -v
Now it works fine
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.