Browse Source

d/apache-maven: Leave the bin directory in place.

slackware-14.2
Damien Goutte-Gattat 5 years ago
parent
commit
5052536443
  1. 7
      d/apache-maven/apache-maven.SlackBuild
  2. 2
      d/apache-maven/mvn.sh

7
d/apache-maven/apache-maven.SlackBuild

@ -35,7 +35,7 @@ WGET=${WGET:-http://wwwftp.ciril.fr/pub/apache/maven/maven-3/$VERSION/source/$AR
# Build infos
NAMEPKG=${NAMEPKG:-apache-maven}
BUILD=${BUILD:-1GGD}
BUILD=${BUILD:-2GGD}
ARCH=noarch
EXT=${EXT:-txz}
@ -71,9 +71,10 @@ echo "Building $ARCHIVE..."
unzip $CWD/$ARCHIVE
cd $NAME
ant -Dmaven.home=$PKG/usr/lib/apache-maven
rm -rf $PKG/usr/lib/apache-maven/bin
rm $PKG/usr/lib/apache-maven/bin/*
install -m 644 $CWD/m2.conf $PKG/usr/lib/apache-maven/m2.conf
install -m 644 $CWD/mvn.sh $PKG/usr/lib/apache-maven/bin/mvn
install -m 644 $CWD/m2.conf $PKG/usr/lib/apache-maven/bin/m2.conf
install -D -m 755 $CWD/mvn.sh $PKG/usr/bin/mvn
# Install the documentation

2
d/apache-maven/mvn.sh

@ -36,7 +36,7 @@ export MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
exec java \
$MAVEN_OPTS $MAVEN_DEBUG_OPTS \
-classpath /usr/lib/apache-maven/boot/plexus-classworlds-*.jar \
-Dclassworlds.conf=/usr/lib/apache-maven/m2.conf \
-Dclassworlds.conf=/usr/lib/apache-maven/bin/m2.conf \
-Dmaven.home=/usr/lib/apache-maven \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
org.codehaus.plexus.classworlds.launcher.Launcher \

Loading…
Cancel
Save