Class ArtifactFileResolver
- java.lang.Object
-
- org.basepom.mojo.duplicatefinder.artifact.ArtifactFileResolver
-
public class ArtifactFileResolver extends Object
Resolves artifact references from the project into local and repository files and folders. Only manages the dependencies because the main project can have multiple (two) folders for the project. This is not supported by this resolver.
-
-
Constructor Summary
Constructors Constructor Description ArtifactFileResolver(org.apache.maven.project.MavenProject project, com.google.common.collect.ImmutableSet<File> bootClasspath, boolean preferLocal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.google.common.collect.ImmutableSortedSet<ClasspathElement>getClasspathElementsForElements(Collection<File> elements)com.google.common.collect.ImmutableMultimap<File,org.apache.maven.artifact.Artifact>resolveArtifactsForScopes(Set<String> scopes)
-
-
-
Constructor Detail
-
ArtifactFileResolver
public ArtifactFileResolver(org.apache.maven.project.MavenProject project, com.google.common.collect.ImmutableSet<File> bootClasspath, boolean preferLocal) throws org.apache.maven.artifact.DependencyResolutionRequiredException, IOException- Throws:
org.apache.maven.artifact.DependencyResolutionRequiredExceptionIOException
-
-
Method Detail
-
resolveArtifactsForScopes
public com.google.common.collect.ImmutableMultimap<File,org.apache.maven.artifact.Artifact> resolveArtifactsForScopes(Set<String> scopes) throws org.apache.maven.artifact.versioning.InvalidVersionSpecificationException, org.apache.maven.artifact.DependencyResolutionRequiredException
- Throws:
org.apache.maven.artifact.versioning.InvalidVersionSpecificationExceptionorg.apache.maven.artifact.DependencyResolutionRequiredException
-
getClasspathElementsForElements
public com.google.common.collect.ImmutableSortedSet<ClasspathElement> getClasspathElementsForElements(Collection<File> elements)
-
-