o Tweaked log output

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795610 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-07-19 21:12:29 +00:00
parent c6f0c40c76
commit df346c93b0
1 changed files with 3 additions and 3 deletions

View File

@ -114,10 +114,12 @@ public class DefaultProjectBuilder
throw new ProjectBuildingException( "[unknown]", "Failed to build project for " + pomFile, pomFile, e );
}
Model model = result.getEffectiveModel();
if ( localProject && !result.getProblems().isEmpty() && logger.isWarnEnabled() )
{
logger.warn( "" );
logger.warn( "One or more problems were encountered while building the project's effective model:" );
logger.warn( "Some problems were encountered while building the effective model for " + model.getId() );
for ( ModelProblem problem : result.getProblems() )
{
@ -133,8 +135,6 @@ public class DefaultProjectBuilder
logger.warn( "" );
}
Model model = result.getEffectiveModel();
File parentPomFile = result.getRawModel( result.getModelIds().get( 1 ) ).getPomFile();
MavenProject project = fromModelToMavenProject( model, parentPomFile, configuration, model.getPomFile() );