Class DefaultProjectBuildingResult

    • Field Detail

      • projectId

        private java.lang.String projectId
      • pomFile

        private java.io.File pomFile
    • Constructor Detail

      • DefaultProjectBuildingResult

        DefaultProjectBuildingResult​(MavenProject project,
                                     java.util.List<ModelProblem> problems,
                                     DependencyResolutionResult dependencyResolutionResult)
        Creates a new result with the specified contents.
        Parameters:
        project - The project that was built, may be null.
        problems - The problems that were encountered, may be null.
        dependencyResolutionResult - The result of the resolution for the project dependencies, may be null.
      • DefaultProjectBuildingResult

        DefaultProjectBuildingResult​(java.lang.String projectId,
                                     java.io.File pomFile,
                                     java.util.List<ModelProblem> problems)
        Creates a new result with the specified contents.
        Parameters:
        projectId - The identifier of the project, may be null.
        pomFile - The POM file from which the project was built, may be null.
        problems - The problems that were encountered, may be null.
    • Method Detail

      • getProjectId

        public java.lang.String getProjectId()
        Description copied from interface: ProjectBuildingResult
        Gets the identifier of the project that could not be built. The general format of the identifier is <groupId>:<artifactId>:<version> but some of these coordinates may still be unknown at the point the exception is thrown so this information is merely meant to assist the user.
        Specified by:
        getProjectId in interface ProjectBuildingResult
        Returns:
        The identifier of the project or an empty string if not known, never null.
      • getPomFile

        public java.io.File getPomFile()
        Description copied from interface: ProjectBuildingResult
        Gets the POM file from which the project was built.
        Specified by:
        getPomFile in interface ProjectBuildingResult
        Returns:
        The POM file or null if unknown.
      • getProblems

        public java.util.List<ModelProblem> getProblems()
        Description copied from interface: ProjectBuildingResult
        Gets the problems that were encountered during the project building.
        Specified by:
        getProblems in interface ProjectBuildingResult
        Returns:
        The problems that were encountered during the project building, can be empty but never null.