diff --git a/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoExecutionException.java b/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoExecutionException.java index 0cd4243da7..23e1dc86a5 100755 --- a/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoExecutionException.java +++ b/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoExecutionException.java @@ -35,11 +35,19 @@ public class MojoExecutionException extends Exception this.longMessage = longMessage; } + /** + * @deprecated + */ public MojoExecutionException( String message, Exception cause ) { super( message, cause ); } + public MojoExecutionException( String message, Throwable cause ) + { + super( message, cause ); + } + public MojoExecutionException( String message ) { super( message ); @@ -49,4 +57,9 @@ public class MojoExecutionException extends Exception { return longMessage; } + + public Object getSource() + { + return source; + } }