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:
Brett Leslie Porter 2005-03-15 21:48:55 +00:00
parent ea6124092c
commit fae1470d47
1 changed files with 9 additions and 5 deletions

View File

@ -239,6 +239,12 @@ public class DefaultLifecycleExecutor
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 );
}
}
@ -389,9 +395,7 @@ public class DefaultLifecycleExecutor
try
{
Logger logger = getLogger();
logger.debug("Resolving artifacts from:\n" +
"\t{localRepository: " + session.getLocalRepository() + "}\n" +
"\t{remoteRepositories: " + session.getRemoteRepositories() + "}");
logger.debug( "Resolving artifacts from:\n" + "\t{localRepository: " + session.getLocalRepository() + "}\n" + "\t{remoteRepositories: " + session.getRemoteRepositories() + "}" );
return pluginManager.executeMojo( session, id );
}