...
Code Block |
---|
wget http://www.apache.org/dist//maven/binaries/apache-maven-3.0.3-bin.tar.gz |
Wiki Markup |
Step 2. Extract archive
Extract the distribution archive, i.e. apache-maven-3.0.3-bin.tar.gz
to the directory you wish to install Maven 3.0.3. These instructions assume you chose /opt. The subdirectory apache-maven-3.0.3
will be created from the archive.
Code Block |
---|
tar -zxvf apache-maven-3.0.3-bin.tar.gz |
Wiki Markup |
Step 3. Add the M2_HOME environment variable
1. Edit your BASHRC file to add the M2_HOME
environment variable (use your preferred editor).
Code Block |
---|
nano .bashrc |
Wiki Markup |
2. Add the following lines to the end of the file:
...
The system displays information on the Apache Maven version installed.
...
Excerpt | ||
---|---|---|
| ||
Instructions to install Apache Maven on Linux. |
...