Package org.basepom.mojo.dvc.dependency
Class DependencyTreeResolver
java.lang.Object
org.basepom.mojo.dvc.dependency.DependencyTreeResolver
- All Implemented Interfaces:
AutoCloseable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
com.google.common.collect.ImmutableSetMultimap
<QualifiedName, VersionResolutionCollection> computeResolutionMap
(org.apache.maven.project.MavenProject project, ScopeLimitingFilter scopeFilter) Creates a map of all dependency version resolutions used in this project in a given scope.
-
Constructor Details
-
DependencyTreeResolver
-
-
Method Details
-
close
- Specified by:
close
in interfaceAutoCloseable
-
computeResolutionMap
public com.google.common.collect.ImmutableSetMultimap<QualifiedName,VersionResolutionCollection> computeResolutionMap(org.apache.maven.project.MavenProject project, ScopeLimitingFilter scopeFilter) throws org.apache.maven.plugin.MojoExecutionException Creates a map of all dependency version resolutions used in this project in a given scope. The result is a map from names to a list of version numbers used in the project, based on the element requesting the version.If the special scope "null" is used, a superset of all scopes is used (this is used by the check mojo).
- Parameters:
project
- The maven project to resolve all dependencies for.scopeFilter
- Limits the scopes to resolve.- Returns:
- Map from qualified names to possible version resolutions.
- Throws:
org.apache.maven.plugin.MojoExecutionException
- Parallel dependency resolution failed.
-