From 0bc302a60fae2c6f4d29136755a040ec288e97f0 Mon Sep 17 00:00:00 2001 From: Jaikiran Pai Date: Sat, 21 May 2022 19:27:33 +0530 Subject: [PATCH] Maven Ant tasks has been EOLed (https://maven.apache.org/ant-tasks/). Switch to Maven Artficat Resolver Ant tasks instead (https://maven.apache.org/resolver-ant-tasks/) --- fetch.xml | 27 ++++++++++++++++----------- get-m2.xml | 8 ++++---- lib/libraries.properties | 12 ++++++------ 3 files changed, 26 insertions(+), 21 deletions(-) diff --git a/fetch.xml b/fetch.xml index 2c09cd6c7..ac231ea36 100644 --- a/fetch.xml +++ b/fetch.xml @@ -98,7 +98,7 @@ Set -Ddest=LOCATION on the command line + xmlns:resolver="antlib:org.apache.maven.resolver.ant"> Cannot execute multiple targets due to the bug in Maven Ant tasks @@ -119,16 +119,21 @@ Set -Ddest=LOCATION on the command line - - - - - - - - + + + + + + + + + + + + diff --git a/get-m2.xml b/get-m2.xml index de30ef24e..c0c540b3a 100644 --- a/get-m2.xml +++ b/get-m2.xml @@ -48,10 +48,10 @@ + value="org/apache/maven/resolver/ant/antlib.xml" /> + value="antlib:org.apache.maven.resolver.ant" /> @@ -100,7 +100,7 @@ + if="m2.sha1.checksum" unless="${checksum.equal}"> Failed to verify the downloaded file ${m2.antlib.url}" against the checksum @@ -116,6 +116,6 @@ + description="Download the Maven Artifact Resolver Ant tasks" /> diff --git a/lib/libraries.properties b/lib/libraries.properties index 349e199fb..54370c8fd 100644 --- a/lib/libraries.properties +++ b/lib/libraries.properties @@ -16,14 +16,14 @@ # This file declares the libraries for use in a given release of the components # If you change this, change the checksum to match -m2.version=2.1.3 -m2.url=https://archive.apache.org/dist/maven/ant-tasks -m2.artifact-name=maven-ant-tasks -m2.jar.name=${m2.artifact-name}-${m2.version}.jar +m2.version=1.4.0 +m2.url=https://repo1.maven.org/maven2/org/apache/maven/resolver +m2.artifact-name=maven-resolver-ant-tasks +m2.jar.name=${m2.artifact-name}-${m2.version}-uber.jar #this is the URL of the antlib library, that is pulled down for everything else. -m2.antlib.url=${m2.url}/${m2.version}/binaries/${m2.jar.name} +m2.antlib.url=${m2.url}/${m2.artifact-name}/${m2.version}/${m2.jar.name} #this is the sha1 checksum of the artifact -m2.sha1.checksum=b09be554228d66d208e5fef5266844aacf443abc +m2.sha1.checksum=c4642858aa22465650ad2a469b24e22696177441 # Repository to use by default for fetching dependencies. m2.repo=https://repo1.maven.org/maven2/