[ https://issues.apache.org/jira/browse/THRIFT-5171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kengo Seki updated THRIFT-5171: ------------------------------- Component/s: (was: JSON - Compiler) Test Suite > Fix maven-ant-tasks to use HTTPS instead of HTTP > ------------------------------------------------ > > Key: THRIFT-5171 > URL: https://issues.apache.org/jira/browse/THRIFT-5171 > Project: Thrift > Issue Type: Bug > Components: Test Suite > Reporter: Kengo Seki > Assignee: Kengo Seki > Priority: Major > > I ran {{make check}} in the lib/json directory and came across the following > error. > {code:java} > $ ./bootstrap.sh > $ ./configure > $ make > $ cd lib/json > $ make check > (snip) > mvn.init: > [artifact:dependencies] Downloading: > com/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.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/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.pom > [artifact:dependencies] [WARNING] Unable to get resource > 'com.github.fge:json-schema-validator:pom:2.2.6' 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/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.pom > [artifact:dependencies] Downloading: > com/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.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/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.jar > [artifact:dependencies] [WARNING] Unable to get resource > 'com.github.fge:json-schema-validator:jar:2.2.6' 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/github/fge/json-schema-validator/2.2.6/json-schema-validator-2.2.6.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.github.fge:json-schema-validator:jar:2.2.6 > [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.github.fge -DartifactId=json-schema-validator -Dversion=2.2.6 > -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.github.fge > -DartifactId=json-schema-validator -Dversion=2.2.6 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > [artifact:dependencies] > [artifact:dependencies] Path to dependency: > [artifact:dependencies] 1) org.apache.maven:super-pom:pom:2.0 > [artifact:dependencies] 2) > com.github.fge:json-schema-validator:jar:2.2.6 > [artifact:dependencies] > [artifact:dependencies] ---------- > [artifact:dependencies] 1 required artifact is missing. > [artifact:dependencies] > [artifact:dependencies] for artifact: > [artifact:dependencies] org.apache.maven:super-pom:pom:2.0 > [artifact:dependencies] > [artifact:dependencies] from the specified remote repositories: > [artifact:dependencies] central (http://repo1.maven.org/maven2) > [artifact:dependencies] > [artifact:dependencies] > BUILD FAILED > /home/sekikn/repos/thrift/lib/json/test/build.xml:116: Unable to resolve > artifact: Missing: > ---------- > 1) com.github.fge:json-schema-validator:jar:2.2.6 > Try downloading the file manually from the project website. > Then, install it using the command: > mvn install:install-file -DgroupId=com.github.fge > -DartifactId=json-schema-validator -Dversion=2.2.6 -Dpackaging=jar > -Dfile=/path/to/file > Alternatively, if you host your own repository you can deploy the file > there: > mvn deploy:deploy-file -DgroupId=com.github.fge > -DartifactId=json-schema-validator -Dversion=2.2.6 -Dpackaging=jar > -Dfile=/path/to/file -Durl=[url] -DrepositoryId=[id] > Path to dependency: > 1) org.apache.maven:super-pom:pom:2.0 > 2) com.github.fge:json-schema-validator:jar:2.2.6 > ---------- > 1 required artifact is missing. > for artifact: > org.apache.maven:super-pom:pom:2.0 > from the specified remote repositories: > central (http://repo1.maven.org/maven2) > Total time: 2 seconds > Makefile:623: recipe for target 'check' failed > make[1]: *** [check] Error 1 > make[1]: Leaving directory '/home/sekikn/repos/thrift/lib/json/test' > Makefile:538: recipe for target 'check-recursive' failed > make: *** [check-recursive] Error 1 > {code} > maven-ant-tasks tries to download jars from the central repository using > HTTP, but the central repository only provides HTTPS access now, so this > error occurred. -- This message was sent by Atlassian Jira (v8.3.4#803005)