![how to install maven linux how to install maven linux](https://idroot.us/wp-content/uploads/2019/12/Apache-Maven-logo.png)
Next, you will need to setup environment variable to define the Java and Apache Maven path. Next, rename the extracted directory with the following command: mv apache-maven-3.6.3 apachemaven Setup Environment Variable Once the download is completed, extract the downloaded file with the following command: tar xzf apache-maven-3.6. Download Apache Mavenįirst, download the latest version of Apache Maven to the /opt directory with the following command: cd /opt
![how to install maven linux how to install maven linux](https://www.how2shout.com/linux/wp-content/uploads/2021/12/Maven-APp-project-Site.png)
This way you can install the latest version of Apache Maven in your system.
How to install maven linux how to#
In this section, we will show you how to install Apache Maven from the source. You should get the Java version in the following output: openjdk version "11.0.9.1" Once installed, verify the Java version with the following command: java -version You can install it with the following command: apt-get install default-jdk -y So you will need to install Java in your system. You can do this by running the following commands: apt-get update -yĪpache Maven is based on Java. Additionally, replace ‘root’ with the username of the admin account if necessary.īefore starting, you have to make sure that all Ubuntu OS packages installed on the server are up to date. You will need to replace ‘IP_Address’ and ‘Port_number’ with your server’s respective IP address and SSH port number. Step 1: Log in to the Server & Update the Server OS Packagesįirst, log in to your Ubuntu 20.04 server via SSH as the root user: ssh -p Port_number Access to the root user account (or access to an admin account with root privileges).An Ubuntu 20.04 VPS (we’ll be using our SSD 2 VPS plan).
![how to install maven linux how to install maven linux](https://dbeaver.io/product/dbeaver-ss-mock.png)
Step 3: Install Apache Maven from Source.Step 1: Log in to the Server & Update the Server OS Packages.