-2

I am setting up a local repository using Apache Archiva. After setting up now I need to copy the libraries that got downloaded into my local maven repository into archiva. Currently I am manually copying it but it is very tedious process and I am planning to automate it using some scripts. Is there any better approach to do this?

Mayuran
  • 669
  • 2
  • 8
  • 39

1 Answers1

1

I'm trying to write a plugin for this here which is able to copy jars and poms for all dependencies in all Configurations (including transitive dependencies). You might be interested in this code

Note: I've got a failing test here because I can't currently get the parent pom xml via the Gradle API's. I raised a feature request in Gradle here

There's a suggestion on the issue to use the IvyPot plugin... I haven't tried this myself but might be worth a shot.

lance-java
  • 25,497
  • 4
  • 59
  • 101