Download Apache Maven version 3 and save it on your local machine.
Extract the file you just downloaded using your preferred archive extraction tool.
Select your operating system below to add the bin directory of the created directory apache-maven-3.5.0 to the PATH environment variable
For Ubuntu
1.Open the command terminal and enter the following
$ export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9
$ export M2=$M2_HOME/bin
$ export MAVEN_OPTS=-Xms256m -Xmx512m
Now append the M2 variable to the system path.
$ export PATH=$M2:$PATH
Check maven installed correctly, by running this command in a terminal: mvn -version. The output should show your Maven version.
Extract the file you just downloaded using your preferred archive extraction tool.
Select your operating system below to add the bin directory of the created directory apache-maven-3.5.0 to the PATH environment variable
- Windows 7: Right click My Computer and select Properties.
Windows 8 and 10: Go to Control Panel > System > Advanced System Settings - On the Advanced tab, select Environment Variables, and then find a Systems Variable called
Pathand add to it the path for your \bin file, for exampleC:\Program Files\apache-maven-3.5.0\bin.

- Check you have set the variable correctly by opening up command prompt (run + cmd) and typing
mvn -version. The output should show your Maven version.
For Ubuntu
1.Open the command terminal and enter the following
$ export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9
$ export M2=$M2_HOME/bin
$ export MAVEN_OPTS=-Xms256m -Xmx512m
Now append the M2 variable to the system path.
$ export PATH=$M2:$PATH
Check maven installed correctly, by running this command in a terminal: mvn -version. The output should show your Maven version.
Comments
Post a Comment