o Tweaked error reporting

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@807646 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-25 14:22:10 +00:00
parent a20eb4d2a3
commit fba1a8f5e7
2 changed files with 3 additions and 4 deletions

View File

@ -719,9 +719,6 @@ public class DefaultLifecycleExecutor
if ( lifecycle == null ) if ( lifecycle == null )
{ {
logger.info( "Invalid task '" + lifecyclePhase + "' : you must specify a valid lifecycle phase"
+ ", or a goal in the format <plugin-prefix>:<goal> or"
+ " <plugin-group-id>:<plugin-artifact-id>:<plugin-version>:<goal>" );
throw new LifecyclePhaseNotFoundException( lifecyclePhase ); throw new LifecyclePhaseNotFoundException( lifecyclePhase );
} }

View File

@ -37,7 +37,9 @@ public class LifecyclePhaseNotFoundException
*/ */
public LifecyclePhaseNotFoundException( String lifecyclePhase ) public LifecyclePhaseNotFoundException( String lifecyclePhase )
{ {
super( "Unknown lifecycle phase " + lifecyclePhase ); super( "Unknown lifecycle phase \"" + lifecyclePhase + "\". You must specify a valid lifecycle phase"
+ " or a goal in the format <plugin-prefix>:<goal> or"
+ " <plugin-group-id>:<plugin-artifact-id>[:<plugin-version>]:<goal>" );
this.lifecyclePhase = ( lifecyclePhase != null ) ? lifecyclePhase : ""; this.lifecyclePhase = ( lifecyclePhase != null ) ? lifecyclePhase : "";
} }