You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jiangshachina <ji...@gmail.com> on 2007/02/13 09:54:34 UTC

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: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/how-to-run-a-program-build-with-maven-tf3219341s177.html#a8940592
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org