Package org.apache.maven.api.services
Interface ProjectManager
- All Superinterfaces:
Service
- All Known Implementing Classes:
DefaultProjectManager
Interface to manage the project during its lifecycle.
- Since:
- 4.0.0
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addCompileSourceRoot
(Project project, String sourceRoot) void
addTestCompileSourceRoot
(Project project, String sourceRoot) void
attachArtifact
(Project project, Artifact artifact, Path path) default void
attachArtifact
(Session session, Project project, String type, Path path) default void
attachArtifact
(Session session, Project project, Path path) getAttachedArtifacts
(Project project) getCompileSourceRoots
(Project project) Returns the path to the resolved file in the local repository if the artifact has been resolved.getRepositories
(Project project) getTestCompileSourceRoots
(Project project) void
setProperty
(Project project, String key, String value)
-
Method Details
-
getPath
Returns the path to the resolved file in the local repository if the artifact has been resolved.- Returns:
- the path of the resolved artifact
-
getAttachedArtifacts
-
attachArtifact
-
attachArtifact
-
attachArtifact
-
getCompileSourceRoots
-
addCompileSourceRoot
-
getTestCompileSourceRoots
-
addTestCompileSourceRoot
-
getRepositories
-
setProperty
-