1

I need to write a Java program that takes an artifact from a given Nexus repository, including the pom and all side artifacts (like sources, javadoc, whatever) and moves it to a different repository.

I guess that Aether would be a good start, but I don't know how to handle the combined set of files (main artifact, pom, sources,...) in a straight-forward way.

J Fabian Meier
  • 33,516
  • 10
  • 64
  • 142
  • Is that on the same nexus instance? – khmarbaise Sep 27 '16 at 10:24
  • It is. I thought about working on the file level and reindex the repositories afterwards, but I am not sure if this is a good idea. – J Fabian Meier Sep 27 '16 at 10:45
  • It's best to move those files on the storage of Nexus and start a reindex on the appropriate repositories in Nexus..is simpler than making a whole set of files from outside. – khmarbaise Sep 27 '16 at 11:21
  • Sorry, I forgot something important: The source repository is a remote repository. So probably I have to download the artifact first to be able to move it from one directory to the other. – J Fabian Meier Sep 27 '16 at 11:27

0 Answers0