Uses of Interface
org.apache.maven.api.Project
Package
Description
Maven Core API
-
Uses of Project in org.apache.maven.api
Modifier 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.Modifier 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
Modifier and TypeMethodDescriptionProjectManager.getExecutionProject
(Project project) DependencyResolverRequest.getProject()
ProjectBuilderResult.getProject()
Gets the project that was built.Modifier and TypeMethodDescriptionvoid
ProjectManager.addCompileSourceRoot
(Project project, ProjectScope scope, Path sourceRoot) Add a compilation source root to the given project for the given scope.void
ProjectManager.addResource
(Project project, ProjectScope scope, Resource resource) Add a resource set to the given project for the given scope.void
ProjectManager.attachArtifact
(Project project, ProducedArtifact artifact, Path path) default void
ProjectManager.attachArtifact
(Session session, Project project, String type, Path path) default void
ProjectManager.attachArtifact
(Session session, Project project, Path 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 immutable collection.ProjectManager.getAttachedArtifacts
(Project project) Returns an immutable collection of attached artifacts for given project.ProjectManager.getCompileSourceRoots
(Project project, ProjectScope scope) Obtain an immutable list of compile source roots for the given project and scope.ProjectManager.getExecutionProject
(Project 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 remote plugin repositories (directly specified or inherited).ProjectManager.getRemoteProjectRepositories
(Project project) Returns an immutable list of project remote repositories (directly specified or inherited).ProjectManager.getResources
(Project project, ProjectScope scope) Get the list of resources for the given project and scopedefault DependencyResolverResult
default DependencyResolverResult
void
ProjectManager.setProperty
(Project project, String key, String value) Set a given project property. -
Uses of Project in org.apache.maven.cling.invoker.mvn
Modifier and TypeMethodDescriptionProtoSession.getEffectiveProperties
(Project project) ProtoSession.getPluginContext
(Project project) -
Uses of Project in org.apache.maven.internal.impl
Modifier 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.Modifier and TypeMethodDescriptionDefaultProjectManager.getExecutionProject
(Project project) DefaultProject.getParent()
DefaultEvent.getProject()
DefaultSession.getProjects()
DefaultSession.getProjects
(List<MavenProject> projects) InternalMavenSession.getProjects
(List<MavenProject> projects) Modifier and TypeMethodDescriptionvoid
DefaultProjectManager.addCompileSourceRoot
(Project project, ProjectScope scope, Path sourceRoot) void
DefaultProjectManager.addResource
(Project project, ProjectScope scope, Resource resource) void
DefaultProjectManager.attachArtifact
(Project project, ProducedArtifact artifact, Path path) AbstractSession.collectDependencies
(Project project, PathScope scope) Shortcut forgetService(DependencyResolver.class).collect(...)
DefaultProjectManager.getAllArtifacts
(Project project) DefaultProjectManager.getAttachedArtifacts
(Project project) DefaultProjectManager.getCompileSourceRoots
(Project project, ProjectScope scope) DefaultSession.getEffectiveProperties
(Project project) DefaultProjectManager.getExecutionProject
(Project project) DefaultSession.getPluginContext
(Project project) DefaultProjectManager.getProperties
(Project project) DefaultProjectManager.getRemotePluginRepositories
(Project project) DefaultProjectManager.getRemoteProjectRepositories
(Project project) DefaultProjectManager.getResources
(Project project, ProjectScope scope) AbstractSession.resolveDependencies
(Project project, PathScope scope) AbstractSession.resolveDependencies
(Project project, PathScope scope, Collection<PathType> desiredTypes) void
DefaultProjectManager.setProperty
(Project project, String key, String value) -
Uses of Project in org.apache.maven.plugin
ModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution)