当前位置: 代码迷 >> 综合 >> Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
  详细解决方案

Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.

热度:45   发布时间:2024-02-13 12:41:17.0

完整异常如下: 

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.230 s
[INFO] Finished at: 2020-08-22T11:40:06+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.7:deploy (default-deploy) on project hysn-utils: Failed to deploy artifacts: Could not transfer artifact com.hysn.lee:hysn-utils:jar:1.0 from/to hysn-release (http://120.25.127.42:9991/nexus/repository/maven-releases/): Failed to transfer file: http://120.25.127.42:9991/nexus/repository/maven-releases/com/hysn/lee/hysn-utils/1.0/hysn-utils-1.0.jar. Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases. -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

 

 

解决办法:

出现该错误是因为私服的发行库或者是快照库不允许更新发布依赖

 

我们设置为允许发布

 

如此问题就解决了

  相关解决方案