Ah, yes, in my case I needed to do it in a plugin, so I marked my plugin as
requiring dependency resolution in the test scope and could therefore rest
assured that all dependencies were resolved.

I'm afraid you're on your own in undocumented Maven-land!  :-)

Best,
Laird

On Tue, Nov 8, 2011 at 4:42 AM, Jérémy <[email protected]> wrote:

> Hi Laird,
>
> Thanks for your answer! It's funny because I already tried your piece of
> code, but couldn't get it running. That's the reason why I went on another
> direction :-)
>
> Can you please provide a complete example? Because I have problems when it
> comes to retrieve MavenProject objects with the buildFromRepository method.
> It throws some exceptions. I suspect that my artifacts are not always
> resolved when I call this method.
>
> Thank you so much!
> Jérémy
>
> On Mon, Nov 7, 2011 at 6:44 PM, Laird Nelson <[email protected]> wrote:
>
> > On Mon, Nov 7, 2011 at 12:29 PM, Jérémy <[email protected]> wrote:
> >
> > > I'm trying to sort the dependencies expressed in the pom.xml (including
> > the
> > > transitive ones) in a topological way.
> > >
> >
> > Hello; I faced the same problem and found a solution.  Given that most of
> > the classes involved were undocumented, it remains hard to know if this
> is
> > the proper way to do it, but it works for me.
> >
> >
> >
> http://maven.40175.n5.nabble.com/Topologically-sorting-dependencies-td3384898.html
> >
> > Best,
> > Laird
> >
> > --
> > http://about.me/lairdnelson
> >
>



-- 
http://about.me/lairdnelson

Reply via email to