
Maven can also be used to build and manage projects written in C#, Ruby, Scala, and other languages. With maven, you can efficiently manage a project’s build, reporting, and documentation. So, because of its great project management capabilities, Apache Maven has earned its place of honor in Java programming.Apache Maven is a free and powerful build automation tool primarily used for Java projects.

Installing Maven on CentOS 7 is not difficult however, it is a tool widely used by Java developers. Java version: 1.8.0_212, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.7_6.x86_64/jreĭefault locale: en_US, platform encoding: UTF-8 :~# echo 'export PATH=$PATH:/opt/apache-maven/bin' | tee -a /etc/profile :~# ln -s /opt/apache-maven-3.6.1 /opt/apache-mavenĪnd add it to the environment variable. This is to avoid problems with the Maven version. :~# chown -R root:root /opt/apache-maven-3.6.1/Īfter this, it is recommended to make a symbolic link to the Maven directory. Then, move it to the /opt/ directory and change the owner. At the time of writing this post, the current version is 3.6.1. To do this, let’s download it from the project repositories. :~# echo "JAVA_HOME=$(readlink -f /usr/bin/java | sed "s:bin/java::")" | tee -a /etc/profile Now it is necessary to define the JAVA_HOME variable in our system. OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode) OpenJDK Runtime Environment (build 1.8.0_212-b04)



To be sure everything went well, you can check the Java version. Although it also requires the latest version of it, so we will be able to use the OpenJDK that comes in CentOS 7 refuels.įor that, in a terminal, run the following: :~# yum install java-1.8.0-openjdk-devel It is also advisable to improve the robustness of some programs that could generate a security problem. This way, you will have a more stable system thanks to the security patches installed. That is to say that all the packages of the system are to their last version. The first step is to have the system updated.
