2003-10-21 16:49:20 -04:00
|
|
|
|
|
|
|
To work with Maven you need to set the following environment variables:
|
|
|
|
* JAVA_HOME
|
|
|
|
Set it to the base directory of your java installation.
|
|
|
|
* MAVEN_HOME
|
2004-08-07 19:46:37 -04:00
|
|
|
Set it to ``%%DATADIR%%''.
|
2003-10-21 16:49:20 -04:00
|
|
|
|
|
|
|
Then, you should initialize your repository with:
|
2004-08-07 19:46:37 -04:00
|
|
|
%%DATADIR%%/bin/install_repo.sh ~/.maven/repository
|
2003-10-21 17:33:19 -04:00
|
|
|
|
|
|
|
If you are behind a proxy, create a ~/.mavenrc file with something like:
|
|
|
|
MAVEN_OPTS="$MAVEN_OPTS -Dmaven.proxy.host=YOUR_PROXY_HOSTNAME
|
|
|
|
-Dmaven.proxy.port=YOUR_PROXY_PORT"
|