$Revision: 1.6 $
$Name: $
$Date: 2006/04/13 13:54:09 $
Working with
m
a
ven
2
$Source: /ppw/training/maven/repository/maven2/src/html/installation.html,v $
Installation
Prerequisites
Java 1.4.0 or higher
Uses 100+MB on disk as cache (
local repository
)
Download
Download & extract
Choose the distribution with the compression you prefer
(
bz2
has the highest compression rate)
You can check the validity of the download with an MD5 checksum
(
Maven 2.0 Tasks for Ant
is a way to use
m
a
ven
from within Ant)
Install
Guide
Anywhere on your HD
un*x suggestion:
/opt/apache/maven/current --> /opt/apache/maven/maven-2.0
Mac OS X suggestion:
/Library/opt/apache/maven/current --> /Library/opt/apache/maven/maven-2.0
Windows suggestion:
C:\Program Files\Apache Software Foundation\maven-20
Installation dir will be untouched by use
Install read-only for users
Can be installed on network drives by sysadmin
Set environment variable
JAVA_HOME
m
a
ven
is a CLI application: adjust path
Configure proxy
if necessary
run
mvn -v
to check the installation
What is Installed?
Look at the
installed directory
maven-2.0/bin
Windows and un*x shell scripts
mvn
m2
is deprecated version of
mvn
maven-2.0/conf
Default
settings.xml
Each user can override these default settings
maven-2.0/core
spine of maven
the
main()
maven-2.0/lib
minimum minimorum
of Java dependencies we need to bootstrap
Modular
m
a
ven
is modular
You just only installed the core
Plugins
will be automatically downloaded and installed when they are needed the first time
In a per-user directory
un*x:
~/.m2
Windows:
%HOMEPATH%/m2
Multiple versions of plugins co-exist peacefully