public class ProjectWorkspaceReader extends Object implements WorkspaceReader
<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.
Modifier and Type | Method and Description |
---|---|
void |
addArtifact(Artifact artifact) |
void |
addPom(Pom pom) |
File |
findArtifact(Artifact artifact) |
List<String> |
findVersions(Artifact artifact) |
static ProjectWorkspaceReader |
getInstance() |
WorkspaceRepository |
getRepository() |
public void addPom(Pom pom)
public void addArtifact(Artifact artifact)
public WorkspaceRepository getRepository()
getRepository
in interface WorkspaceReader
public File findArtifact(Artifact artifact)
findArtifact
in interface WorkspaceReader
public List<String> findVersions(Artifact artifact)
findVersions
in interface WorkspaceReader
public static ProjectWorkspaceReader getInstance()
Copyright © 2010–2020 The Apache Software Foundation. All rights reserved.