作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
嗨,我的gradle构建失败了uploadArchives
任务;但是当我检查Nexus时,WAR和POM仍成功部署到了联系。谁能帮助我了解发生了什么。
26-Jul-2016 18:46:28 :compileGroovy UP-TO-DATE
26-Jul-2016 18:46:28 :buildProperties UP-TO-DATE
26-Jul-2016 18:46:28 :processResources UP-TO-DATE
26-Jul-2016 18:46:28 :classes UP-TO-DATE
26-Jul-2016 18:46:28 :compileTestJava UP-TO-DATE
26-Jul-2016 18:46:28 :compileTestGroovy UP-TO-DATE
26-Jul-2016 18:46:28 :compileGsonViews UP-TO-DATE
26-Jul-2016 18:46:36 :war
26-Jul-2016 18:46:44 Could not transfer artifact com.company.software:app-name:war:16.7.26-RELEASE from/to remote (https://www.company.com/nexus/repository/maven-releases/): Failed to transfer file: https://www.company.com/nexus/repository/maven-releases/com/company/software/app-name/16.7.26-RELEASE/app-name-16.7.26-RELEASE.war. Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
26-Jul-2016 18:46:44 Could not transfer artifact com.company.software:app-name:pom:16.7.26-RELEASE from/to remote (https://www.company.com/nexus/repository/maven-releases/): Failed to transfer file: https://www.company.com/nexus/repository/maven-releases/com/company/software/app-name/16.7.26-RELEASE/app-name-16.7.26-RELEASE.pom. Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
26-Jul-2016 18:46:44 :uploadArchives FAILED
26-Jul-2016 18:46:44
26-Jul-2016 18:46:44 FAILURE: Build failed with an exception.
26-Jul-2016 18:46:44
26-Jul-2016 18:46:44 * What went wrong:
26-Jul-2016 18:46:44 Execution failed for task ':uploadArchives'.
26-Jul-2016 18:46:44 > Could not publish configuration 'archives'
26-Jul-2016 18:46:44 > Failed to deploy artifacts: Could not transfer artifact com.company.software:app-name:war:16.7.26-RELEASE from/to remote (https://www.company.com/nexus/repository/maven-releases/): Failed to transfer file: https://www.company.com/nexus/repository/maven-releases/com/company/software/app-name/16.7.26-RELEASE/app-name-16.7.26-RELEASE.war. Return code is: 400, ReasonPhrase: Repository does not allow updating assets: maven-releases.
26-Jul-2016 18:46:44
26-Jul-2016 18:46:44 * Try:
26-Jul-2016 18:46:44 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
26-Jul-2016 18:46:44
26-Jul-2016 18:46:44 BUILD FAILED
26-Jul-2016 18:46:44
26-Jul-2016 18:46:44 Total time: 27.993 secs
最佳答案
我在将Maven发布到托管发布存储库时遇到了类似的错误:
Error code 400, Repository does not allow updating assets: Releases -> [Help 1]
关于gradle - Gradle上传失败,但仍部署到Nexus,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38601209/
我有以下正则表达式 /[a-zA-Z0-9_-]/ 当字符串只包含从 a 到z 大小写、数字、_ 和 -。 我的代码有什么问题? 能否请您向我提供一个简短的解释和有关如何修复它的代码示例? //var
我是一名优秀的程序员,十分优秀!