Package | Description |
---|---|
org.apache.maven.api | |
org.apache.maven.api.services |
Modifier and Type | Method and Description |
---|---|
Optional<Project> |
Project.getParent() |
Optional<Project> |
Event.getProject()
Gets the current project (if any).
|
List<Project> |
Session.getProjects() |
Modifier and Type | Method and Description |
---|---|
Node |
Session.collectDependencies(Project project)
Shortcut for
getService(DependencyCollector.class).collect(...) |
Map<String,Object> |
Session.getPluginContext(Project project)
Returns the plugin context for mojo being executed and the specified
Project , never returns null as if context not present, creates it. |
Modifier and Type | Method and Description |
---|---|
Optional<Project> |
ProjectBuilderResult.getProject()
Gets the project that was built.
|
Modifier and Type | Method and Description |
---|---|
void |
ProjectManager.addCompileSourceRoot(Project project,
String sourceRoot) |
void |
ProjectManager.addTestCompileSourceRoot(Project project,
String sourceRoot) |
void |
ProjectManager.attachArtifact(Project project,
Artifact artifact,
Path path) |
default void |
ProjectManager.attachArtifact(Session session,
Project project,
Path path) |
default void |
ProjectManager.attachArtifact(Session session,
Project project,
String type,
Path path) |
static DependencyCollectorRequest |
DependencyCollectorRequest.build(Session session,
Project project) |
default DependencyCollectorResult |
DependencyCollector.collect(Session session,
Project project)
Collects the transitive dependencies of some artifacts and builds a dependency graph.
|
Collection<Artifact> |
ProjectManager.getAttachedArtifacts(Project project) |
Node |
ProjectManager.getCollectedDependencies(Project project,
ResolutionScope scope) |
List<String> |
ProjectManager.getCompileSourceRoots(Project project) |
Optional<Path> |
ProjectManager.getPath(Project project)
Returns the path to the resolved file in the local repository
if the artifact has been resolved.
|
List<RemoteRepository> |
ProjectManager.getRepositories(Project project) |
List<Artifact> |
ProjectManager.getResolvedDependencies(Project project,
ResolutionScope scope) |
List<String> |
ProjectManager.getTestCompileSourceRoots(Project project) |
void |
ProjectManager.setProperty(Project project,
String key,
String value) |
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.