mirror of https://github.com/apache/maven.git
o Adjusted warning
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@820099 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
f82e1fb06c
commit
5a7d264481
|
@ -313,6 +313,8 @@ public class DefaultMaven
|
|||
|
||||
List<ProjectBuildingResult> results = projectBuilder.build( files, request.isRecursive(), projectBuildingRequest );
|
||||
|
||||
boolean problems = false;
|
||||
|
||||
for ( ProjectBuildingResult result : results )
|
||||
{
|
||||
projects.add( result.getProject() );
|
||||
|
@ -322,22 +324,26 @@ public class DefaultMaven
|
|||
logger.warn( "" );
|
||||
logger.warn( "Some problems were encountered while building the effective model for "
|
||||
+ result.getProject().getId() );
|
||||
logger.warn( "" );
|
||||
|
||||
for ( ModelProblem problem : result.getProblems() )
|
||||
{
|
||||
logger.warn( problem.getMessage() + " @ " + problem.getLocation() );
|
||||
}
|
||||
|
||||
logger.warn( "" );
|
||||
logger.warn( "It is highly recommended to fix these problems"
|
||||
+ " because they threaten the stability of your build." );
|
||||
logger.warn( "" );
|
||||
logger.warn( "For this reason, future Maven versions might no"
|
||||
+ " longer support building such malformed projects." );
|
||||
logger.warn( "" );
|
||||
problems = true;
|
||||
}
|
||||
}
|
||||
|
||||
if ( problems )
|
||||
{
|
||||
logger.warn( "" );
|
||||
logger.warn( "It is highly recommended to fix these problems"
|
||||
+ " because they threaten the stability of your build." );
|
||||
logger.warn( "" );
|
||||
logger.warn( "For this reason, future Maven versions might no"
|
||||
+ " longer support building such malformed projects." );
|
||||
logger.warn( "" );
|
||||
}
|
||||
}
|
||||
|
||||
private void validateActivatedProfiles( List<MavenProject> projects, List<String> activeProfileIds )
|
||||
|
|
Loading…
Reference in New Issue