Package org.apache.maven.internal.impl
Class DefaultProjectManager
java.lang.Object
org.apache.maven.internal.impl.DefaultProjectManager
- All Implemented Interfaces:
Service
,ProjectManager
-
Constructor Summary
ConstructorDescriptionDefaultProjectManager
(Session session, ArtifactManager artifactManager, org.codehaus.plexus.PlexusContainer container) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompileSourceRoot
(Project project, String sourceRoot) void
addTestCompileSourceRoot
(Project project, String sourceRoot) void
attachArtifact
(Project project, Artifact artifact, Path path) getAttachedArtifacts
(Project project) getCollectedDependencies
(Project project, ResolutionScope scope) getCompileSourceRoots
(Project project) Returns the path to the resolved file in the local repository if the artifact has been resolved.getRepositories
(Project project) getResolvedDependencies
(Project project, ResolutionScope scope) getTestCompileSourceRoots
(Project project) void
setProperty
(Project project, String key, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.api.services.ProjectManager
attachArtifact, attachArtifact
-
Constructor Details
-
DefaultProjectManager
@Inject public DefaultProjectManager(Session session, ArtifactManager artifactManager, org.codehaus.plexus.PlexusContainer container)
-
-
Method Details
-
getPath
Description copied from interface:ProjectManager
Returns the path to the resolved file in the local repository if the artifact has been resolved.- Specified by:
getPath
in interfaceProjectManager
- Returns:
- the path of the resolved artifact
-
getAttachedArtifacts
- Specified by:
getAttachedArtifacts
in interfaceProjectManager
-
attachArtifact
- Specified by:
attachArtifact
in interfaceProjectManager
-
getCompileSourceRoots
- Specified by:
getCompileSourceRoots
in interfaceProjectManager
-
addCompileSourceRoot
- Specified by:
addCompileSourceRoot
in interfaceProjectManager
-
getTestCompileSourceRoots
- Specified by:
getTestCompileSourceRoots
in interfaceProjectManager
-
addTestCompileSourceRoot
- Specified by:
addTestCompileSourceRoot
in interfaceProjectManager
-
getRepositories
- Specified by:
getRepositories
in interfaceProjectManager
-
getResolvedDependencies
- Specified by:
getResolvedDependencies
in interfaceProjectManager
-
getCollectedDependencies
- Specified by:
getCollectedDependencies
in interfaceProjectManager
-
setProperty
- Specified by:
setProperty
in interfaceProjectManager
-