String goals = getGoals( releaseDescriptor );
if ( !StringUtils.isEmpty( goals ) )
{
logInfo( result, "Executing goals '" + goals + "'..." );
MavenExecutor mavenExecutor = mavenExecutors.get( releaseEnvironment.getMavenExecutorId() );
if ( mavenExecutor == null )
{
throw new ReleaseExecutionException(
"Cannot find Maven executor with id: " + releaseEnvironment.getMavenExecutorId() );
}
mavenExecutor.executeGoals( determineWorkingDirectory( workingDirectory,
releaseDescriptor.getScmRelativePathProjectDirectory() ),
goals, releaseEnvironment, releaseDescriptor.isInteractive(),
additionalArguments, releaseDescriptor.getPomFileName(), result );
}
}