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 TypeMethodDescriptionvoidaddCompileSourceRoot(Project project, String sourceRoot) voidaddTestCompileSourceRoot(Project project, String sourceRoot) voidattachArtifact(Project project, Artifact artifact, Path path) default voidattachArtifact(Session session, Project project, String type, Path path) default voidattachArtifact(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) voidsetProperty(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
-