go to  ForumEasy.com   
JavaPro
Home » Archive » Message


[Email To Friend][View in Live Context][prev topic « prev post | next post » next topic]
  Maven -- Absolutely first tutorial
 
Subject: Maven -- Absolutely first tutorial
Author: Alex_Raj
Posted on: 03/25/2012 04:15:08 PM

1) Why do we need another building tool?

Java software development is often associated with repetitive tasks like building project's java classes, generating documentation and reporting. To automate these tasks a build tool is needed. We have ant already in the plate -- why do we need another one?

Among many reasons, the major one is that Maven is capable of manage and resolve all dependencies referenced by the project automatically. This is extremely helpful for bigger java projects that use a huge set of dependencies.


2) Where to download Maven?

Maven can be downloaded at http://maven.apache.org/download.html


3) Set path environment parameter

PATH=/path/to/apache-maven-3.0.4/bin

4) Verify installation

mvn --version

The output is as follows:
C:\HelloWorld\Maven\MyFirstProject>mvn --version
Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
Maven home: C:\downloads\apache-maven-3.0.4\bin\..
Java version: 1.6.0_29, vendor: Sun Microsystems Inc.
Java home: C:\Program Files\Java\jdk1.6.0_29\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"



Replies:


References:

 


 
Powered by ForumEasy © 2002-2022, All Rights Reserved. | Privacy Policy | Terms of Use
 
Get your own forum today. It's easy and free.