Maven installation and configuration.

Maven is project management and build tool. It can be used to build application of different languages. Following are the simple steps for installation and configuration of maven.

Download and Installationwatch full The Mummy film online

Latest version of maven can be downloaded from.

http://apache.mesi.com.ar/maven/

I have tested with maven 2 – http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz

  1. Download – http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
  2. Extract apache-maven-2.2.1-bin.tar.gz into “/usr/local/”
  3. Create symlink for “maven” to point “/usr/local/apache-maven-2.2.1”
  4. Create maven.sh file into “/etc/profile.d/”
  5. Add M2_HOME and JAVA_HOME into maven.sh
  6. Logout from user and login again.
$ wget http://archive.apache.org/dist/maven/binaries/apache-maven-2.2.1-bin.tar.gz
$ tar -xvf apache-maven-2.2.1-bin.tar.gz
$ ln -s /usr/local/apache-maven-2.2.1 maven
$ vi /etc/profile.d/maven.sh

Add following variables into “maven.sh” …movie A Midwestern Lake 2017 trailerlive streaming movie Monsters, Inc. 2001

export M2_HOME=/usr/local/maven
export PATH=${M2_HOME}/bin:$PATH
export JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.55.x86_64/jre
export PATH=$JAVA_HOME:$PATH

Maven settings file

Create maven settings files in .m2 folder of each user root directory, if maven has not created. This is configuration file create per user specific. It contains user-specific configuration and authentication, repositories and other information to customize the behavior of maven.

[localhost ~]$ vi .m2/settings.xml

 

Categories: Linux