Thanks for the hint barrett, it is valuable to me (using dependency plugin to copy jars in WEB-INF/lib instead of declaring dependencies).
Sebastien -----Original Message----- From: Barrett Nuzum [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 5:54 PM To: Maven Users List Subject: RE: Transitive dependecies Sebastien: I think most people instead suppress all dependencies from war bundling and then use the maven-dependency-plugin to copy specific artifacts. (It provides more fine grained control at the expense of some extensibility.) It's not a core maven feature, though, as far as I know. Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 ________________________________ From: Sebastien Brunot [mailto:[EMAIL PROTECTED] Sent: Tue 11/7/2006 10:41 AM To: Maven Users List Subject: RE: Transitive dependecies Hi barrett, I think I'm actually proceeding quite the same (the "lib pom" I was talking about). I really want to know if I can move a step further and make the dependencies not transitive while included in the WAR (actually an EAR in my case ;-). If the feature does not exists yet in maven (using scope settings or something else), I might ask for it: this is why I want to know if it is already possible or not. Sebastien -----Original Message----- From: Barrett Nuzum [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 07, 2006 5:28 PM To: Maven Users List Subject: RE: Transitive dependecies Sebastien: On my current assignment, we solved this by having one POM for the main dependencies of all projects, and a child POM called WebDependencies. All child projects of type WAR specify WebDependencies as a direct dependency. This *does* include transitive dependencies -- but you should be able to trim down the list of total dependencies included by a significant amount. (The ones you probably actually need.) If you bundle your WAR in an EAR, you can use this Dependencies POM in both the EAR and WAR projects and suppress everything in the WAR's WEB-INF/lib to eliminate duplication further. Hope that helps. Barrett Barrett Nuzum Consultant, Skill Development [EMAIL PROTECTED] T: +1 (918) 640 4414 F: +1 (972) 789 1340 Valtech 5080 Spectrum Drive Suite 700 West Addison, Texas 75001 USA T: +1 (972) 789 1200 ________________________________ From: Sebastien Brunot [mailto:[EMAIL PROTECTED] Sent: Tue 11/7/2006 10:13 AM To: Maven Users List Subject: Transitive dependecies Hi all, transitive dependencies can be a real pain when you have a lot of external dependencies in your project. Using <exclusions> tags is a tedious operation in this case, so I was wondering if a quicker way exists... How can one create a pom module that contains a list of dependencies (let's name it "lib pom"), so that when the lib pom is added as a dependecy in let's say a war project, the exact list of dependencies from lib pom (no more, no less => no transitivity) are added to the war WEB-INF/lib ? Thanks for your help, Sebastien --------------------------------------------------------------------- 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]