another issue with re-initialising the phases in the reactor

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@163590 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Brett Leslie Porter 2005-03-17 02:26:19 +00:00
parent 829e2051f6
commit dbe55b7d83
1 changed files with 4 additions and 12 deletions

View File

@ -332,14 +332,9 @@ public class DefaultLifecycleExecutor
{
throw new LifecycleExecutionException( "Required goal not found: " + task );
}
if ( mojoDescriptor.getPhase() != null )
{
Phase phase = (Phase) phaseMap.get( mojoDescriptor.getPhase() );
phase.getGoals().add( task );
}
}
configureMojo( mojoDescriptor, phaseMap );
}
private void executePhase( String phase, MavenSession session, MavenExecutionResponse response, Map phaseMap )
@ -407,11 +402,8 @@ 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 );
}