How to resolve maven dependencies inside the maven plugin?
I need to get all dependencies(including transitive) for project inside my
Im trying to use ArtifactResolver:
*ArtifactResolutionRequest request = new ArtifactResolutionRequest()
.setArtifact( project.getArtifact() )
.setArtifactDependencies( project.getDependencyArtifacts() )
.setLocalRepository( localRepository )
.setManagedVersionMap( project.getManagedVersionMap() )
ArtifactResolutionResult result = artifactResolver.resolve(request);*
That code takes ~10*min* and successfully resolve all dependencies.
When i just run *mvn *for that project it takes ~4*sec* for all - resolve
dependencies, compile and package jar.
How maven itself resolve transitive dependencies and where difference with
my code? Why that can take so much time?
P.S. Project is a child in some depth of multimodule project.