【简记】Gradle 发布到nexus仓库提示 Return code is: 405, ReasonPhrase: HTTP method PUT is not supported by this URL. 或 Method Not Allowed.
问题现象
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':common-base:uploadArchives'. > Could not publish configuration 'archives' > Failed to deploy artifacts: Could not transfer artifact com.xx.ent.base:common-base:jar:6.0.0-20220406.053022-1 from/to remote (http://xx.com.cn/nexus/maven-ent-snapshots/): Failed to transfer file: http://xx.com.cn/nexus/maven-ent-snapshots/com/xx/ent/base/common-base/6.0.0-SNAPSHOT/common-base-6.0.0-20220406.053022-1.jar. Return code is: 405, ReasonPhrase: Method Not Allowed. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
原因
发布的地址写错了。
本文作者:东北小狐狸
本文链接:https://www.cnblogs.com/hellxz/p/16106963.html
版权声明:本作品采用自由转载-非商用-非衍生-保持署名 (CC BY-NC-ND 3.0)许可协议进行许可。
分类:
持续交付CI/CD
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步