1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:24:52 +00:00
freebsd-ports/devel/maven/pkg-message
Joe Marcus Clarke 6bfe18a3d2 Add a bit on using Maven with a proxy.
Submitted by:	maintainer
2003-10-21 21:33:19 +00:00

14 lines
509 B
Plaintext

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"