Java version: 1.8.0_161, vendor: Oracle Corporation Run the following command to confirm mvn -versionĪnd you should get the following output Apache Maven 3.5.3 (3383c37e1f9e9b3bc3df5050c29c8aff9f295297 T13:49:05-06:00) With this step Apache Maven should be successfully installed and configured on your CentOS 7 VPS. Save the file and load the environment variables in the current shell. Create the following file nano /etc/profile.d/maven.sh We downloaded the precompiled version of Apache Maven, so we have to set the environment variables. Rename the newly created directory and remove the downloaded archive mv apache-maven-3.5.3 maven Unpack the downloaded zip archive yum -y install unzip In this tutorial we will install Apache Maven version 3.5.3 wget Go to their official website and download the arhive of the desired version. Install and configure Maven on CentOS 7Īpache Maven’s installation is a simple process. OpenJDK 64-Bit Server VM (build 25.161-b14, mixed mode) 3. OpenJDK Runtime Environment (build 1.8.0_161-b14) Once installed, run the following command the check the installed version java -version This command will install Java 8 and all necessary dependencies. We will install Java 8 yum install -y java-1.8.0-openjdk-devel Since Maven is Java based application we have to install Java on the server.
#HOW TO INSTALL MAVEN IN CENTOS UPDATE#
To start with the Maven installation, log in to your CentOS 7 server via SSH as user root ssh -p port_numberĪnd perform a full system update by typing the following command yum -y update 2.
– Switch from Eclipse Aether to Maven Artifact Resolver – Fixed several bugs in MVN scripts regarding spaces, quotations and special characters. – Release management and distribution publication:Īnd in the latest Maven 3.5 version, there are lots of bug fixes and important changes such as: – Extensible with a lot of plugins written in Java or other scripting languages – Simple project setup that follows best practices Listed below are some of the key features of Apache Maven: Installing Maven on CentOS 7 is fairly easy task, just carefully follow the steps bellow and you should have Maven installed on your CentOS 7 server in less then 10 minutes. Maven allows users to easily store documents, generate reports and documentation from a central piece of information.
Apache Maven is free and open source java based software for project management and comprehension tool.
#HOW TO INSTALL MAVEN IN CENTOS HOW TO#
We’ll show you how to install Maven on CenOS 7.