主要错误描述:
Return code is: 405, ReasonPhrase: PUT.
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
个人原因:路径配置错误,网上找了很多原因,都说405是路径错误,可我看了没错,其实是我的两个仓库路径配置成一样的了,低级错误,记录一下,引以为戒,希望对你有用。
另外配置中的id要要和settings配置文件中的中配置的id保持一致,否则会报:
Deployment failed: repository element was not specified in the POM inside distributionManagement element
意思是pom文件中缺少distributionManagement 的配置,其实是id写错了。
maven配置私服的两种方式,后续补充。。。
Maven提交至私服时报错 Return code is: 405, ReasonPhrase: PUT.
最新推荐文章于 2023-02-07 16:46:20 发布