Class DefaultProjectBuilder

    • Field Detail

      • DISABLE_GLOBAL_MODEL_CACHE_SYSTEM_PROPERTY

        public static final String DISABLE_GLOBAL_MODEL_CACHE_SYSTEM_PROPERTY
        See Also:
        Constant Field Values
    • Constructor Detail

      • DefaultProjectBuilder

        public DefaultProjectBuilder()
    • Method Detail

      • build

        public ProjectBuildingResult build​(Artifact artifact,
                                           boolean allowStubModel,
                                           ProjectBuildingRequest request)
                                    throws ProjectBuildingException
        Description copied from interface: ProjectBuilder
        Builds a project descriptor for the specified artifact.
        Specified by:
        build in interface ProjectBuilder
        Parameters:
        artifact - The POM artifact to build the project from, must not be null.
        allowStubModel - A flag controlling the case of a missing POM artifact. If true and the specified POM artifact does not exist, a simple stub model will be returned. If false, an exception will be thrown.
        request - The project building request that holds further parameters, must not be null.
        Returns:
        The result of the project building, never null.
        Throws:
        ProjectBuildingException - If the project descriptor could not be successfully built.
      • build

        public List<ProjectBuildingResult> build​(List<File> pomFiles,
                                                 boolean recursive,
                                                 ProjectBuildingRequest request)
                                          throws ProjectBuildingException
        Description copied from interface: ProjectBuilder
        Builds the projects for the specified POM files and optionally their children.
        Specified by:
        build in interface ProjectBuilder
        Parameters:
        pomFiles - The POM files to build, must not be null.
        recursive - true to recursively build sub modules referenced by the POM files, false to build only the specified POM files.
        request - The project builder configuration that provides further parameters, must not be null.
        Returns:
        The results of the project builder where each result corresponds to one project that was built, never null.
        Throws:
        ProjectBuildingException - If an error was encountered during building of any project. ProjectBuildingException.getResults() provides access to the details of the problems.