Put the following following code lines in to it: export JAVA_HOME=/usr/lib/jvm/default-java Now we will set up environment variables, to do so open your text editor and create a new file named mavenenv.sh in the /etc/profile.d/ directory. To upgrade your Maven installation, unpack the newer version and change the symlink and point to it. To control the Maven versions and updates, create a symbolic link for maven that will point to the Maven installation directory: sudo ln -s /opt/apache-maven-3.6.3 /opt/maven We will download the Apache Maven in the /tmp directory: wget -P /tmpĪfter complete the download, extract the archive in the /opt directory: sudo tar xf /tmp/apache-maven-*.tar.gz -C /opt Currently, at the time of writing this article, the latest version of Apache Maven is 3.6.3. Visit the Maven download page to see the latest version of Maven. OpenJDK 64-Bit Server VM (build 25.181-b13, mixed mode) 2. It should show output like below: openjdk version "1.8.0_181" Verify the installation by running the following command: java -version To install OpenJDK 11, type: sudo apt update sudo apt install default-jdk JDK 1.7 or above need to be installed for Maven 3.3+ version.
0 Comments
Leave a Reply. |