RE: How to copy jars from local repository?
This can be done with the maven dependency plugin : http://mojo.codehaus.org/dependency-maven-plugin/introduction.html If you click on how to use, you see how to configure your pom file Frederik -Original Message- From: Kapil Gupta(CT) [mailto:[EMAIL PROTECTED] Sent: Sun 7/23/2006 11:59 PM To: users@maven.apache.org Subject: How to copy jars from local repository? Hi, Am using Maven to build my multi module application which is based on Spring framework. To run the application, I place my modules jar files and dependency jars in a folder and use a batch file to include all the jars present in that folder in classpath and run the main class. While building my project through Maven, I would also like to create output folder and put the jar in that folder. As of now, the jars are installed in the Maven local repository. Is there any way so that I can specify in my pom.xml to copy my module jars, resources and their dependencies from the local repository to a folder to run the application? Thanks, Kapil _ Scanned on 24 Jul 2006 07:01:57 Scanned by Erado
Re: How to copy jars from local repository?
Kapil Gupta(CT) wrote: > > Is there any way so that I can specify in my pom.xml to copy my module > jars, resources and their dependencies from the local repository to a > folder to run the application? > Sure, this is the work of the maven assembly plugin. You can have a look at this plugin here: http://maven.apache.org/plugins/maven-assembly-plugin/ And here is the assembly descriptor I'm using (which basically does what you're trying to do): bin tar.gz zip README* LICENSE* NOTICE* src/main/include / bin/** target /lib *.jar src/main/include/bin/siasp-statis.bat /bin true src/main/include/bin/siasp-defense.bat /bin true /lib runtime -- View this message in context: http://www.nabble.com/How-to-copy-jars-from-local-repository--tf1990580.html#a5462903 Sent from the Maven - Users forum at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to copy jars from local repository?
Hi, Am using Maven to build my multi module application which is based on Spring framework. To run the application, I place my modules jar files and dependency jars in a folder and use a batch file to include all the jars present in that folder in classpath and run the main class. While building my project through Maven, I would also like to create output folder and put the jar in that folder. As of now, the jars are installed in the Maven local repository. Is there any way so that I can specify in my pom.xml to copy my module jars, resources and their dependencies from the local repository to a folder to run the application? Thanks, Kapil