Class MavenEmbedderServiceImpl
java.lang.Object
com.atlassian.bamboo.maven.embedder.MavenEmbedderServiceImpl
- All Implemented Interfaces:
MavenEmbedderService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull org.apache.maven.model.building.ModelBuildingResult
buildModel
(@NotNull File pomFile, @NotNull MavenConfiguration configuration) Analyze POM file and build a Maven model.@NotNull List<org.apache.maven.project.ProjectBuildingResult>
buildProject
(@NotNull File pomFile, @NotNull MavenConfiguration configuration) Recursively build a Maven project.
-
Constructor Details
-
MavenEmbedderServiceImpl
public MavenEmbedderServiceImpl()
-
-
Method Details
-
buildProject
@NotNull public @NotNull List<org.apache.maven.project.ProjectBuildingResult> buildProject(@NotNull @NotNull File pomFile, @NotNull @NotNull MavenConfiguration configuration) throws MavenEmbedderException Description copied from interface:MavenEmbedderService
Recursively build a Maven project. All properties, parent POMs, dependencies and modules are being resolved during this process.- Specified by:
buildProject
in interfaceMavenEmbedderService
- Returns:
- Throws:
MavenEmbedderException
-
buildModel
@NotNull public @NotNull org.apache.maven.model.building.ModelBuildingResult buildModel(@NotNull @NotNull File pomFile, @NotNull @NotNull MavenConfiguration configuration) throws MavenEmbedderException Description copied from interface:MavenEmbedderService
Analyze POM file and build a Maven model. All properties and parent POMs are being resolved during this process.- Specified by:
buildModel
in interfaceMavenEmbedderService
- Returns:
- Throws:
MavenEmbedderException
-