On Fri, Aug 6, 2010 at 1:12 PM, Laird Nelson <[email protected]> wrote:
> I need (ultimately) a list of URLs corresponding to elements in a project's
> classpath, where that classpath has been sorted in dependency order.  (I
> don't actually care if it's sorted "ascending" or "descending".)
>
> I need this for a mojo that I'm working on that will be run as part of an
> ear project's generate-resources phase.
>
> (Running mvn dependency:list or mvn dependency:build-classpath on such a
> project gets all the right jar files in there, but not in dependency order.
> That is, if the ear project depends on A which depends on B which depends on
> C, mvn dependency:list will return C before B.)

What about dependency:tree?  Obviously the standard output won't work
but perhaps you could find a way to leverage some of the logic.  It
seems to be in the order you want.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to