Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

In order to install the source distribution of any WSO2 product, it is necessary to install the latest version of Apache Maven on Linux.

Info
titleNote

Refer to Installation Prerequisites for the list of all applications necessary to install and work with WSO2 products.

...

Establish a SSH connection to the Linux machine or log in to the text Linux console. You should either log in as root or obtain root permission after login via su or sudo command.

Step 1. Download Apache Maven

Type the following command:

!download-Apache-Maven.png|alt="Download Apache Maven"!
Code Block
wget http://www.apache.org/dist//maven/binaries/apache-maven-3.0.3-bin.tar.gz
Wiki Markup

Download Apache MavenImage Added

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.

!extract-archieve.png|alt="Extract archive"!
Code Block
tar -zxvf apache-maven-3.0.3-bin.tar.gz
Wiki Markup

Extract archiveImage Added

Step 3. Add the M2_HOME environment variable

1. Edit your BASHRC file to add the M2_HOME environment variable (use your preferred editor).

!M2-HOME-environment-variable.png|alt="Extract archive"!
Code Block
nano .bashrc
Wiki Markup

Extract archiveImage Added

2. Add the following lines to the end of the file:

...

4. Exit editor (for nano "Ctrl+X").

Step 4. Verify installation of Apache Maven

After installation check the version by command:

...

The system displays information on the Apache Maven version installed.

...

Extract archiveImage Added

Excerpt
hiddentrue

Instructions to install Apache Maven on Linux.

...