From ea78c80177c79edc1426f8d573b04fd26ec6e53b Mon Sep 17 00:00:00 2001 From: Alexander Kriegisch Date: Mon, 29 Mar 2021 08:45:01 +0700 Subject: [PATCH] Recreate lib/ant from Apache source/binary downloads - Download Ant 1.6.3 binaries and sources ZIPs from Apache releases download server - Verify expected SHA-1 checksums - Unpack binary distribution - Repack main sources into source package as it is checked in now - Redundantly add JUnit JAR in order to 100% replicate existing directory layout - Move downloads from 'validate' phase to 'generate-resources' - Unpack/repack phase is 'process-resources' - Make sure that download, unpack, repack only occur if necessary instead of overwriting existing artifacts during each build Signed-off-by: Alexander Kriegisch --- libx/pom.xml | 171 +++++++++++++++++++++++++++++++++++++++++---------- 1 file changed, 140 insertions(+), 31 deletions(-) diff --git a/libx/pom.xml b/libx/pom.xml index cc7a9f997..00b3a2eae 100644 --- a/libx/pom.xml +++ b/libx/pom.xml @@ -11,8 +11,47 @@ libx + + apache-ant + 1.6.3 + ${ant.name}-${ant.version} + + + + + com.googlecode.maven-download-plugin + download-maven-plugin + 1.6.1 + + + download-ant-binaries + generate-resources + + wget + + + https://archive.apache.org/dist/ant/binaries/${ant.artifact}-bin.zip + ant + 3fa9f816a0c4c63249efad8e6225f2e83794f0c0 + + + + download-ant-sources + generate-resources + + wget + + + https://archive.apache.org/dist/ant/source/${ant.artifact}-src.zip + ant + b9f3c8c31bb6c9069ad5b655059a17769af12f20 + + + + + org.apache.maven.plugins maven-dependency-plugin @@ -20,42 +59,12 @@ copy - validate + generate-resources copy - - - ant - ant - 1.6.5 - jar - false - ant - ant.jar - - - - ant - ant - 1.6.5 - jar - sources - false - ant - ant-src.zip - + + junit + junit + 3.8.1 + jar + false + ant/lib + junit.jar + junit @@ -156,7 +176,96 @@ + + + + + unzip-ant-binaries + + + + ant/bin/ant.bat + + + + + + org.codehaus.mojo + truezip-maven-plugin + 1.2 + + + unzip-ant-binaries + process-resources + + copy + + + true + + + ant/${ant.artifact}-bin.zip/${ant.artifact} + ant + + + + + + + + + + + unzip-ant-sources + + + + ant/ant-src.zip + + + + + + org.codehaus.mojo + truezip-maven-plugin + 1.2 + + + unzip-ant-sources + process-resources + + copy + + + true + + + ant/${ant.artifact}-src.zip/${ant.artifact}/src/main + ant/ant-src.zip + + + + + + + + + + + + -- 2.39.5