jstanley
jstanley

Reputation: 2097

How to upload artifacts from Maven into Nexus repository?

I am using Sonatype Nexus version 3.1.0-04.

I have a build that is failing due to some missing artifacts in my Nexus repository. 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

When I search the repository, I do not see this .exe file, all I see is the POM file.

When I look on the Maven repository, I see the files I need. https://repo1.maven.org/maven2/com/google/protobuf/protoc/3.0.0/

Does anyone know of a way to force a sync of my Nexus repository with the Maven repository?

Upvotes: 1

Views: 1145

Answers (1)

jstanley
jstanley

Reputation: 2097

The problem I encountered was a result of having the "Strict Content Type Validation" option selected. When I unchecked this option, the build ran and pulled down the artifacts w/o error and populated the data in Nexus.

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

Upvotes: 3

Related Questions