1

I have created a maven plugin, this is dependent on a series of JARS. i have uploaded these JARs and poms to the relevant location on the server under nexus-data/blobs/maven-thirdparty/{group-id}.

when i run a task to "Rebuild Maven repository metadata" and "Rebuild repository index" these files does not appear when i try and browse the files http://{nexus-server}:port/#browse/browse/assets.

How can i have nexus server recognize the files in the repository?

Wolver1ne
  • 125
  • 1
  • 11

2 Answers2

1

i will look to that in future. I posted this same question to Sonatype forum and they assisted me with a utility that assists with this and it worked perfectly.

https://github.com/simpligility/maven-repository-tools/tree/master/maven-repository-provisioner

Thanks to Peter Lynch - https://support.sonatype.com/hc/en-us/articles/236210187-How-do-I-export-import-a-Maven-2-format-repository-over-HTTP-

Manfred Moser
  • 29,539
  • 13
  • 92
  • 123
Wolver1ne
  • 125
  • 1
  • 11
0

What you are trying to do will not work, although it did in Nexus Repo 2. There currently is no mechanism for adding jars in to the blobstore in this way. We've intentionally added the blobstore and all that goes along with it so that we can do more fun things with searching, metadata, etc... that were much more difficult with a system that just has files on a path. What I might suggest instead is using something like this:

Nexus Exchange - Nexus Repository Import Scripts

GitHub Repo for Scripts

That should help you get the JARs into Nexus Repository 3, into a repo of your choice. I maintain that repo, so if you run into issues, create an issue and I'll see what I can do to help you out! ~Sonatype Community Nerd

DarthHater
  • 3,222
  • 25
  • 26