-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmaven.template
13 lines (13 loc) · 924 Bytes
/
maven.template
1
2
3
4
5
6
7
8
9
10
11
12
13
\
\
&& echo "Downloading Maven $MAVEN_VERSION" \
&& wget --no-verbose --output-document=maven.zip "https://dlcdn.apache.org/maven/maven-3/$MAVEN_VERSION/binaries/apache-maven-${MAVEN_VERSION}-bin.zip" \
&& echo "Checking download hash $MAVEN_VERSION" \
&& echo "$MAVEN_DOWNLOAD_SHA512 *maven.zip" | sha512sum --check - \
&& echo "Installing Maven $MAVEN_VERSION" \
&& unzip -q maven.zip \
&& rm maven.zip \
&& echo "Adding alt-deploy-maven-extension" \
&& wget --no-verbose --output-document="apache-maven-$MAVEN_VERSION"/lib/ext/alt-deploy-maven-extension.jar "https://repo1.maven.org/maven2/org/goots/maven/extensions/alt-deploy-maven-extension/1.8/alt-deploy-maven-extension-1.8.jar" \
&& echo "$ALT_DEPLOY_1_8 apache-maven-$MAVEN_VERSION/lib/ext/alt-deploy-maven-extension.jar" | sha512sum --check - \
&& mv "apache-maven-$MAVEN_VERSION" "/opt/maven/$MAVEN_VERSION/" \