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 Summary
Modifier and TypeMethodDescriptionvoid
addArtifact
(Artifact artifact) void
findArtifact
(org.eclipse.aether.artifact.Artifact artifact) findVersions
(org.eclipse.aether.artifact.Artifact artifact) static ProjectWorkspaceReader
org.eclipse.aether.repository.WorkspaceRepository
-
Method Details
-
addPom
-
addArtifact
-
getRepository
public org.eclipse.aether.repository.WorkspaceRepository getRepository()- Specified by:
getRepository
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-
findArtifact
- Specified by:
findArtifact
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-
findVersions
- Specified by:
findVersions
in interfaceorg.eclipse.aether.repository.WorkspaceReader
-
getInstance
-