mirror of
https://github.com/apache/maven.git
synced 2025-02-22 18:04:52 +00:00
need to handle resolution exception too at present
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@307269 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9b0b68d20
commit
172906f5f6
@ -201,7 +201,8 @@ public MavenExecutionResponse execute( MavenSession session, ReactorManager rm,
|
||||
private void executeTaskSegments( List taskSegments, ReactorManager rm, MavenSession session,
|
||||
MavenProject rootProject, EventDispatcher dispatcher,
|
||||
MavenExecutionResponse response )
|
||||
throws ArtifactNotFoundException, MojoExecutionException, LifecycleExecutionException, MojoFailureException
|
||||
throws ArtifactNotFoundException, MojoExecutionException, LifecycleExecutionException, MojoFailureException,
|
||||
ArtifactResolutionException
|
||||
{
|
||||
for ( Iterator it = taskSegments.iterator(); it.hasNext(); )
|
||||
{
|
||||
@ -368,7 +369,7 @@ private void executeTaskSegments( List taskSegments, ReactorManager rm, MavenSes
|
||||
}
|
||||
|
||||
private void handleExecutionFailure( ReactorManager rm, MavenProject project, Exception e, String task )
|
||||
throws MojoExecutionException, MojoFailureException, ArtifactNotFoundException
|
||||
throws MojoExecutionException, MojoFailureException, ArtifactNotFoundException, ArtifactResolutionException
|
||||
{
|
||||
if ( ReactorManager.FAIL_FAST.equals( rm.getFailureBehavior() ) )
|
||||
{
|
||||
@ -386,6 +387,10 @@ else if ( e instanceof ArtifactNotFoundException )
|
||||
{
|
||||
throw (ArtifactNotFoundException) e;
|
||||
}
|
||||
else if ( e instanceof ArtifactResolutionException )
|
||||
{
|
||||
throw (ArtifactResolutionException) e;
|
||||
}
|
||||
else
|
||||
{
|
||||
getLogger().error( "Attempt to register inappropriate build-failure Exception.", e );
|
||||
|
Loading…
x
Reference in New Issue
Block a user