LUCENE-9170: Use HTTPS when downloading wagon-ssh artifacts
Co-authored-by: Ishan Chattopadhyaya <ishan@apache.org>
diff --git a/lucene/common-build.xml b/lucene/common-build.xml
index 5ea117c..b655def 100644
--- a/lucene/common-build.xml
+++ b/lucene/common-build.xml
@@ -216,6 +216,7 @@
<property name="m2.repository.private.key" value="${user.home}/.ssh/id_dsa"/>
<property name="m2.repository.id" value="local"/>
<property name="m2.credentials.prompt" value="true"/>
+ <property name="maven.repository.id" value="remote"/>
<property name="tests.workDir" location="${build.dir}/test"/>
<property name="junit.output.dir" location="${build.dir}/test"/>
@@ -650,9 +651,13 @@
<attribute name="pom.xml"/>
<attribute name="jar.file" default="${dist.jar.dir.prefix}-${version}/${dist.jar.dir.suffix}/${final.name}.jar"/>
<sequential>
- <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7"/>
+ <artifact:install-provider artifactId="wagon-ssh" version="1.0-beta-7">
+ <remoteRepository id="${maven.repository.id}" url="${ivy_bootstrap_url1}" />
+ </artifact:install-provider>
<parent-poms/>
- <artifact:pom id="maven.project" file="@{pom.xml}"/>
+ <artifact:pom id="maven.project" file="@{pom.xml}">
+ <remoteRepository id="${maven.repository.id}" url="${ivy_bootstrap_url1}" />
+ </artifact:pom>
<artifact:deploy file="@{jar.file}">
<artifact-attachments/>
<remoteRepository id="${m2.repository.id}" url="${m2.repository.url}">