mirror of https://github.com/apache/maven.git
fix error reporting
git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163560 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ea6124092c
commit
fae1470d47
|
@ -239,6 +239,12 @@ public class DefaultLifecycleExecutor
|
||||||
|
|
||||||
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( mojoId );
|
MojoDescriptor mojoDescriptor = pluginManager.getMojoDescriptor( mojoId );
|
||||||
|
|
||||||
|
if ( mojoDescriptor == null )
|
||||||
|
{
|
||||||
|
throw new LifecycleExecutionException(
|
||||||
|
"A goal '" + mojoId + "' was declared in pom.xml, but does not exist" );
|
||||||
|
}
|
||||||
|
|
||||||
configureMojo( mojoDescriptor );
|
configureMojo( mojoDescriptor );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -389,9 +395,7 @@ public class DefaultLifecycleExecutor
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Logger logger = getLogger();
|
Logger logger = getLogger();
|
||||||
logger.debug("Resolving artifacts from:\n" +
|
logger.debug( "Resolving artifacts from:\n" + "\t{localRepository: " + session.getLocalRepository() + "}\n" + "\t{remoteRepositories: " + session.getRemoteRepositories() + "}" );
|
||||||
"\t{localRepository: " + session.getLocalRepository() + "}\n" +
|
|
||||||
"\t{remoteRepositories: " + session.getRemoteRepositories() + "}");
|
|
||||||
|
|
||||||
return pluginManager.executeMojo( session, id );
|
return pluginManager.executeMojo( session, id );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue