使用nexus做仓库镜像的时候,安装软件包如下错误:

2020-12-23 10:01:49,465+0800 WARN  [qtp776570439-871]  admin org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: GET /keys/nginx_signing.key: org.sonatype.nexus.repository.InvalidContentException: Detected content type [text/plain], but expected [application/vnd.apple.keynote]: keys/nginx_signing.key
2020-12-23 10:01:54,723+0800 WARN  [qtp776570439-870]  admin org.sonatype.nexus.repository.storage.StorageTxImpl - An exception occurred determining the content type of asset keys/nginx_signing.key in repository nginx

这是由于nexus会去校验仓库内容是否是适用于存储库格式的MIME 类型,这里在仓库设置中取消校验设置即可:如下图

请输入图片描述

最后修改:2020 年 12 月 23 日
如果觉得我的文章对你有用,请随意赞赏