org.apache.maven.project
Interface ProjectBuildingResult


public interface ProjectBuildingResult

Collects the output of the project builder.

Author:
Benjamin Bentmann

Method Summary
 DependencyResolutionResult getDependencyResolutionResult()
          Gets the result of the dependency resolution for the project.
 File getPomFile()
          Gets the POM file from which the project was built.
 List<ModelProblem> getProblems()
          Gets the problems that were encountered during the project building.
 MavenProject getProject()
          Gets the project that was built.
 String getProjectId()
          Gets the identifier of the project that could not be built.
 

Method Detail

getProjectId

String getProjectId()
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.

Returns:
The identifier of the project or an empty string if not known, never null.

getPomFile

File getPomFile()
Gets the POM file from which the project was built.

Returns:
The POM file or null if unknown.

getProject

MavenProject getProject()
Gets the project that was built.

Returns:
The project that was built or null if an error occurred and this result accompanies a ProjectBuildingException.

getProblems

List<ModelProblem> getProblems()
Gets the problems that were encountered during the project building.

Returns:
The problems that were encountered during the project building, can be empty but never null.

getDependencyResolutionResult

DependencyResolutionResult getDependencyResolutionResult()
Gets the result of the dependency resolution for the project.

Returns:
The result of the dependency resolution for the project or null if the project dependencies were not requested.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.