# maven3-jdk15/cfg - "Build" settings for package
#---------------------------------------------------------------------
[technotes]
1. This package builds a copy of the program "mvn" using OpenJDK15.
This distro is able to build this packages *offline* *without* depend-
encies on Internet repositories. This feature required a bit of ef-
fort.
If there is a need to update the source tarball, the updated tarball
needs to be built using an online procedure. The old online procedure
may *not* work. Therefore, it may not be possible to update this pack-
age.
#---------------------------------------------------------------------
2. The source tarball used by this package was created as follows.
Internet access and external websites were required. This procedure
may *not* work in the future! Therefore, keep backup copies of source
tarballs.
The script shown here needs [or needed] to be run in the same direc-
tory as the following upstream source tarball:
apache-maven-3.6.3-src.tar.gz
which was obtained originally from:
https://archive.apache.org/dist/maven/maven-3/3.6.3/\
source/apache-maven-3.6.3-src.tar.gz
The script shown here also needs [or needed] a prebuilt copy of the
standard "mvn" directory tree. It assumes that the prebuilt copy is
stored in a tarball with the following name:
maven3-jdk$JDKNUM-prebuilt$LACBITS.tar.bz2
where the "$" parameters are set in the script.
The tarball in question is assumed to be stored in the same directory
as the "apache-maven-*-src" tarball discussed further above; i.e., in
the current directory when this script is run.
The output file is named:
maven3-jdk$JDKNUM-lacsrc-$DATE6D.tar.bz2
where the "$" parameters are set in the script.
#---------------------------------------------------------------------
#!/bin/bash -e
set -e
DATE6D=251018
JDKNUM=15
TOPDIR=`pwd`
SPCDIR=$TOPDIR
if [ "@$LACBITS" == "@" ]; then
if [ `uname -m` == "i386" ]; then
LACBITS=32
else
LACBITS=64
fi
fi
#---------------------------------------------------------------------
export JAVA_HOME=$PRODTREE/openjdk$JDKNUM
export ANT_HOME=$JAVA_HOME
export PATH=$JAVA_HOME/bin:$PATH
#---------------------------------------------------------------------
OLDBASE=apache-maven-3.6.3
OLDBALL=$OLDBASE-src.tar.gz
rm -fr $OLDBASE
ls -l $OLDBALL
NEWBASE=maven3-jdk$JDKNUM-lacsrc-$DATE6D
NEWBALL=$NEWBASE.tar.bz2
rm -fr $NEWBASE $NEWBALL
BLDBASE=maven3-jdk$JDKNUM-prebuilt$LACBITS
BLDBALL=$SPCDIR/$BLDBASE.tar.bz2
ls -l $BLDBALL
#---------------------------------------------------------------------
echo tar zxf $OLDBALL
tar zxf $OLDBALL
cd $OLDBASE
ls -l deploySite.sh
HERE=`pwd`
#---------------------------------------------------------------------
tar jxf $BLDBALL
ls $HERE/$BLDBASE/bin/
PATH=$HERE/$BLDBASE/bin:$PATH
hash mvn
echo Boot mvn: `which mvn`
#---------------------------------------------------------------------
sed -e '/-surefire-/a2.21.0' \
-e '/