2004-07-26 21:12:58 -04:00
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
Bootstrapping Maven
|
|
|
|
-------------------------------------------------------------------------------
|
|
|
|
|
2005-01-09 17:38:43 -05:00
|
|
|
To bootstrap Maven you must have a ~/.m2/maven.properties file with the following
|
|
|
|
entry:
|
2004-07-26 21:12:58 -04:00
|
|
|
|
|
|
|
maven.repo.local = /path/to/your/local/repository
|
|
|
|
|
2005-01-09 17:38:43 -05:00
|
|
|
Set the environment variable M2_HOME pointing to the dir where you want Maven2 installed.
|
2004-07-26 21:12:58 -04:00
|
|
|
|
2005-01-09 17:38:43 -05:00
|
|
|
You can set the parameters passed to the Java VM when running Maven2 bootstrap,
|
|
|
|
setting the environment variable MAVEN_OPTS, e.g.
|
|
|
|
e.g. to run in offline mode, set MAVEN_OPTS=-Dmaven.online=false
|
|
|
|
e.g. to build maven with debug info, set MAVEN_OPTS=-Dmaven.compiler.debug=true
|
2004-07-26 21:12:58 -04:00
|
|
|
|
2005-01-09 17:38:43 -05:00
|
|
|
Then run m2-bootstrap-all.bat (in Windows) or m2-bootstrap-all.sh (in Unix)
|
2004-07-26 21:19:41 -04:00
|
|
|
|
|
|
|
NOTE: You must run these instructions from this directory!
|