You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by br...@apache.org on 2005/10/08 08:59:31 UTC

svn commit: r307269 - /maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Author: brett
Date: Fri Oct  7 23:59:27 2005
New Revision: 307269

URL: http://svn.apache.org/viewcvs?rev=307269&view=rev
Log:
need to handle resolution exception too at present

Modified:
    maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java

Modified: maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java?rev=307269&r1=307268&r2=307269&view=diff
==============================================================================
--- maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java (original)
+++ maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java Fri Oct  7 23:59:27 2005
@@ -201,7 +201,8 @@
     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 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() ) )
         {
@@ -385,6 +386,10 @@
             else if ( e instanceof ArtifactNotFoundException )
             {
                 throw (ArtifactNotFoundException) e;
+            }
+            else if ( e instanceof ArtifactResolutionException )
+            {
+                throw (ArtifactResolutionException) e;
             }
             else
             {