kascecu.blogg.se

How to install maven on ubuntu 16.04
How to install maven on ubuntu 16.04












how to install maven on ubuntu 16.04
  1. HOW TO INSTALL MAVEN ON UBUNTU 16.04 HOW TO
  2. HOW TO INSTALL MAVEN ON UBUNTU 16.04 UPDATE
  3. HOW TO INSTALL MAVEN ON UBUNTU 16.04 DOWNLOAD

You should get the following output: Apache Maven 3.6.3Ĭongratulations! you have successfully installed Apache Maven on Ubuntu 20.04 VPS.Spring Boot enables quick development of the Once your repository is up-to-date, you can install the Apache Maven using the following command: apt-get install maven -yĪfter installing the Apache Maven, verify the Apache Maven installation using the following command: mvn -version

HOW TO INSTALL MAVEN ON UBUNTU 16.04 UPDATE

You can also install the Apache Maven from the Ubuntu 20.04 default APT repository.įirst, update the repository cache with the following command: apt-get update -y Java version: 11.0.9.1, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64ĭefault locale: en_US, platform encoding: UTF-8 If everything is fine, you should get the following output: Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f) Now, you can verify the Apache Maven installation using the following command: mvn -version

how to install maven on ubuntu 16.04

Next, activate the environment variable with the following command: source /etc/profile.d/apachemaven.sh Verify the Apache Maven Save and close the file then give the execution permission: chmod +x /etc/profile.d/apachemaven.sh To do so, create a new file named apachemaven.sh inside /etc/profile.d/ directory: nano /etc/profile.d/apachemaven.shĪdd the following lines: export JAVA_HOME=/usr/lib/jvm/default-java 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

HOW TO INSTALL MAVEN ON UBUNTU 16.04 DOWNLOAD

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 This way you can install the latest version of Apache Maven in your system.

HOW TO INSTALL MAVEN ON UBUNTU 16.04 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.

how to install maven on ubuntu 16.04

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).
  • Step 3: Install Apache Maven from Source.
  • Step 1: Log in to the Server & Update the Server OS Packages.













  • How to install maven on ubuntu 16.04