You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by jimpo <ja...@gofore.com> on 2007/12/04 12:48:11 UTC

Maven task/approach for producing depended JARs cleanly?

I have a maven project which produces a foo.jar as a result. 

    <packaging>jar</packaging>

My code depends on several jars (javax.persistence, commons-beanutils, ...).
These JARs are (of course) not included in my outcome foo.jar. When I deploy
the foo.jar to target environment, I need to copy all dependent JARs to
classpath.

I could copy them manually from my local repository, sure....but how do I
tell Maven "copy all dependent JARs to location x"?



-- 
View this message in context: http://www.nabble.com/Maven-task-approach-for-producing-depended-JARs-cleanly--tf4942601s177.html#a14149100
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


Re: Maven task/approach for producing depended JARs cleanly?

Posted by Dirk Olmes <di...@xanthippe.ping.de>.
jimpo wrote:
> I have a maven project which produces a foo.jar as a result. 
> 
>     <packaging>jar</packaging>
> 
> My code depends on several jars (javax.persistence, commons-beanutils, ...).
> These JARs are (of course) not included in my outcome foo.jar. When I deploy
> the foo.jar to target environment, I need to copy all dependent JARs to
> classpath.
> 
> I could copy them manually from my local repository, sure....but how do I
> tell Maven "copy all dependent JARs to location x"?

Have a look at the maven-dependency-plugin
(http://maven.apache.org/plugins/maven-dependency-plugin/)

-dirk

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