0

My maven project has a few library dependencies defined in the in pom.xml. I need to copy those dependencies to a folder during maven-antrun-plugin package phase. How can I do that?

Thanks,

Sean Nguyen
  • 11,700
  • 20
  • 69
  • 109

3 Answers3

3

Perhaps this can help you: add the goal copy-dependencies to phase package and configure a outputDirectory.

https://stackoverflow.com/a/996915/885650

Community
  • 1
  • 1
j13r
  • 2,524
  • 1
  • 19
  • 26
0

You can use reference to one of Maven classpaths

Eugene Kuleshov
  • 30,915
  • 5
  • 64
  • 66
0

In case you don't get an answer on how to do this from the ant plugin, take a look at the copy goal of the maven dependency plugin. I've used this successfully from the package phase.

Roy Truelove
  • 21,416
  • 18
  • 109
  • 153