Download Apache MavenĠ1- First, go to the official Apache Maven download page and use the wget command to download the latest version of Apache Maven. Check out this tutorial: How to install Java on Centos 8. Install JavaĪpache Maven requires Java 1.7 or greater. Method 2./ Installing Apache Maven From Source 1. Java version: 11.0.7, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-11-openjdk-11.0.7.10-1.el8_1.x86_64ĭefault locale: en_US, platform encoding: UTF-8 Use the below command: # sudo dnf install mavenĠ2- To verify if Apache Maven is successfully installed just run the mvn -version command: # mvn -version Method 1./ Installing Apache Maven using dnfĠ1- The official CentOS repositories contains Maven packages that can be installed with the dnf package manager. You’ll need to be logged in as a user with sudo privileges in order to install the Apache Maven. In this tutorial we will show you two different ways to install Apache Maven on CentOS 8: Using the dnf package manager or by a source from the official website. It simplifies the build process like ANT. It is used for projects build, dependency and documentation. Apache Maven is a powerful project management tool that is based on POM (project object model).
0 Comments
Leave a Reply. |