Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Panel
borderStylesolid
titleTable of contents
Table of Contents
minLevel1
maxLevel3
includePagestrue
indent20px
styledisc

Homepage:

http://maven.apache.org/Image Removed

Download:

http://maven.apache.org/download.htmlImage Removed

File(s):

apache-maven-2.1.0-bin.zip (2.9 MB) or apache-maven-2.2.1-bin.tar.gz (2.7 MB)

...

Code Block
titleTerminal
borderStylesolid
# nano /etc/environment
...
PATH="/usr/local/bin/apache-maven-2.2.1/bin:..."
# source /etc/environment

...

  • Project - most static configuration occurs in pom.xml, should inherit from a company-wide parent pom.xml
  • Installation - this is configuration added once for a Maven installation
  • User - this is configuration specific to a particular user (located at "${user.home}/.m2/settings.xml").
  • User - create directory .m2 (located at "${user.home}/). Copy the default settings.xml coming with maven to this location:

Windows

Code Block
titleCommand Prompt
borderStylesolid
C:\> mkdir c:\Documents and Settings\<your_username>\.m2
C:\> copy "c:\Program Files\apache-maven-2.1.0\conf\settings.xml" "c:\Documents and Settings\<your_username>\.m2\"
        1 file(s) copied.

...

Code Block
titleTerminal
borderStylesolid
$ cd
$ mkdir .m2
$ cp /usr/local/bin/apache-maven-2.2.1/conf/settings.xml .m2/
  • Maven configuration occurs at 3 levels:
    • Project - most static configuration occurs in pom.xml, should inherit from a company-wide parent pom.xml
    • Installation - this is configuration added once for a Maven installation
    • User - this is configuration specific to a particular user (located at "${user.home}/.m2/settings.xml").

Configuration at a "Global Level" (for all users on a machine) can be done in "${maven.home}/conf/settings.xml"

...

Code Block
titleCommand Prompt
borderStylesolid
$ mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200)
Java version: 1.6.0_16
Java home: /usr/lib/jvm/java-6-sun-1.6.0.16/jre
Default locale: de_DE, platform encoding: UTF-8
OS name: "linux" version: "2.6.28-15-generic" arch: "i386" Family: "unix"

Documentation