Unfortunately it sounds like you're going to need to grok that >10k mvn -X debug command to find out why those extra dependencies are getting pulled in.
Wayne On 11/8/06, Nathan Coast <[EMAIL PROTECTED]> wrote:
Hi Wayne, thanks for the help. I'm not getting duplicate dependencies but getting different dependencies included in the war file depending upon how I initiate the build of that war file. initiated from the war project itself: child>mvn install - all ok, correct deps. initiated from the parent aggregator project: parent>mvn install - 15Meg of extra rubbish is included in the WEB-INF/lib. E.g. dependencies of plugins declared in other modules are included in the war/WEB-INF/lib let me know if you need any more info e.g. pom.xml(s) thanks again for help with this, I'm either facing having to build every project individually (not something I want to do with > 100 sub-projects) or settle for trivial webapps > 15Meg. cheers Nathan Wayne Fay wrote: > Sounds like you are simply running into the issue of "I'm getting > duplicate dependencies -- one set in my WAR, and one set in my EAR -- > how can I configure things to get only one set". Is that what you've > got? > > If not, please provide more info. Parent -> child etc is not > sufficient, we need to know more about your project. > > Wayne > > On 11/8/06, Nathan Coast <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I recently posted about a dependency problem I am experiencing, >> >> http://www.mail-archive.com/users@maven.apache.org/msg55340.html >> >> I am a bit lost as to how to go about debugging this. I tried the -X >> flag but ended up with > 10,000 lines of debug. I think I need to >> investigate the dependencies in different scopes. >> >> How do I find out where dependencies that end up in a war/WEB-INF/lib >> actually came from. >> >> I have a parent pom which also aggregates the child webapps. The parent >> pom references the child projects using: >> >> <modules> >> <module>../child1</module> >> <module>../child2</module> >> </modules> >> >> If I execute 'child1>mvn install' then the child war is assembled with >> the expected set of deps. >> >> However, if I execute 'parent>mvn install' the child war is assembled >> including a large number of unnecessary jars (2 copies of xerces, xalan >> etc etc) > 15Meg in total. >> >> I'm assuming my dependencies are correct as isolated builds contain the >> correct jars. >> >> Any help with how to debug this greatly appreciated. Alternatively is >> there some other way of carrying out multi-project builds without >> "modules", currently my multi-builds are unworkable as simple webapps >> are massive. >> >> cheers >> Nathan >> >> >> --------------------------------------------------------------------- >> 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]