To verify our Apache Maven installation, you can run the maven command below. Now make the ‘maven.sh’ script executable and then apply the configuration by running the ‘source’ command. # Apache Maven Environment Variables# MAVEN_HOME for Maven 1 - M2_HOME for Maven 2export M2_HOME=/usr/local/src/apache-maven Go to the “/etc/profile.d” directory and create a new configuration file “maven.sh”. We will define some environment variables that are needed by Apache Maven. In this step, we will configure the environment for Apache Maven. # mv apache-maven-3.6.0/ apache-maven/ Configure Apache Maven Environment # cd /usr/local/srcĮxtract the downloaded archive file, and rename it using following commands. Next, go to the official Apache Maven download page and grab the latest version or use the following wget command to download it under the maven home directory “/usr/local/src“. Java OpenJDK 8 has been installed on CentOS 7.
0 Comments
Leave a Reply. |