Try provided instead of optional... > -----Ursprüngliche Nachricht----- > Von: Sanjay Choudhary [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 28. Februar 2006 21:56 > An: Maven Users List > Betreff: War's - How to exclude bundling of jars in > WEB-INF/lib? They are caused because of transitive depedencies > > Let us assume that we have an EAR which is dependent on > Struts-x version. > > Ear dependent on Struts > java 1 dependent on Struts > java 2 > web dependent on Struts > > > > Now when we build, our EAR contains struts-x.jar and all the > other transitive dependencies of struts. Since our > classloader policy for EAR is "application", we don't want > struts-x.jar and transitive dependencies in web/web-inf/lib. > To avoid this, in the web project pom.xml we defined > > <dependency> > <groupId>struts</groupId> > <artifactId>struts</artifactId> > <version>1.1</version> > <optional>true</optional> > </dependency> > > By doing this, I am able to avoid bundling of struts.jar in > web-inf/lib folder in WAR but all the transitive dependent > jars are still bundled in the WAR. Is there a way to avoid this? > > -Sanjay >
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
