![]() Install Apache Maven on CentOS Pre-requisiteĪs we already said, Apache Maven needs the jdk. So installation of Apache maven on Ubuntu is done. This should give the version of the maven installed. Test the maven setup by checking the version by entering the following command mvn –version Then, publish the configuration by sourcing the file by Now Make the maven.sh executable by entering the following Save the file and close by pressing ctrl + x then y then For that, create maven.sh file in the /etc/profile.dįolder by entering the following command sudo nano /etc/profile.d/maven.shĪdd the follwong lines in the file. We need to set up the maven environment so that it will beĪvailable as an executable binary. In our case, we are selecting “apache-maven” mv apache-maven-3.6.1/ apache-maven/ Step 4: Configure maven environment. ![]() tar -xf apache-maven-3.6.įor the clear and safe communication, always keep binary files in the folder which name is in standard characters. There is multiple version of apache maven is available inĮxtract maven packages by entering the following command. The following command in the console cd /opt/ Step 3: installing Apache mavenĭownload the maven binary code in /opt folder by entering This should through the version of the installed java. ![]() Verify the java installation by entering following command in Enter the followingĬommands in the console. ![]() Install java because maven needs java to be installed. Sudo apt-get upgrade Step 2: Installing Java Put the following commands in the console. Non- root user with ‘ sudo’ privileges. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |