On Friday, 22 February 2013, Chris Graham wrote: > Hi all. > > For a multi module project, eg a root, with three modules A, B and C. C is > dependent upon A and B. > > I'll written a plugin that performs the packaging of C (actually, it's a > WebSphere Message Broker BAR file). > > I have two issues in finding artifacts. > > 1. Currently I need install to be called so that I can locate A and B in > the local repo. I'd prefer to use the artifact from the package phase, ie > from target. > > Can anyone suggest or point me to some code that does something similar?
Have a look at the changes I made to the maven-dependency-plugin's copy goal. One of the changes I made was to add resolution from the reactor for maven < 3.x (because 3.x+ will resolve from the reactor first) > > 2. Unwinding transitive dependencies. Currently I need to manually, in the > Pom, explicitly list all of the deps. > > Eg, if B depends on A above, currently I need to list both A and B as deps > of C. > > Where I shod really only have to list B and I should be able to > (transitively) infer that I also need A as well. > > Is there a helper method somewhere that will unwind all of the dep tree > and return the list of deps in a list (or similar)? I think dependency:copy-dependencies has some code that you can peg from > > -Chris > > Sent from my iPhone > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org <javascript:;> > For additional commands, e-mail: dev-h...@maven.apache.org <javascript:;> > >