

- #HOW TO INSTALL MAVEN IN UBUNTU HOW TO#
- #HOW TO INSTALL MAVEN IN UBUNTU ARCHIVE#
- #HOW TO INSTALL MAVEN IN UBUNTU SOFTWARE#
- #HOW TO INSTALL MAVEN IN UBUNTU CODE#
- #HOW TO INSTALL MAVEN IN UBUNTU PASSWORD#
Java version: 1.8.0_171, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-oracle/jreĭefault locale: en_IN, platform encoding: UTF-8 If installation went well, you see a output similar to the following. To verify Apache Maven installation, run the following mvn command. Now make the ‘maven.sh’ configuration file executable and then load the configuration by running the ‘source’ command. # MAVEN_HOME for Maven 1 - M2_HOME for Maven 2Įxport JAVA_HOME=/usr/lib/jvm/java-8-oracleĮxport M2_HOME=/usr/local/src/apache-mavenĮxport MAVEN_HOME=/usr/local/src/apache-maven $ sudo cd /etc/profile.d/Īdd the following environment variables in ‘maven.sh’ configuration file.

Now we will configure the environments variables for Apache Maven files on our system by creating a new configuration file ‘maven.sh’ in the ‘/etc/profile.d’ directory. $ sudo mv apache-maven-3.5.4/ apache-maven/
#HOW TO INSTALL MAVEN IN UBUNTU ARCHIVE#
$ sudo cd /usr/local/srcĮxtract the downloaded archive apache-maven-3.5. file, and rename the directory to ‘apache-maven’ using following commands.
#HOW TO INSTALL MAVEN IN UBUNTU CODE#
Next, visit the Apache Maven download page and grab the latest version of apache maven binary code or use the following wget command to download it under the maven home directory ‘/usr/local/src’. Java HotSpot(TM) 64-Bit Server VM (build 25.171-b11, mixed mode) Java(TM) SE Runtime Environment (build 1.8.0_171-b11) If installation went well, you see the following output.

$ sudo apt-get install oracle-java8-installer $ sudo add-apt-repository ppa:webupd8team/java -y $ sudo apt install software-properties-common apt-transport-https -y Java Development Kit (JDK) is a essential requirement to install Apache Maven, so first install Java on Ubuntu and Debian system using the third-party Java PPA Repository and verify the version using following commands.
#HOW TO INSTALL MAVEN IN UBUNTU HOW TO#
In this article, I will explain how to install and configure latest version of Apache Maven on Ubuntu and Debian distributions along with Java 8 from the PPA Repository. Read Also: How to Install Apache Maven in CentOS 7
#HOW TO INSTALL MAVEN IN UBUNTU SOFTWARE#
After that it will ask to install some necessary packages including openjdk if you like to install openjdk on your machine type "y" if not type "n" and use Install Maven2 manuall procedure to install maven2/maven3 on your machine.Apache Maven is a free software application management and build automation platform based on the conception of a project object model (POM), which is especially used for deploying Java-based projects, but can also be used on applications written in C#, Ruby and other programming languages.
#HOW TO INSTALL MAVEN IN UBUNTU PASSWORD#
Then it will ask your password type your password. Open a new terminal and type "sudo apt-get install maven2". Download apache-maven-3.0.4 instead of maven2 NOTE: if you used previous terminal for this before type "mvn -version" type "source. If you get same out put then you have installed maven2 on your machine. If you need to install oracal(sun) java 1.7 on your machine see my previous post Install Oracle(sun) jdk 1.7 in ubuntu.Īpache Maven 2.2.1 (r801777 00:46:01+0530)Ħ. Get a new terminal and type "mvn -version" then you will get below line and some other information like java versin and java home. bashrc file "export PATH=/home/your_home_directory_name/maven-2.2.1/bin:$PATH" (note: replace your home directory name with "your_home_directory_name", i have added "export PATH=/home/shameera/maven-2.2.1/bin:$PATH" as my home directory name is "shameera")ĥ. Open your terminal and type "cd" to go to home directory where. Now you need to set maven classpath in ".bashrc" file. Let's say you created a directory call "maven-2.2.1" in your home directory.ģ. First you need to download maven 2.2.1 binary file.Ģ.Extract downloaded binary file to a directory where you like to keep maven. Today I'm going to tell you how to install maven2/maven3 in ubuntu by manually and by apt-get package manager.ġ. Maven is a java building tool which can uses for compile,run test, install, etc.
