Reputation: 13158
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,
Upvotes: 0
Views: 137
Reputation: 22466
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.
Upvotes: 0
Reputation: 2671
Perhaps this can help you: add the goal copy-dependencies to phase package and configure a outputDirectory.
https://stackoverflow.com/a/996915/885650
Upvotes: 3