好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

关于maven打包时的报错: Return code is: 501 , ReasonPhrase:

今天带来关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required教程详解

今天使用jenkins构建时,报以下错误

  [ERROR] Failed to execute goal on project saas20: Could not resolve dependencies for project com.ipower365.saas:saas20:war:0.0.1-SNAPSHOT: Failed to collect dependencies at com.ipower365.saas:messageserviceimpl:jar:0.0.1-SNAPSHOT -> com.ipower365.boss:nacha:jar:1.0.1: Failed to read artifact descriptor for com.ipower365.boss:nacha:jar:1.0.1: Could not transfer artifact com.ipower365.boss:nacha:pom:1.0.1 from/to central (http://repo1.maven.org/maven2/):

Failed to transfer file:

http://repo1.maven.org/maven2/com/ipower365/boss/nacha/1.0.1/nacha-1.0.1.pom

. Return code is: 501 , ReasonPhrase:HTTPS Required. -> [Help 1]

  我们发现,这个依赖的文件在本地仓库是有的,但是在构建过程中,在本地nexus下载完文件后,还是会像中央仓库请求文件下载

    [echoing saas20] Downloading from central: http://repo1.maven.org/maven2/com/ipower365/boss/nacha/1.0.1/nacha-1.0.1.pom

  之后我们根据返回的501错误,去搜索问题,参考链接如下:

  https://stackoverflow测试数据/questions/59763531/maven-dependencies-are-failing-with-501-error


以上就是关于关于maven打包时的报错: Return code is: 501 , ReasonPhrase:HTTPS Required全部内容,感谢大家支持。

查看更多关于关于maven打包时的报错: Return code is: 501 , ReasonPhrase:的详细内容...

  阅读:54次