java - getting the urls from the dependencies resolved by Aether -


i using aether resolve maven dependencies. after following this example on aether example

public static void main( string[] args )     throws exception {     system.out.println( "------------------------------------------------------------" );     system.out.println( getdirectdependencies.class.getsimplename() );      repositorysystem system = booter.newrepositorysystem();      repositorysystemsession session = booter.newrepositorysystemsession( system );      artifact artifact = new defaultartifact( "org.eclipse.aether:aether-impl:1.0.0.v20140518" );      artifactdescriptorrequest descriptorrequest = new artifactdescriptorrequest();     descriptorrequest.setartifact( artifact );     descriptorrequest.setrepositories( booter.newrepositories( system, session ) );      artifactdescriptorresult descriptorresult = system.readartifactdescriptor( session, descriptorrequest );      ( dependency dependency : descriptorresult.getdependencies() )     {         system.out.println( dependency );     } } 

this gives me list<dependencies>. how able files these dependencies of artifacts?


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -