Sean Nguyen
Sean Nguyen

Reputation: 13158

how to access to dependencies from maven-ant-plugin?

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

Answers (3)

Roy Truelove
Roy Truelove

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

j13r
j13r

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

Eugene Kuleshov
Eugene Kuleshov

Reputation: 31795

You can use reference to one of Maven classpaths

Upvotes: 0

Related Questions