Use the newer version at apache: http://maven.apache.org/plugins/maven-dependency-plugin
-----Original Message----- From: jiangshachina [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 13, 2007 3:55 AM To: [email protected] Subject: Re: [m2] how to run a program build with maven Hello, > Or how do I make maven copy the jar files from the repository to > somewhere I can use them? I used the approach. dependency-maven-plugin(http://mojo.codehaus.org/dependency-maven-plugin /) may help you. The plugin can copy all dependencies from the repository to a specific location. Happy Spring Festival :-) a cup of Java, cheers! Sha Jiang Ute Platzer-2 wrote: > > Hi, > > I have a java program which I used to build with ant. Now I switched > to maven because of the easier handling of jar file dpenedencies. > Unfortunately now these jar files are no longer "there", they're > somewhere in the repository but not inside my project directory and > it's not trivial to find and add them to the classpath when I want to > run my program. > Is there a simple solution, how do I set the classpath in the shell to > run the program? Or how do I make maven copy the jar files from the > repository to somewhere I can use them? > > Thanks for your help, and best regards, ute > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/how-to-run-a-program-build-with-maven-tf3219341s17 7.html#a8940592 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]
