我正在使用Sonatype Nexus版本3.1.0-04。

由于Nexus存储库中缺少一些 Artifact ,我的构建失败了。
http://XXX.XXX.XXX.XXX:8081/nexus/content/repositories/central/com/google/protobuf/protoc/3.0.0/protoc-3.0.0-windows-x86_64.exe

当我搜索存储库时,看不到此.exe文件,只看到POM文件。

当我查看Maven存储库时,看到了所需的文件。
https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/

有人知道强制Nexus储存库与Maven储存库同步的方法吗?

最佳答案

我遇到的问题是由于选择了“严格的内容类型验证”选项。当我取消选中此选项时,该构建运行并拉下没有错误的 Artifact ,并在Nexus中填充了数据。

https://github.com/google/protobuf-gradle-plugin/issues/50

关于gradle - 如何将工件从Maven上传到Nexus存储库?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/41641633/

10-13 07:16