Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

https

maven

I'm getting an unexpected 501 error code when building my maven project. The message says HTTPS is required but i haven't changed my settings.xml.

How can i check if something has changed in my configuration?

How can i get things to work?

like image 204
BabaNew Avatar asked Sep 06 '25 03:09

BabaNew


1 Answers

The reason for this is explained in Maven dependencies are failing with a 501 error

1) In order to upgrade your maven version you can use the following URL https://maven.apache.org/download.cgi; you should extract this file in your PC and then point the extracted file in your IDE.

2) Or... if you're using a non-updated IDE you can install a newer version and maven should be configured automatically in the proper way; In my case, i was using Netbeans 8.2 and now i moved to 11.1, which uses https and works smoothly

enter image description here

like image 89
BabaNew Avatar answered Sep 09 '25 23:09

BabaNew