Verify Maven Installation on Ubuntu 16.04Īnd finally, verify that Maven is properly installed Run the following command to load the environment variables source /etc/profile.d/maven.sh 9. Set the necessary environment variables by creating new file with the following content nano /etc/profile.d/maven.shĮxport JAVA_HOME=/usr/lib/jvm/java-8-oracle Rename the create directory to something simpler mv apache-maven-3.5.2 maven Once downloaded, unpack the zip archive unzip apache-maven-3.5.2-bin.zip 8. Download Latest Maven Versionĭownload the latest stable release Maven wget Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) 7. Java(TM) SE Runtime Environment (build 1.8.0_121-b13) To verify the installation, run java -version
#How to install maven in ubuntu 14.04 install
Next, install Java 8 with the following command apt-get install oracle-java8-installer It is not available in the official Ubuntu 16.04 repository, so we will add the PPA repository maintained by the Webupd8 team apt-get install software-properties-common First of all, we have to install Java on the server. If you want to install the latest one, you can download it from Maven’s official website. Manual Installation of MavenĪs we already mentioned, 3.3.9 is not the latest version of Maven. Java home: /usr/lib/jvm/java-8-openjdk-amd64/jreĭefault locale: en_US, platform encoding: ANSI_X3.4-1968 Java version: 1.8.0_151, vendor: Oracle Corporation
![how to install maven in ubuntu 14.04 how to install maven in ubuntu 14.04](https://phoenixnap.com/kb/wp-content/uploads/2022/02/install-maven-on-windows-02-extract-maven.png)
The result should be similar to Apache Maven 3.3.9 This will install the latest Maven 3 version available in the repository along with all Maven dependencies, including Java.Īfter the installation is complete, you can verify whether Maven is successfully installed on your Ubuntu 16.04 server, use the following command mvn -version
![how to install maven in ubuntu 14.04 how to install maven in ubuntu 14.04](https://www.journaldev.com/wp-content/uploads/2019/12/download-openjdk-windows.png)
To proceed with the installation, run the following command apt-get -y install maven Note that the latest available version of Apache Maven is currently 3.5.2 and it is the recommended version for all users. Install Maven from the official repository You can check the exact version by executing the following command apt-cache show maven | grep Version It is available in the official Ubuntu 16.04 repository. The installation of Apache Maven is a very simple process.
#How to install maven in ubuntu 14.04 update
Update OS PackagesĪnd update all installed packages to the latest version apt-get update & apt-get upgrade 3. Verify Maven Installation on Ubuntu 16.04įirst of all login to your Ubuntu 16.04 VPS via SSH as user root ssh -p Port_number 2.
![how to install maven in ubuntu 14.04 how to install maven in ubuntu 14.04](https://www.bogotobogo.com/Java/tutorials/images/MavenPlugin/Maven_Integration_for_Eclipse_Drag.png)