Package org.apache.maven.internal.impl
Class DefaultProjectManager
java.lang.Object
org.apache.maven.internal.impl.DefaultProjectManager
- All Implemented Interfaces:
Service,ProjectManager
@Named
@Typed
@SessionScoped
public class DefaultProjectManager
extends Object
implements ProjectManager
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultProjectManager(InternalSession session, ArtifactManager artifactManager, org.codehaus.plexus.PlexusContainer container) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCompileSourceRoot(Project project, String sourceRoot) voidaddTestCompileSourceRoot(Project project, String sourceRoot) voidattachArtifact(Project project, Artifact artifact, Path path) getAttachedArtifacts(Project project) getCompileSourceRoots(Project project) Returns the path to the resolved file in the local repository if the artifact has been resolved.getRepositories(Project project) getTestCompileSourceRoots(Project project) voidsetProperty(Project project, String key, String value) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.api.services.ProjectManager
attachArtifact, attachArtifact
-
Constructor Details
-
DefaultProjectManager
@Inject public DefaultProjectManager(InternalSession session, ArtifactManager artifactManager, org.codehaus.plexus.PlexusContainer container)
-
-
Method Details
-
getPath
Description copied from interface:ProjectManagerReturns the path to the resolved file in the local repository if the artifact has been resolved.- Specified by:
getPathin interfaceProjectManager- Returns:
- the path of the resolved artifact
-
getAttachedArtifacts
- Specified by:
getAttachedArtifactsin interfaceProjectManager
-
attachArtifact
- Specified by:
attachArtifactin interfaceProjectManager
-
getCompileSourceRoots
- Specified by:
getCompileSourceRootsin interfaceProjectManager
-
addCompileSourceRoot
- Specified by:
addCompileSourceRootin interfaceProjectManager
-
getTestCompileSourceRoots
- Specified by:
getTestCompileSourceRootsin interfaceProjectManager
-
addTestCompileSourceRoot
- Specified by:
addTestCompileSourceRootin interfaceProjectManager
-
getRepositories
- Specified by:
getRepositoriesin interfaceProjectManager
-
setProperty
- Specified by:
setPropertyin interfaceProjectManager
-