|
Maven Error: 501 HTTPS Required
Author: Venkata Sudhakar
The issue may occur during Maven build phase because of the recent changes in the Maven Central Repository. Effective January 15th, 2020, The Central Repository no longer supports insecure communication over plain HTTP and requires that all requests to the repository are encrypted over HTTPS.
Problem
Error 501 HTTPS Required.
Use https://repo1.maven.org/maven2/
Return code is: 501, ReasonPhrase:HTTPS Required
We can solve this issue by forcing Maven to use HTTPS if you are using an older version of Maven as shown below. Otherwise just upgrade to Maven version >= 3.2.3 which uses HTTPS by default.
|
|