![How to install maven in centos](https://kumkoniak.com/92.jpg)
![how to install maven in centos how to install maven in centos](https://phoenixnap.com/kb/wp-content/uploads/2021/04/1_how-to-install-apache-maven-centos-768x384.png)
:~# 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
![how to install maven in centos how to install maven in centos](https://technowikis.com/sites/technowikis.com/uploads/026/2649641326375688877.png)
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.
![How to install maven in centos](https://kumkoniak.com/92.jpg)