Use the maven-dependency-plugin to copy the jar to the build tree where you can manipulate it with ant.
-----Original Message----- From: Peter Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, January 25, 2007 1:58 PM To: users@maven.apache.org Subject: How to refer to dependency jar file inside pom.xml? Couldn't find the answer to this yet... I am using the exec-maven-plugin to launch a Java process. Before calling exec:exec, I am trying to get antrun plugin to create an endorsed dir and copy a dependency jar ( hopefully referred to by artifact id) into that dir. Then exec java process will take an argument -Djava.endorsed.dirs that will refer to the dir created by antrun. The question is how can I dynamically refer to the jar located in my local repo inside the antrun task elements? -Peter -- View this message in context: http://www.nabble.com/How-to-refer-to-dependency-jar-file-inside-pom.xml --tf3118450s177.html#a8639134 Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- 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]