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.
-
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.services
Methods 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.impl
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<PathMatcher> includes, List<PathMatcher> 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.