Uses of Interface
org.apache.maven.api.Project
Packages that use Project
Package
Description
Maven Core API
-
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) 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.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) 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 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.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.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
Constructors in org.apache.maven.plugin with parameters of type ProjectModifierConstructorDescriptionPluginParameterExpressionEvaluatorV4
(Session session, Project project) PluginParameterExpressionEvaluatorV4
(Session session, Project project, MojoExecution mojoExecution)