Uses of Interface
org.apache.maven.api.ProjectScope
Packages that use ProjectScope
Package
Description
Maven Core API
Defines core service interfaces that provide essential Maven functionality such as
artifact resolution, dependency management, and build execution.
Defines the Service Provider Interface (SPI) for Maven extensions, allowing
third-party implementations to extend and customize Maven's core functionality
through a stable, versioned API.
-
Uses of ProjectScope in org.apache.maven.api
Fields in org.apache.maven.api declared as ProjectScopeModifier and TypeFieldDescriptionstatic final ProjectScope
ProjectScope.MAIN
Main scope.static final ProjectScope
ProjectScope.TEST
Test scope.Methods in org.apache.maven.api that return ProjectScopeModifier and TypeMethodDescriptionPathScope.projectScope()
Session.requireProjectScope
(String id) Obtain theProjectScope
from the specifiedid
.default ProjectScope
SourceRoot.scope()
Returns in which context the source files will be used. -
Uses of ProjectScope in org.apache.maven.api.plugin.testing.stubs
Methods in org.apache.maven.api.plugin.testing.stubs that return ProjectScope -
Uses of ProjectScope in org.apache.maven.api.services
Subinterfaces with type arguments of type ProjectScope in org.apache.maven.api.servicesMethods in org.apache.maven.api.services with parameters of type ProjectScopeModifier and TypeMethodDescriptionvoid
ProjectManager.addSourceRoot
(Project project, ProjectScope scope, Language language, Path directory) Resolves and adds the given directory as a source with the given scope and language.ProjectManager.getEnabledSourceRoots
(Project project, ProjectScope scope, Language language) Returns all enabled sources that provide files in the given language for the given scope. -
Uses of ProjectScope in org.apache.maven.api.spi
Subinterfaces with type arguments of type ProjectScope in org.apache.maven.api.spiModifier and TypeInterfaceDescriptioninterface
Service provider interface for registering customProjectScope
implementations. -
Uses of ProjectScope in org.apache.maven.impl
Subclasses with type arguments of type ProjectScope in org.apache.maven.implModifier and TypeClassDescriptionstatic class
Methods in org.apache.maven.impl that return ProjectScopeModifier and TypeMethodDescriptionAbstractSession.requireProjectScope
(String id) DefaultSourceRoot.scope()
Returns in which context the source files will be used.Constructors in org.apache.maven.impl with parameters of type ProjectScopeModifierConstructorDescriptionDefaultSourceRoot
(Path baseDir, ProjectScope scope, Resource resource) Creates a new instance from the given resource.DefaultSourceRoot
(ProjectScope scope, Language language, Path directory) Creates a new instance for the given directory and scope.DefaultSourceRoot
(ProjectScope scope, Language language, Path directory, List<String> includes, List<String> excludes) Creates a new instance for the given directory and scope. -
Uses of ProjectScope in org.apache.maven.internal.impl
Methods in org.apache.maven.internal.impl with parameters of type ProjectScopeModifier and TypeMethodDescriptionvoid
DefaultProjectManager.addSourceRoot
(Project project, ProjectScope scope, Language language, Path directory) DefaultProjectManager.getEnabledSourceRoots
(Project project, ProjectScope scope, Language language) -
Uses of ProjectScope in org.apache.maven.project
Methods in org.apache.maven.project with parameters of type ProjectScopeModifier and TypeMethodDescriptionvoid
MavenProject.addSourceRoot
(ProjectScope scope, Language language, String directory) Resolves and adds the given directory as a source with the given scope and language.void
MavenProject.addSourceRoot
(ProjectScope scope, Language language, Path directory) Resolves and adds the given directory as a source with the given scope and language.MavenProject.getEnabledSourceRoots
(ProjectScope scope, Language language) Returns all enabled sources that provide files in the given language for the given scope.void
MavenProject.removeSourceRoot
(ProjectScope scope, Language language, String directory) Removes a source root from the project.void
MavenProject.removeSourceRoot
(ProjectScope scope, Language language, Path directory) Removes a source root from the project.