mirror of https://github.com/apache/maven.git
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:
parent
a20eb4d2a3
commit
fba1a8f5e7
|
@ -719,9 +719,6 @@ public class DefaultLifecycleExecutor
|
|||
|
||||
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 );
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,9 @@ public class LifecyclePhaseNotFoundException
|
|||
*/
|
||||
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 : "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue