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 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

      public com.google.common.collect.ImmutableMultimap<File,org.apache.maven.artifact.Artifact> resolveArtifactsForScopes(Set<String> scopes)
    • getClasspathElementsForElements

      public com.google.common.collect.ImmutableSortedSet<ClasspathElement> getClasspathElementsForElements(Collection<File> elements)