Interface MavenEmbedderService

All Known Implementing Classes:
MavenEmbedderServiceImpl

public interface MavenEmbedderService
  • Method Summary

    Modifier and Type
    Method
    Description
    @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.
  • Method Details

    • buildProject

      @NotNull @NotNull List<org.apache.maven.project.ProjectBuildingResult> buildProject(@NotNull @NotNull File pomFile, @NotNull @NotNull MavenConfiguration configuration) throws MavenEmbedderException
      Recursively build a Maven project. All properties, parent POMs, dependencies and modules are being resolved during this process.
      Parameters:
      pomFile -
      configuration -
      Returns:
      Throws:
      MavenEmbedderException
    • buildModel

      @NotNull @NotNull org.apache.maven.model.building.ModelBuildingResult buildModel(@NotNull @NotNull File pomFile, @NotNull @NotNull MavenConfiguration configuration) throws MavenEmbedderException
      Analyze POM file and build a Maven model. All properties and parent POMs are being resolved during this process.
      Parameters:
      pomFile -
      configuration -
      Returns:
      Throws:
      MavenEmbedderException