Browse Source

d/apache-maven: Upgraded to apache-maven-3.6.2.

current-20191101
parent
commit
221e41b189
6 changed files with 42 additions and 13 deletions
  1. +1
    -0
      d/apache-maven/apache-maven-3.3.9-src.tar.gz.sha256
  2. +0
    -1
      d/apache-maven/apache-maven-3.3.9-src.zip.sha1
  3. +1
    -0
      d/apache-maven/apache-maven-3.6.2-src.tar.gz.sha256
  4. +38
    -11
      d/apache-maven/apache-maven.SlackBuild
  5. +1
    -1
      d/apache-maven/m2.conf
  6. +1
    -0
      d/apache-maven/mvn.sh

+ 1
- 0
d/apache-maven/apache-maven-3.3.9-src.tar.gz.sha256 View File

@ -0,0 +1 @@
9150475f509b23518e67a220a9d3a821648ab27550f4ece4d07b92b1fc5611bc apache-maven-3.3.9-src.tar.gz

+ 0
- 1
d/apache-maven/apache-maven-3.3.9-src.zip.sha1 View File

@ -1 +0,0 @@
2b783992afcba54255f46508d582fe656e2c37dc apache-maven-3.3.9-src.zip

+ 1
- 0
d/apache-maven/apache-maven-3.6.2-src.tar.gz.sha256 View File

@ -0,0 +1 @@
7ed94655b4098729de292a13c96765bb90a407bb6feb64f201a9444aebde69d1 apache-maven-3.6.2-src.tar.gz

+ 38
- 11
d/apache-maven/apache-maven.SlackBuild View File

@ -29,13 +29,22 @@
# Source package infos
NAMESRC=${NAMESRC:-apache-maven}
VERSION=${VERSION:-3.3.9}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.zip}
WGET=${WGET:-http://wwwftp.ciril.fr/pub/apache/maven/maven-3/$VERSION/source/$ARCHIVE}
VERSION=${VERSION:-3.6.2}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-src.tar.gz}
MIRROR=${MIRROR:-http://mirror.ox.ac.uk/sites/rsync.apache.org}
WGET=${WGET:-$MIRROR/maven/maven-3/$VERSION/source/$ARCHIVE}
# Maven used to be buildable with ant, but recent versions
# need to be built with Maven itself. If Maven is not already
# available, we'll need an older version to bootstrap.
BOOTSTRAP_MVN=$(type -p mvn)
BOOTSTRAP_VERSION=3.3.9
BOOTSTRAP_ARCHIVE=apache-maven-$BOOTSTRAP_VERSION-src.tar.gz
BOOTSTRAP_WGET=$MIRROR/maven/maven-3/$BOOTSTRAP_VERSION/source/$BOOTSTRAP_ARCHIVE
# Build infos
NAMEPKG=${NAMEPKG:-apache-maven}
BUILD=${BUILD:-2GGD}
BUILD=${BUILD:-1GGD}
ARCH=noarch
EXT=${EXT:-txz}
@ -57,20 +66,38 @@ if [ ! -d $TMP ]; then
exit 1
fi
# Get and verify the source archive
# Get and verify the source archives
if [ ! -r $ARCHIVE ]; then
wget -c -O $ARCHIVE.part "$WGET"
mv $ARCHIVE.part $ARCHIVE
fi
sha1sum -c $ARCHIVE.sha1
sha256sum -c $ARCHIVE.sha256
NAME=$NAMESRC-$VERSION
# Compile
cd $TMP
mkdir -p $TMP/maven
# Build older version if needed
if [ -z "$BOOTSTRAP_MVN" ]; then
if [ ! -r $BOOTSTRAP_ARCHIVE ]; then
wget -c -O $BOOTSTRAP_ARCHIVE.part "$BOOTSTRAP_WGET"
mv $BOOTSTRAP_ARCHIVE.part $BOOTSTRAP_ARCHIVE
fi
sha256sum -c $BOOTSTRAP_ARCHIVE.sha256
cd $TMP/maven
echo "Bootstraping with maven-$BOOTSTRAP_VERSION..."
tar xf $CWD/$BOOTSTRAP_ARCHIVE
cd apache-maven-$BOOTSTRAP_VERSION
ant -Dmaven.home=$TMP/maven/bootstrap
BOOTSTRAP_MVN=$TMP/maven/bootstrap/bin/mvn
fi
# Compile target version
cd $TMP/maven
echo "Building $ARCHIVE..."
unzip $CWD/$ARCHIVE
tar xf $CWD/$ARCHIVE
cd $NAME
ant -Dmaven.home=$PKG/usr/lib/apache-maven
$BOOTSTRAP_MVN -DdistributionTargetDir=$PKG/usr/lib/apache-maven clean package
rm $PKG/usr/lib/apache-maven/bin/*
install -m 644 $CWD/mvn.sh $PKG/usr/lib/apache-maven/bin/mvn
@ -91,7 +118,7 @@ PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXT
rm -rf $PKG
rm -rf $TMP/$NAME
rm -rf $TMP/maven
"
if type -p fakeroot ; then
echo "$PACKAGING" | fakeroot


+ 1
- 1
d/apache-maven/m2.conf View File

@ -1,6 +1,6 @@
main is org.apache.maven.cli.MavenCli from plexus.core
[plexus.core]
load /usr/lib/apache-maven/conf/logging
optionally /usr/lib/apache-maven/lib/ext/*.jar
load /usr/lib/apache-maven/lib/*.jar
load /usr/lib/apache-maven/conf/logging

+ 1
- 0
d/apache-maven/mvn.sh View File

@ -38,6 +38,7 @@ exec java \
-classpath /usr/lib/apache-maven/boot/plexus-classworlds-*.jar \
-Dclassworlds.conf=/usr/lib/apache-maven/bin/m2.conf \
-Dmaven.home=/usr/lib/apache-maven \
-Dlibrary.jansi.path=/usr/lib/apache-maven/lib/jansi-native \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
org.codehaus.plexus.classworlds.launcher.Launcher \
"$@"

Loading…
Cancel
Save