Uses of Interface
org.apache.maven.api.Project
Package
Description
-
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()
Modifier and TypeMethodDescriptionSession.collectDependencies
(Project project) Shortcut forgetService(DependencyCollector.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) DependencyCollectorRequest.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, Artifact 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 DependencyCollectorRequest
static DependencyResolverRequest
static DependencyResolverRequest
default DependencyCollectorResult
Collects the transitive dependencies of some artifacts and builds a dependency graph.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
Modifier and TypeMethodDescriptionAbstractSession.getProject
(MavenProject project) InternalSession.getProject
(MavenProject project) Modifier and TypeMethodDescriptionDefaultProjectManager.getExecutionProject
(Project project) DefaultProject.getParent()
DefaultEvent.getProject()
AbstractSession.getProjects
(List<MavenProject> projects) DefaultSession.getProjects()
InternalSession.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, Artifact artifact, Path path) AbstractSession.collectDependencies
(Project project) Shortcut forgetService(DependencyCollector.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)