apache / lucene

Apache Lucene open-source search software
https://lucene.apache.org/
Apache License 2.0
2.59k stars 1.01k forks source link

maven validation job fails needing https [LUCENE-9341] #10381

Open asfimport opened 4 years ago

asfimport commented 4 years ago

https://builds.apache.org/job/Lucene-Solr-Maven-master/2885

-validate-maven-dependencies:
[artifact:dependencies] Downloading: com/ibm/icu/icu4j/62.2/icu4j-62.2.pom from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/62.2/icu4j-62.2.pom
[artifact:dependencies] [WARNING] Unable to get resource 'com.ibm.icu:icu4j:pom:62.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/62.2/icu4j-62.2.pom
[artifact:dependencies] Downloading: com/ibm/icu/icu4j/62.2/icu4j-62.2.jar from repository central at http://repo1.maven.org/maven2
[artifact:dependencies] Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/62.2/icu4j-62.2.jar
[artifact:dependencies] [WARNING] Unable to get resource 'com.ibm.icu:icu4j:jar:62.2' from repository central (http://repo1.maven.org/maven2): Error transferring file: Server returned HTTP response code: 501 for URL: http://repo1.maven.org/maven2/com/ibm/icu/icu4j/62.2/icu4j-62.2.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies]  Diagnosis:
[artifact:dependencies] 
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) com.ibm.icu:icu4j:jar:62.2
[artifact:dependencies] 
[artifact:dependencies]   Try downloading the file manually from the project website.
[artifact:dependencies] 
[artifact:dependencies]   Then, install it using the command: 
[artifact:dependencies]       mvn install:install-file -DgroupId=com.ibm.icu -DartifactId=icu4j -Dversion=62.2 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] 
[artifact:dependencies]   Alternatively, if you host your own repository you can deploy the file there: 
[artifact:dependencies]       mvn deploy:deploy-file -DgroupId=com.ibm.icu -DartifactId=icu4j -Dversion=62.2 -Dpackaging=jar -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies] 
[artifact:dependencies]   Path to dependency: 
[artifact:dependencies]     1) org.apache.lucene:lucene-analyzers-icu:jar:9.0.0-SNAPSHOT
[artifact:dependencies]     2) com.ibm.icu:icu4j:jar:62.2
[artifact:dependencies] 
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies] 
[artifact:dependencies] for artifact: 
[artifact:dependencies]   org.apache.lucene:lucene-analyzers-icu:jar:9.0.0-SNAPSHOT
[artifact:dependencies] 
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies]   central (http://repo1.maven.org/maven2),
[artifact:dependencies]   Nexus (http://repository.apache.org/snapshots)
[artifact:dependencies] 
[artifact:dependencies] 

Verified manually that the https version of that file exists.


Migrated from LUCENE-9341 by Mike Drob (@madrob) Linked issues:

asfimport commented 4 years ago

Mike Drob (@madrob) (migrated from JIRA)

Note that according to the maven page, the maven ant tasks component is retired (and has been for some time), and we should be using http://maven.apache.org/resolver-ant-tasks/ instead. I think that's going to be out of scope, given that ant itself should be leaving our build soon.

I think that does indicate that we shouldn't hope for out of the box support for https URLs for the remote repositories.