@Named public class DefaultProjectManager extends Object implements ProjectManager
Constructor and Description |
---|
DefaultProjectManager(Session session,
ArtifactManager artifactManager,
org.codehaus.plexus.PlexusContainer container) |
Modifier and Type | Method and Description |
---|---|
void |
addCompileSourceRoot(Project project,
String sourceRoot) |
void |
addTestCompileSourceRoot(Project project,
String sourceRoot) |
void |
attachArtifact(Project project,
Artifact artifact,
Path path) |
Collection<Artifact> |
getAttachedArtifacts(Project project) |
Node |
getCollectedDependencies(Project project,
ResolutionScope scope) |
List<String> |
getCompileSourceRoots(Project project) |
Optional<Path> |
getPath(Project project) |
List<RemoteRepository> |
getRepositories(Project project) |
List<Artifact> |
getResolvedDependencies(Project project,
ResolutionScope scope) |
List<String> |
getTestCompileSourceRoots(Project project) |
void |
setProperty(Project project,
String key,
String value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
attachArtifact, attachArtifact
@Inject public DefaultProjectManager(Session session, ArtifactManager artifactManager, org.codehaus.plexus.PlexusContainer container)
@Nonnull public Optional<Path> getPath(Project project)
getPath
in interface ProjectManager
@Nonnull public Collection<Artifact> getAttachedArtifacts(Project project)
getAttachedArtifacts
in interface ProjectManager
public void attachArtifact(Project project, Artifact artifact, Path path)
attachArtifact
in interface ProjectManager
public List<String> getCompileSourceRoots(Project project)
getCompileSourceRoots
in interface ProjectManager
public void addCompileSourceRoot(Project project, String sourceRoot)
addCompileSourceRoot
in interface ProjectManager
public List<String> getTestCompileSourceRoots(Project project)
getTestCompileSourceRoots
in interface ProjectManager
public void addTestCompileSourceRoot(Project project, String sourceRoot)
addTestCompileSourceRoot
in interface ProjectManager
public List<RemoteRepository> getRepositories(Project project)
getRepositories
in interface ProjectManager
public List<Artifact> getResolvedDependencies(Project project, ResolutionScope scope)
getResolvedDependencies
in interface ProjectManager
public Node getCollectedDependencies(Project project, ResolutionScope scope)
getCollectedDependencies
in interface ProjectManager
public void setProperty(Project project, String key, String value)
setProperty
in interface ProjectManager
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.