diff options
author | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-07-19 15:15:09 -0700 |
---|---|---|
committer | C.J. Collier <cjcollier@linuxfoundation.org> | 2016-07-19 15:15:09 -0700 |
commit | a96e385f192653e3f681a7ce183f7f76c7672d0f (patch) | |
tree | 69bd7d5aa2de2fa2eb30984eb10e8862946f94ed /vagrant | |
parent | 8b9d36df6c1bd73dfe06edab11051031f0cbd786 (diff) |
prefetch maven
* install maven at basebuild respin time
* jenkins will be modified to point to pre-installed maven
* this will eliminate many problems caused by an inability to fetch
common files
Change-Id: I93032bb08e8ce6ffc50cd89ce4c5f5d080e60726
Signed-off-by: C.J. Collier <cjcollier@linuxfoundation.org>
Diffstat (limited to 'vagrant')
-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 } |