From df346c93b0e27aa122bf23805cae4b3d5d480abe Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Sun, 19 Jul 2009 21:12:29 +0000 Subject: [PATCH] o Tweaked log output git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@795610 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/DefaultProjectBuilder.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java index aeb8714d17..1260595108 100644 --- a/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java +++ b/maven-core/src/main/java/org/apache/maven/project/DefaultProjectBuilder.java @@ -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() );