Start by downloading the Apache Maven in the /tmp directory using the following wget Before continuing with the next step, you should check the Maven download page OpenJDK 64-Bit Server VM (build 25.191-b12, mixed mode)Īt the time of writing this article, the latest version of Apache Maven is 3.6.0. OpenJDK Runtime Environment (build 1.8.0_191-b12) The output should look something like this: openjdk version "1.8.0_191" Verify that Java was successfully installed by running the following command: java -version Install the OpenJDK package by typing: sudo yum install java-1.8.0-openjdk , which is the default Java development and runtime in CentOS 7. Maven 3.3+ requires JDK 1.7 or above to be installed. We’ll be downloading the latest release of Apache Maven from their official website. The following sections provide a step by step instructions about how to install the latest Apache Maven version on CentOS 7. Install the Latest Release of Apache Maven # Maven is now installed on your CentOS system and you can start using it. Java version: 1.8.0_191, vendor: Oracle Corporation The output should look something like this: Apache Maven 3.0.5 (Red Hat 3.0.5-17) Verify the installation by typing the mvn -version command: mvn -version Install Maven by typing the following command in your terminal: sudo yum install maven Installing Maven on CentOS 7 using yum is a simple, straightforward process. Installing Apache Maven on CentOS with Yum # The user you are logging in as must have sudo privileges To install the latest version of Maven, follow the steps provided in the second part of this article, where we will be downloading Maven from their official website.Ĭhoose the installation method that is most appropriate for your setup and environment. However, the version included in the repositories may lag behind the latest version of Maven. This is the easiest way to install Maven on CentOS. The official CentOS repositories contain Maven packages that can be installed with the yum package manager. In this tutorial we will show you two different ways to install Apache Maven on CentOS 7. Maven uses a Project Object Model (POM), which is essentially an XML file containing information about the project, configuration details, the project’s dependencies, and so on. Apache Maven is a free and open-source project management and comprehension tool used primarily for Java projects.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |