使用maven命令 deploy到nexus私服的时候报错如下:

2020-05-21 14:09:39,856+0800 WARN  [qtp1952156729-612]  admin org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: PUT xxxxxx.jar: org.sonatype.nexus.repository.InvalidContentException: Detected content type [application/x-sh], but expected [application/java-archive]:xxxxx.jar

解决方式:

取消私服仓库校验请求头 Validate that all content uploaded to this repository is of a MIME type appropriate for the repository format

nexus私服部署问题记录

保存后即可解决问题

相关文章: