使用 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
保存后即可解决问题