Do NOT use the Maven Ant tasks.. they are outdated and based on Maven 2. Instead use the dep resolution library used in Maven itself called Eclipse Aether and its Ant tasks..
http://eclipse.org/aether/ http://wiki.eclipse.org/Aether/Ant_Tasks Zk W wrote on 13.05.2015 20:25: > Hi Justin > > Thanks for replying. > Let us think more of your suggestion here and update. > > Thanks > > On Wed, May 13, 2015 at 8:14 PM, Justin Georgeson <[email protected]> > wrote: > >> https://maven.apache.org/ant-tasks/ >> >> 1. There is a task to resolve/retrieve dependencies. >> >> 2. The dependency task can create classpath and fileset refids for the >> dependencies, and per-dependency properties, so you shouldn't have to worry >> about copy jars to and fro. >> >> 3. There are examples at the link above. >> >> ________________________________________ >> From: Zk W [[email protected]] >> Sent: Wednesday, May 13, 2015 10:00 PM >> To: [email protected] >> Subject: [EXTERNAL] dependency management with ant quick question >> >> Hi All >> >> We are new to Maven and we are an ant shop. >> We like to use Maven's dependency management feature, not ivy. >> >> 1- Can we just use Maven's dependency management feature to work with our >> ant build script ? >> >> 2- Since .m2 is the default folder for all the jars, do we use ant copy >> task to copy jars from .m2 folder to different project folders to compile >> properly ? >> >> 3. Are there examples out there that use ant for build purpose in >> conjunction with maven's dependency management ? >> >> Thank you. >> >> ---------------------------------------------------------------------- >> This e-mail, including any attached files, may contain confidential and >> privileged information for the sole use of the intended recipient. Any >> review, use, distribution, or disclosure by others is strictly prohibited. >> If you are not the intended recipient (or authorized to receive information >> for the intended recipient), please contact the sender by reply e-mail and >> delete all copies of this message. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
