What's the output of "mvn dependency:tree", does the tree you see correctly display the dependency you're expecting?
2008/10/4 youhaodeyi <[EMAIL PROTECTED]> > > I have checked the P2 and it can be built successfully. > > > Jörg Schaible-2 wrote: > > > > youhaodeyi wrote: > > > >> > >> I didn't define the scope. It should be the default value. > > > > Then something is wrong with your POM for P2 ... > > > >> > >> Wendy Smoak-3 wrote: > >>> > >>> On Thu, Oct 2, 2008 at 7:56 PM, youhaodeyi <[EMAIL PROTECTED]> > wrote: > >>>> I set up a maven project "P1" which depends on the project "P2". P2 > >>>> includes > >>>> several dependencies which are used in P1. In this case, I must add > >>>> these dependencies in P1 too. If not, I will fail to build P1. How can > >>>> I > >>>> let maven > >>>> deal with this recursive dependencies? > >>> > >>> How are the dependencies declared in P2? If they are in the default > >>> compile scope, they should be transitive (so P1 should compile.) > >>> > >>> -- > >>> Wendy > >>> > >>> --------------------------------------------------------------------- > >>> 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] > > > > > > > > -- > View this message in context: > http://www.nabble.com/Can%27t-Maven-handle-dependendies-recursively--tp19791304p19809831.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] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
