protected Set < Artifact > resolveArtifactDependencies ( Artifact artifact ) throws ArtifactResolutionException , ArtifactNotFoundException , ProjectBuildingException { Artifact pomArtifact = this . factory . createArtifact ( artifact . getGroupId ( ) , artifact . getArtifactId ( ) , artifact . getVersion ( ) , "" , "pom" ) ; MavenProject pomProject = this . mavenProjectBuilder . buildFromRepository ( pomArtifact , this . remoteRepos , this . local ) ; return resolveDependencyArtifacts ( pomProject ) ; }
This method resolves all transitive dependencies of an artifact .