Currently, Maven doesn't offer much support for traversing sub-graphs of dependencies. If you cannot simply subtract the direct dependency artifacts from the project.getArtifacts(), then you'll have to get involved with the ArtifactResolver from maven-artifact/maven-artifact-manager, and track dependency conflicts between sub-graphs of direct dependencies yourself...
Unfortunately, it is a recognized deficiency in Maven 2.0. -john On 9/13/06, Eric R. Medley <[EMAIL PROTECTED]> wrote:
I need to determine the dependencies of each dependency in my project. I need to do some weird packaging and I need to process the dependencies of each dependency listed in the project. I know that if I use project.getArtifacts(), I will get all of the dependencies for a project (including transitive dependencies). What I don't see is something in the dependent artifact that lists its' dependent artifacts. Is this information available somewhere, or, if needed, how would I get the necessary dependencies for a particular artifact/dependency? Any help would be appreciated! Eric R. Medley The Palantir Corporation
