Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aether-users] Resolving dependencies from local pom.xml

Thanks Benjamin, I'll try that.

Anyway I'm still interested to found out why my current implementation fails. Do you have any hints?

On Sat, Aug 25, 2012 at 3:04 PM, Benjamin Bentmann <bentmann@xxxxxxxxxxxx> wrote:
Jérémy wrote:

In fact I need more than the raw list of dependencies, I need them to be
sorted in a topological order. I achieved this thanks to the Aether API. I
wrote a function which directly returns the sorted list of dependencies for
the current project.
As far as I know, Maven API does not provide ordering.

In that case, try using

/** @component */
org.apache.maven.project.ProjectDependenciesResolver resolver;

It's a facade around Aether for the case of resolving a project's dependencies. DependencyResolutionResult.getDependencyGraph() will hold the info that appears relevant to you.



Benjamin
_______________________________________________
aether-users mailing list
aether-users@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/aether-users


Back to the top