From ac5f47115b86ce7ebbd47df5c9e0e75d9d6069a8 Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Sun, 27 May 2007 16:47:09 +0000 Subject: [PATCH] Fixing a couple small things having to do with reports that fork. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@541999 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/lifecycle/plan/DefaultBuildPlanner.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/maven-core/src/main/java/org/apache/maven/lifecycle/plan/DefaultBuildPlanner.java b/maven-core/src/main/java/org/apache/maven/lifecycle/plan/DefaultBuildPlanner.java index 0b9391598d..d7e2b43093 100644 --- a/maven-core/src/main/java/org/apache/maven/lifecycle/plan/DefaultBuildPlanner.java +++ b/maven-core/src/main/java/org/apache/maven/lifecycle/plan/DefaultBuildPlanner.java @@ -171,7 +171,7 @@ public class DefaultBuildPlanner if ( pd != null ) { - findForkModifiers( reportBinding, pluginDescriptor, plan, project ); + findForkModifiers( reportBinding, pd, plan, project ); } } } @@ -224,6 +224,12 @@ public class DefaultBuildPlanner MojoDescriptor mojoDescriptor = pluginDescriptor.getMojo( referencingGoal ); + if ( mojoDescriptor == null ) + { + throw new LifecyclePlannerException( "Cannot find mojo descriptor for: " + referencingGoal + " in plugin: " + + pluginDescriptor.getId() ); + } + if ( mojoDescriptor.getExecuteGoal() != null ) { recurseSingleMojoFork( mojoBinding, pluginDescriptor, plan, project );