THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block | ||||
---|---|---|---|---|
| ||||
# nano /etc/environment ... PATH="/usr/local/bin/apache-maven-2.2.1/bin:..." # source /etc/environment |
- 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"). User - create directory .m2 (located at "${user.home}/). Copy the default settings.xml coming with maven to this location:
Windows
Code Block | ||||
---|---|---|---|---|
| ||||
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 | ||||
---|---|---|---|---|
| ||||
$ 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"
...