mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-17 03:25:46 +00:00
39214bece7
- Use MASTER_SITE_APACHE - Use DATADIR - Install files using INSTALL_* [2] PR: ports/68769 Submitted by: Rui Lopes (maintainer) [1] Reviewed by: vs [2] Approved by: maintainer, glewis (mentor)
14 lines
477 B
Plaintext
14 lines
477 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 ``%%DATADIR%%''.
|
|
|
|
Then, you should initialize your repository with:
|
|
%%DATADIR%%/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"
|