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
  • 12,528
  • 22
  • 74
  • 113

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,576
  • 2
  • 21
  • 28
0

You can use reference to one of Maven classpaths

Eugene Kuleshov
  • 31,461
  • 5
  • 66
  • 67
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
  • 22,016
  • 18
  • 111
  • 153