Maven:无法传输文件XXX返回码是:501,ReasonPhrase:HTTPS必需 [英] Maven: Failed to transfer file XXX Return code is: 501 , ReasonPhrase:HTTPS Required

查看:74
本文介绍了Maven:无法传输文件XXX返回码是:501,ReasonPhrase:HTTPS必需的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在构建我的Maven项目时,我收到了意外的501错误代码.消息说HTTPS是必需的,但是我还没有更改我的settings.xml.

如何检查我的配置是否有所更改?

我怎样才能使工作正常?

解决方案

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?

解决方案

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

这篇关于Maven:无法传输文件XXX返回码是:501,ReasonPhrase:HTTPS必需的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆