diff options
-rw-r--r-- | vagrant/lib/bootstrap-functions.sh | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/vagrant/lib/bootstrap-functions.sh b/vagrant/lib/bootstrap-functions.sh index 7805f67cf..84e659593 100644 --- a/vagrant/lib/bootstrap-functions.sh +++ b/vagrant/lib/bootstrap-functions.sh @@ -4,6 +4,18 @@ do_setup() { echo "127.0.1.1 $(hostname) # temporary" >> /etc/hosts } +do_mvn_install() { + MAVEN_MIRROR=apache.mirrors.tds.net + MAVEN_VERSION=3.3.9 + MAVEN_RELEASE=http://${MAVEN_MIRROR}/maven/maven-3/${MAVEN_VERSION}/binaries/apache-maven-${MAVEN_VERSION}-bin.tar.gz + MAVEN_HOME=/opt/apache/maven + + mkdir -p /opt/apache/maven + wget -O - ${MAVEN_RELEASE} | \ + tar xz -C ${MAVEN_HOME} --strip-components 1 +} + + do_cleanup() { perl -i -ne 'print unless /^127.0.1.1.*# temporary$/' /etc/hosts } |