bespin icon indicating copy to clipboard operation
bespin copied to clipboard

Build command throws 501 HTTPS Required error

Open yuxuan-ji opened this issue 5 years ago • 1 comments

The current build command mvn clean package results in a build failure due to 501 errors

Detailed error:

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 33.970 s
[INFO] Finished at: 2020-09-13T15:40:40-04:00
[INFO] Final Memory: 38M/1514M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project bespin: Could not resolve dependencies for project io.bespin:bespin:jar:1.0.5-SNAPSHOT: Failed to collect dependencies at org.apache.spark:spark-core_2.11:jar:2.3.1 -> net.java.dev.jets3t:jets3t:jar:0.9.4 -> commons-codec:commons-codec:jar:1.15-SNAPSHOT: Failed to read artifact descriptor for commons-codec:commons-codec:jar:1.15-SNAPSHOT: Could not transfer artifact commons-codec:commons-codec:pom:1.15-SNAPSHOT from/to maven (http://repo.maven.apache.org/maven2/): Failed to transfer file: http://repo.maven.apache.org/maven2/commons-codec/commons-codec/1.15-SNAPSHOT/commons-codec-1.15-SNAPSHOT.pom. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

This is because of the following change and can be fixed by using https in the repository tag of pom.xml :

  <repositories>
    <repository>
      <id>maven</id>
      <url>http://repo.maven.apache.org/maven2/</url> -> <url>https://repo.maven.apache.org/maven2/</url>
    </repository>
  </repositories>

source: this was reported and resolved on the CS451 Piazza, I just copied it over here

yuxuan-ji avatar Sep 13 '20 20:09 yuxuan-ji

Thanks! That resolves my issue.

GeekHusky avatar Sep 14 '20 18:09 GeekHusky