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/13 12:28:43 UTC
svn commit: r320712 -
/maven/components/trunk/maven-core/src/main/java/org/apache/maven/lifecycle/DefaultLifecycleExecutor.java
Author: brett
Date: Thu Oct 13 03:28:36 2005
New Revision: 320712
URL: http://svn.apache.org/viewcvs?rev=320712&view=rev
Log:
PR: MNG-122
finish cleanup artifact/plugin not found exception
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=320712&r1=320711&r2=320712&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 Thu Oct 13 03:28:36 2005
@@ -461,8 +461,19 @@
}
else
{
- // definitely a CLI goal, can use prefix
- MojoDescriptor mojo = getMojoDescriptor( task, session, project, task, true );
+ MojoDescriptor mojo = null;
+ try
+ {
+ // definitely a CLI goal, can use prefix
+ mojo = getMojoDescriptor( task, session, project, task, true );
+ }
+ catch ( PluginNotFoundException e )
+ {
+ // TODO: shouldn't hit this, investigate using the same resolution logic as otheres for plugins in the reactor
+ getLogger().info(
+ "Cannot find mojo descriptor for: \'" + task + "\' - Treating as non-aggregator." );
+ getLogger().debug( "", e );
+ }
// if the mojo descriptor was found, determine aggregator status according to:
// 1. whether the mojo declares itself an aggregator