Failed to transfer file: ... Return code is: 501 , ReasonPhrase:HTTPS Required.

现场

maven工程

解决【works for me】

修改 setting.xml,官方文档


  repo1
  central
  Human Readable Name for this Mirror.
  https://repo1.maven.org/maven2/



  repo2
  central
  Human Readable Name for this Mirror.
  https://repo2.maven.org/maven2/



  alimaven
  aliyun maven
  https://maven.aliyun.com/nexus/content/groups/public/
  central

查阅

  • Maven dependencies are failing with a 501 error

Effective January 15, 2020, The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS.

你可能感兴趣的:(Failed to transfer file: ... Return code is: 501 , ReasonPhrase:HTTPS Required.)