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
ConstructorDescriptionDefaultProjectManager
(InternalMavenSession session, ArtifactManager artifactManager) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompileSourceRoot
(Project project, ProjectScope scope, Path sourceRoot) void
addResource
(Project project, ProjectScope scope, org.apache.maven.api.model.Resource resource) void
attachArtifact
(Project project, ProducedArtifact artifact, Path path) getAllArtifacts
(Project project) getAttachedArtifacts
(Project project) getCompileSourceRoots
(Project project, ProjectScope scope) getExecutionProject
(Project project) getProperties
(Project project) getRemotePluginRepositories
(Project project) getRemoteProjectRepositories
(Project project) List<org.apache.maven.api.model.Resource>
getResources
(Project project, ProjectScope scope) 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
-
-
Method Details
-
getPath
- Specified by:
getPath
in interfaceProjectManager
-
getAttachedArtifacts
- Specified by:
getAttachedArtifacts
in interfaceProjectManager
-
getAllArtifacts
- Specified by:
getAllArtifacts
in interfaceProjectManager
-
attachArtifact
- Specified by:
attachArtifact
in interfaceProjectManager
-
getCompileSourceRoots
- Specified by:
getCompileSourceRoots
in interfaceProjectManager
-
addCompileSourceRoot
- Specified by:
addCompileSourceRoot
in interfaceProjectManager
-
getResources
public List<org.apache.maven.api.model.Resource> getResources(@Nonnull Project project, @Nonnull ProjectScope scope) - Specified by:
getResources
in interfaceProjectManager
-
addResource
public void addResource(@Nonnull Project project, @Nonnull ProjectScope scope, @Nonnull org.apache.maven.api.model.Resource resource) - Specified by:
addResource
in interfaceProjectManager
-
getRemoteProjectRepositories
- Specified by:
getRemoteProjectRepositories
in interfaceProjectManager
-
getRemotePluginRepositories
- Specified by:
getRemotePluginRepositories
in interfaceProjectManager
-
setProperty
- Specified by:
setProperty
in interfaceProjectManager
-
getProperties
- Specified by:
getProperties
in interfaceProjectManager
-
getExecutionProject
- Specified by:
getExecutionProject
in interfaceProjectManager
-