Package org.apache.maven
Class ProjectBuildFailureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.apache.maven.BuildFailureException
-
- org.apache.maven.ProjectBuildFailureException
-
- All Implemented Interfaces:
java.io.Serializable
public class ProjectBuildFailureException extends BuildFailureException
Exception which occurs when a normal (i.e. non-aggregator) mojo fails to execute. In this case, the mojo failed while executing against a particular project instance, so we can wrap theMojoFailureException
with context information including projectId that caused the failure.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
projectId
-
Constructor Summary
Constructors Constructor Description ProjectBuildFailureException(java.lang.String projectId, MojoFailureException cause)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MojoFailureException
getMojoFailureException()
java.lang.String
getProjectId()
-
-
-
Constructor Detail
-
ProjectBuildFailureException
public ProjectBuildFailureException(java.lang.String projectId, MojoFailureException cause)
-
-
Method Detail
-
getMojoFailureException
public MojoFailureException getMojoFailureException()
-
getProjectId
public java.lang.String getProjectId()
-
-