o Catched unckecked exceptions from mojos

git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@825518 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-10-15 15:29:09 +00:00
parent 5864960314
commit 85089c7273
1 changed files with 6 additions and 2 deletions

View File

@ -24,7 +24,6 @@ import org.apache.maven.execution.MavenSession;
import org.apache.maven.model.Plugin;
import org.apache.maven.plugin.descriptor.MojoDescriptor;
import org.apache.maven.plugin.descriptor.PluginDescriptor;
import org.apache.maven.project.DuplicateArtifactAttachmentException;
import org.apache.maven.project.MavenProject;
import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.classworlds.realm.ClassRealm;
@ -97,7 +96,12 @@ public class DefaultBuildPluginManager
{
mojo.execute();
}
catch ( DuplicateArtifactAttachmentException e )
catch ( ClassCastException e )
{
// to be processed in the outer catch block
throw e;
}
catch ( RuntimeException e )
{
throw new PluginExecutionException( mojoExecution, project, e );
}