Class ProjectWorkspaceReader

java.lang.Object
org.apache.maven.resolver.internal.ant.ProjectWorkspaceReader
All Implemented Interfaces:
org.eclipse.aether.repository.WorkspaceReader

public class ProjectWorkspaceReader extends Object implements org.eclipse.aether.repository.WorkspaceReader
Workspace reader caching available POMs and artifacts for ant builds.

<pom> elements are cached if they are defined by the 'file'-attribute, as they reference a backing pom.xml file that can be used for resolution with Aether. <artifact> elements are cached if they directly define a 'pom'-attribute or child. The POM may be file-based or in-memory.

  • Method Details

    • addPom

      public void addPom(Pom pom)
    • addArtifact

      public void addArtifact(Artifact artifact)
    • getRepository

      public org.eclipse.aether.repository.WorkspaceRepository getRepository()
      Specified by:
      getRepository in interface org.eclipse.aether.repository.WorkspaceReader
    • findArtifact

      public File findArtifact(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findArtifact in interface org.eclipse.aether.repository.WorkspaceReader
    • findVersions

      public List<String> findVersions(org.eclipse.aether.artifact.Artifact artifact)
      Specified by:
      findVersions in interface org.eclipse.aether.repository.WorkspaceReader
    • getInstance

      public static ProjectWorkspaceReader getInstance()