You don't say which container you're using. We just had this problem with WebLogic (the EAR file that we deploy was very large, leading to deployment times of 30+ minutes). Our solution to this was to place as many of the JARs as possible in the "system" classpath (a classpath that the container makes available to your applications on startup). This also had the benefit of allowing more hot-deployments between server restarts.
If you go this route, you will lose the ability to hot deploy the dependencies that you exclude. You can accomplish this by marking your dependencies "provided": <dependency> <groupId>com.foo</groupId> <artifactId>foo</artifactId> <scope>provided</scope> </dependency> HTH, Dhruva -----Original Message----- From: Stephen Connolly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 15 October 2008 06:41 To: Maven Users List Subject: Re: Want to exclude extra jars from war. you have to add excludes sections to each of the dependencies that are dragging them in... of course, these dependencies should be dragging them in for a reason (such as being required in order to function) so one has to conclude either: * you are trying to exclude them incorrectly or * the poms are listing optional dependencies as non-optional 2008/10/15 Nitin B <[EMAIL PROTECTED]>: > > yes, these are the transitive dependancies. How can I prevent them? > > Thanks, > Nitin B > > -- > View this message in context: > http://www.nabble.com/Want-to-exclude-extra-jars-from-war.-tp19990177p19990769.html > 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]