The war plugin doesn't support useTransitiveDependencies. It does,
however, support packagingIncludes and packagingExcludes, which can be
used to limit which files get placed into the WAR file. See
http://maven.apache.org/plugins/maven-war-plugin/examples/skinny-wars.ht
ml

Justin 

-----Original Message-----
From: chicagopooldude [mailto:seshu.pit...@cmegroup.com] 
Sent: Tuesday, October 27, 2009 10:56 AM
To: users@maven.apache.org
Subject: Global transitive depedency exclude


I am working on getting a war file from our project using maven, we
initially had around 120+ jars in lib which are have become cluttered
that's one of the reason to move to Maven. Now due to transitive
dependencies we have around 180+ jars in web-inf/lib. I have tried
excluding each transitive jars using dependency:tree method with
success. I wanted to know if there is any other way to globally disable
transitive dependency in the whole project because there are times when
two versions of jars are there in lib which causes problems while
deployed war runs on server. Also I have seen
<useTransitiveDependencies>true</useTransitiveDependencies> in assembly
plugin can this be used to build war minus all the jars which we dont
need?.
Any help is appreciated and thanks for seeing this post.
--
View this message in context:
http://www.nabble.com/Global-transitive-depedency-exclude-tp26079185p260
79185.html
Sent from the Maven - Users mailing list archive at Nabble.com.


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


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

Reply via email to