summaryrefslogtreecommitdiff
path: root/devel/maven/pkg-message
blob: 52c51b3dddd94f305560ebe0d50d9639495a4792 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
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
    Set it to ``/usr/local/share/java/maven''.

Then, you should initialize your repository with:
  /usr/local/share/java/maven/bin/install_repo.sh ~/.maven/repository

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"