Uses of Interface
org.apache.maven.api.Project
Packages that use Project
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 Project in org.apache.maven.api
Methods in org.apache.maven.api that return types with arguments of type ProjectModifier and TypeMethodDescriptionProject.getParent()
Returns project parent project, if any.Event.getProject()
Gets the current project (if any).Session.getProjects()
Retrieves a list of projects associated with the session.Methods in org.apache.maven.api with parameters of type ProjectModifier and TypeMethodDescriptionSession.collectDependencies
(Project project, PathScope scope) Shortcut forgetService(DependencyResolver.class).collect(...)
Session.getEffectiveProperties
(Project project) Each invocation computes a new map of effective properties.Session.getPluginContext
(Project project) Returns the plugin context for mojo being executed and the specifiedProject
, never returnsnull
as if context not present, creates it.Session.resolveDependencies
(Project project, PathScope scope) Shortcut forgetService(DependencyResolver.class).resolve(...).getPaths()
.Session.resolveDependencies
(Project project, PathScope scope, Collection<PathType> desiredTypes) Shortcut forgetService(DependencyResolver.class).resolve(...).getDispatchedPaths()
. -
Uses of Project in org.apache.maven.api.services
Methods in org.apache.maven.api.services that return types with arguments of type ProjectModifier and TypeMethodDescriptionProjectManager.getExecutionProject
(Project project) Returns the original project being built when the input project is a forked project.DependencyResolverRequest.getProject()
ProjectBuilderResult.getProject()
Gets the project that was built.Methods in org.apache.maven.api.services with parameters of type ProjectModifier 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.void
ProjectManager.addSourceRoot
(Project project, SourceRoot source) Adds the given source to the given project.void
ProjectManager.attachArtifact
(Project project, ProducedArtifact artifact, Path path) Attaches a produced artifact to the project at the specified path.default void
ProjectManager.attachArtifact
(Session session, Project project, String type, Path path) Attaches an artifact to the project with an explicitly specified type.default void
ProjectManager.attachArtifact
(Session session, Project project, Path path) Attaches an artifact to the project using the given file path.static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequest
DependencyResolverRequest.build
(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) default DependencyResolverResult
Collects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default DependencyResolverResult
ProjectManager.getAllArtifacts
(Project project) Returns project's all artifacts as an immutable ordered collection.ProjectManager.getAttachedArtifacts
(Project project) Returns an immutable collection of attached artifacts for the given project.ProjectManager.getEnabledSourceRoots
(Project project, ProjectScope scope, Language language) Returns all enabled sources that provide files in the given language for the given scope.ProjectManager.getExecutionProject
(Project project) Returns the original project being built when the input project is a forked project.Returns the path to the built project artifact file, if the project has been built.ProjectManager.getProperties
(Project project) Returns an immutable map of the project properties.ProjectManager.getRemotePluginRepositories
(Project project) Returns an immutable list of project plugin remote repositories (directly specified or inherited).ProjectManager.getRemoteProjectRepositories
(Project project) Returns an immutable list of project remote repositories (directly specified or inherited).ProjectManager.getSourceRoots
(Project project) Returns all source root directories.default DependencyResolverResult
default DependencyResolverResult
void
ProjectManager.setProperty
(Project project, String key, String value) Set a given project property. -
Uses of Project in org.apache.maven.impl
Methods in org.apache.maven.impl with parameters of type ProjectModifier and TypeMethodDescriptionAbstractSession.collectDependencies
(Project project, PathScope scope) Shortcut forgetService(DependencyResolver.class).collect(...)
AbstractSession.resolveDependencies
(Project project, PathScope scope) AbstractSession.resolveDependencies
(Project project, PathScope scope, Collection<PathType> desiredTypes) -
Uses of Project in org.apache.maven.internal.impl
Classes in org.apache.maven.internal.impl that implement ProjectMethods in org.apache.maven.internal.impl that return ProjectModifier and TypeMethodDescriptionDefaultSession.getProject
(MavenProject project) InternalMavenSession.getProject
(MavenProject project) May return null if the input project is null or is not part of the reactor.Methods in org.apache.maven.internal.impl that return types with arguments of type ProjectModifier and TypeMethodDescriptionDefaultProjectManager.getExecutionProject
(Project project) DefaultProject.getParent()
DefaultEvent.getProject()
DefaultSession.getProjects()
DefaultSession.getProjects
(List<MavenProject> projects) InternalMavenSession.getProjects
(List<MavenProject> projects) Methods in org.apache.maven.internal.impl with parameters of type ProjectModifier and TypeMethodDescriptionvoid
DefaultProjectManager.addSourceRoot
(Project project, ProjectScope scope, Language language, Path directory) void
DefaultProjectManager.addSourceRoot
(Project project, SourceRoot source) void
DefaultProjectManager.attachArtifact
(Project project, ProducedArtifact artifact, Path path) DefaultProjectManager.getAllArtifacts
(Project project) DefaultProjectManager.getAttachedArtifacts
(Project project) DefaultSession.getEffectiveProperties
(Project project) DefaultProjectManager.getEnabledSourceRoots
(Project project, ProjectScope scope, Language language) DefaultProjectManager.getExecutionProject
(Project project) DefaultSession.getPluginContext
(Project project) DefaultProjectManager.getProperties
(Project project) DefaultProjectManager.getRemotePluginRepositories
(Project project) DefaultProjectManager.getRemoteProjectRepositories
(Project project) DefaultProjectManager.getSourceRoots
(Project project) void
DefaultProjectManager.setProperty
(Project project, String key, String value) -
Uses of Project in org.apache.maven.plugin
Constructors in org.apache.maven.plugin with parameters of type ProjectModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution)