截至 2020 年 1 月 15 日,我在向中央存储库提出请求时收到以下回复:
Requests to http://repo1.maven.org/maven2/ return a 501 HTTPS Required status and a body:
501 HTTPS Required.
Use https://repo1.maven.org/maven2/
More information at https://links.sonatype.com/central/501-https-required
Requests to http://repo.maven.apache.org/maven2/ return a 501 HTTPS Required status and a body:
501 HTTPS Required.
Use https://repo.maven.apache.org/maven2/
More information at https://links.sonatype.com/central/501-https-required
Run Code Online (Sandbox Code Playgroud)
如何满足此要求以便我可以重新访问 Central?
我在控制台中收到此错误
[INFO] Scanning for projects...
[INFO]
[INFO] ----------------------------< >----------------------------
[INFO] Building demo 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO] Downloading from : http://repo1.maven.org/maven2/org/mongodb/mongo-java-driver/3.12.0/mongo-java-driver-3.12.0.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------ …Run Code Online (Sandbox Code Playgroud)