* call maven install function
* maven install function installs from file in /vagrant
Jenkins will be modified to point to this pre-installed maven. This
will eliminate many problems caused by an inability to fetch common
files.
Another solution would be to host a caching proxy within Vexxhost and
set the http_proxy and https_proxy environment variables to use this
host.
Change-Id: I76d1f3c2526b45dbe0fa4b2a17d3e30d434092ce
Signed-off-by: C.J. Collier <[email protected]>
. /vagrant/lib/bootstrap-functions.sh
do_setup
+do_mvn_install
# record the bootstrap.sh checksum
sha1sum $0 > /etc/bootstrap.sha
}
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_FILENAME=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
+ mkdir -p ${MAVEN_HOME}
+ tar -C ${MAVEN_HOME} --strip-components 1 -xzf /vagrant/${MAVEN_FILENAME}
}
OUTPUT=$(rpm -qa epel-release)
if [ -z "$OUTPUT" ]
then
- yum install -q -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
+ yum install -q -y /vagrant/epel-release-latest-7.noarch.rpm
fi
# Install components to build Ganglia modules