Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-5171

Fix maven-ant-tasks to use HTTPS instead of HTTP

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • Test Suite
    • None

    Description

      I ran make check in the lib/json directory and came across the following error.

      $ ./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
      

      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.

      Attachments

        Issue Links

          Activity

            People

              sekikn Kengo Seki
              sekikn Kengo Seki
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m