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 returnsnullas 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().default PathSourceRoot.targetPath(Project project) Returns the fully resolved absolute target path where files should be copied. -
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 TypeMethodDescriptionvoidProjectManager.addSourceRoot(Project project, ProjectScope scope, Language language, Path directory) Resolves and adds the given directory as a source with the given scope and language.voidProjectManager.addSourceRoot(Project project, SourceRoot source) Adds the given source to the given project.voidProjectManager.attachArtifact(Project project, ProducedArtifact artifact, Path path) Attaches a produced artifact to the project at the specified path.default voidProjectManager.attachArtifact(Session session, Project project, String type, Path path) Attaches an artifact to the project with an explicitly specified type.default voidProjectManager.attachArtifact(Session session, Project project, Path path) Attaches an artifact to the project using the given file path.static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Project project) static DependencyResolverRequestDependencyResolverRequest.build(Session session, DependencyResolverRequest.RequestType requestType, Project project, PathScope scope) default DependencyResolverResultCollects the transitive dependencies of some artifacts and builds a dependency graph for the given path scope.default DependencyResolverResultProjectManager.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 DependencyResolverResultdefault DependencyResolverResultvoidProjectManager.setProperty(Project project, String key, String value) Set a given project property.