From efd3309e9930a8803f5eb8739b1b74f57341ceaf Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Wed, 1 Jul 2009 15:09:35 +0000 Subject: [PATCH] o Made warning more prominent and clear git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@790206 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/maven/project/DefaultProjectBuilder.java | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 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 b5b7e01909..03151d7559 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 @@ -105,13 +105,21 @@ public class DefaultProjectBuilder if ( localProject && !result.getProblems().isEmpty() && logger.isWarnEnabled() ) { - logger.warn( "One or more problems were encoutered while building the effective model:" ); + logger.warn( "" ); + logger.warn( "One or more problems were encountered while building the effective model:" ); + for ( ModelProblem problem : result.getProblems() ) { logger.warn( problem.getMessage() ); } + + logger.warn( "" ); logger.warn( "It is highly recommended to fix these problems" - + ", otherwise the project will fail to build with future Maven versions." ); + + " because they threaten the stability of your build." ); + logger.warn( "" ); + logger.warn( "For this reason, future Maven versions will no" + + " longer support building such malformed projects." ); + logger.warn( "" ); } Model model = result.getEffectiveModel();