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 WSO2 products, it is necessary to install the latest version of Apache Maven.

Info
titleNote

Refer to Installation Prerequisites for the list of all applications necessary to install and work with the WSO2 product you plan to use.

...

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

Step 1. Download Apache Maven

You can use wget to download the tar.gz file directly to your server:

!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 the Distribution Archive

Use the following command to extract files from the obtained archive:

!maven-gunzip.png|alt="Extract Apache Maven"!
Code Block
gunzip -c apache-maven-3.0.3-bin.tar.gz |tar xvf -
Wiki Markup

Extract Apache MavenImage Added

Step 3. Set Environmental Variables

Add the following lines to BASHRC file:

!export-Apache-Maven.png|alt="Export Apache Maven"!
Code Block
export M2_HOME=/opt/apache-maven-3.0.3
export PATH=${M2_HOME}/bin:${PATH}
Wiki Markup

Export Apache MavenImage Added

Step 4. Check Installation

After installation check the version by command:

!Maven-version.png|alt="Apache Maven version"!
Code Block
mvn -version
Wiki Markup

Apache Maven versionImage Added

The system displays information on the Apache Maven version installed.

...