Check out http://maven.apache.org/guides/introduction/introduction-to-optional-and-excludes-dependencies.html
-----Original Message----- From: tubin gen [mailto:fachh...@gmail.com] Sent: Thursday, May 07, 2009 11:52 AM To: users@maven.apache.org Subject: exclude transitive dependency My project needs spring-modules-osworklow.jar , this module has dependency to spring-mock , the spring-mock has the same classes as spring-test and this has more classes , so I want to exclude transitive dependency for spring-mock , please tell me how to do this ? ---------------------------------------------------------------------- CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org