#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/devel/maven3/files/mvn.sh.in,v 1.1 2011-09-01 21:53:01 hq Exp $

if [ -f /etc/mavenrc ] ; then
	. /etc/mavenrc
fi

if [ -f "${HOME}/.mavenrc" ] ; then
	. "${HOME}/.mavenrc"
fi

M2_HOME=${M2_HOME:-"/usr/local/share/java/maven3"}

JAVA_VERSION="1.6+" exec "/usr/local/bin/java" $MAVEN_OPTS \
	-classpath "${M2_HOME}/boot/plexus-classworlds-2.4.jar" \
	"-Dclassworlds.conf=${M2_HOME}/bin/m2.conf" \
	"-Dmaven.home=${M2_HOME}" org.codehaus.classworlds.Launcher "$@"
