Class ArtifactFileResolver
java.lang.Object
org.basepom.mojo.duplicatefinder.artifact.ArtifactFileResolver
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
ConstructorDescriptionArtifactFileResolver
(org.apache.maven.project.MavenProject project, boolean preferLocal) -
Method Summary
Modifier and TypeMethodDescriptioncom.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 Details
-
ArtifactFileResolver
public ArtifactFileResolver(org.apache.maven.project.MavenProject project, boolean preferLocal) throws org.apache.maven.artifact.DependencyResolutionRequiredException, IOException - Throws:
org.apache.maven.artifact.DependencyResolutionRequiredException
IOException
-
-
Method Details
-
resolveArtifactsForScopes
-
getClasspathElementsForElements
public com.google.common.collect.ImmutableSortedSet<ClasspathElement> getClasspathElementsForElements(Collection<File> elements)
-