1
您好我的gradle版本在uploadArchives
任务中失败;但是当我检查Nexus时,WAR和POM仍然成功部署到连接。任何人都可以帮助我理解发生了什么。Gradle上传失败,但仍然部署到Nexus
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
请使用'--stacktrace'命令行标志运行来添加堆栈跟踪 – JBirdVegas
您确定没有试图重新部署已存在于存储库中的发布工件吗? –