jenkins deploy nexus3出现"Error installing artifact's metadata: Error while deploying metadata: Failed to transfer file: http://localhost:8081/repository/maven-snapshots/com/aa/et/project/maven-metadata.xml. Return code is: 400"错误

查看nexus3日志,发现"org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: PUT"

解决方案

编辑$datadir/etc/nexus.properties

nexus.maven.metadata.validation.enabled=false

参考文档:https://issues.sonatype.org/browse/NEXUS-19943