Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aether-users] resolving dependcies - differences in method

Hello,

I've tried the Aether demo...  

I've tried those two methods:

GetDependencyHierarchy.main( args );
GetDependencyTree.main( args );

and tried to solve the same Artifact:

Artifact artifact = new DefaultArtifact( "org.apache.maven:maven-aether-provider:3.1.0" );

but in the DependencyTree method there is missing some children dependencies... why? is ok? I guess that I should use the Hierarchy mode... right and put them manualy to some tree structure....


results GetDependencyHierarchy.main( args ) >

|  \- org.apache.maven.wagon:wagon-provider-api:jar:2.4 [test] (version managed from 1.0)
|     \- org.codehaus.plexus:plexus-utils:jar:3.0.10 [test] (version managed from 3.0.8)
|  +- javax.enterprise:cdi-api:jar:1.0 [compile]
|  |  +- javax.annotation:jsr250-api:jar:1.0 [compile]
|  |  \- javax.inject:javax.inject:jar:1 [compile]
|  +- com.google.guava:guava:jar:11.0.2 [compile] (version managed from 10.0.1)
|  +- org.sonatype.sisu:sisu-guice:jar:no_aop:3.1.3 [compile] (version managed from 3.1.0)
|  |  \- asm:asm:jar:3.3.1 [compile]
|  +- org.codehaus.plexus:plexus-classworlds:jar:2.4.2 [compile] (version managed from 2.4)
|  \- org.codehaus.plexus:plexus-utils:jar:3.0.10 [compile] (version managed from 2.1)
|  +- javax.inject:javax.inject:jar:1 [compile]
|  \- com.google.guava:guava:jar:11.0.2 [compile] (version managed from 13.0.1)
\- junit:junit:jar:3.8.2 [test]


results GetDependencyTree.main( args )>
|  +- javax.enterprise:cdi-api:jar:1.0 [compile]
|  |  \- javax.annotation:jsr250-api:jar:1.0 [compile]
|  |  \- asm:asm:jar:3.3.1 [compile]
   \- javax.inject:javax.inject:jar:1 [compile]

Back to the top