Interface MavenEmbedderService

    • Method Detail

      • 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