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
This commit is contained in:
Benjamin Bentmann 2009-07-01 15:09:35 +00:00
parent 512d83070a
commit efd3309e99
1 changed files with 10 additions and 2 deletions

View File

@ -105,13 +105,21 @@ public class DefaultProjectBuilder
if ( localProject && !result.getProblems().isEmpty() && logger.isWarnEnabled() ) 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() ) for ( ModelProblem problem : result.getProblems() )
{ {
logger.warn( problem.getMessage() ); logger.warn( problem.getMessage() );
} }
logger.warn( "" );
logger.warn( "It is highly recommended to fix these problems" 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(); Model model = result.getEffectiveModel();