Set Java version on Linux Shell – CentOS
I am running the following script on Linux Centos 7. export JAVA_HOME=/usr/lib/jvm/jdk-14.0.2 echo $JAVA_HOME echo | java -version echo "maven build ..." mvn clean install -DskipTests -Dhttps.protocols=TLSv1,TLSv1.1,TLSv1.2 With this output: /usr/lib/jvm/jdk-14.0.2 java version "1.7.0_161" OpenJDK Runtime Environment (rhel-2.6.12.0.el7_4-x86_64 u161-b00) OpenJDK…