class DefaultProjectBuildingResult extends java.lang.Object implements ProjectBuildingResult
Modifier and Type | Field and Description |
---|---|
private DependencyResolutionResult |
dependencyResolutionResult |
private java.io.File |
pomFile |
private java.util.List<ModelProblem> |
problems |
private MavenProject |
project |
private java.lang.String |
projectId |
Constructor and Description |
---|
DefaultProjectBuildingResult(MavenProject project,
java.util.List<ModelProblem> problems,
DependencyResolutionResult dependencyResolutionResult)
Creates a new result with the specified contents.
|
DefaultProjectBuildingResult(java.lang.String projectId,
java.io.File pomFile,
java.util.List<ModelProblem> problems)
Creates a new result with the specified contents.
|
Modifier and Type | Method and Description |
---|---|
DependencyResolutionResult |
getDependencyResolutionResult()
Gets the result of the dependency resolution for the project.
|
java.io.File |
getPomFile()
Gets the POM file from which the project was built.
|
java.util.List<ModelProblem> |
getProblems()
Gets the problems that were encountered during the project building.
|
MavenProject |
getProject()
Gets the project that was built.
|
java.lang.String |
getProjectId()
Gets the identifier of the project that could not be built.
|
private java.lang.String projectId
private java.io.File pomFile
private MavenProject project
private java.util.List<ModelProblem> problems
private DependencyResolutionResult dependencyResolutionResult
DefaultProjectBuildingResult(MavenProject project, java.util.List<ModelProblem> problems, DependencyResolutionResult dependencyResolutionResult)
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(java.lang.String projectId, java.io.File pomFile, java.util.List<ModelProblem> problems)
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
.public java.lang.String getProjectId()
ProjectBuildingResult
<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.getProjectId
in interface ProjectBuildingResult
null
.public java.io.File getPomFile()
ProjectBuildingResult
getPomFile
in interface ProjectBuildingResult
null
if unknown.public MavenProject getProject()
ProjectBuildingResult
getProject
in interface ProjectBuildingResult
null
if an error occurred and this result accompanies a
ProjectBuildingException
.public java.util.List<ModelProblem> getProblems()
ProjectBuildingResult
getProblems
in interface ProjectBuildingResult
null
.public DependencyResolutionResult getDependencyResolutionResult()
ProjectBuildingResult
getDependencyResolutionResult
in interface ProjectBuildingResult
null
if the project dependencies were
not requested.