From 937014c33e8d3d44b493005a133725340a38a6eb Mon Sep 17 00:00:00 2001 From: Britton Isbell Date: Thu, 27 Nov 2008 17:32:55 +0000 Subject: [PATCH] Moved validation errors to debug. This will still fail the build in critical cases. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@721246 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/DefaultMavenProjectBuilder.java | 2 +- .../org/apache/maven/project/artifact/MavenMetadataSource.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java index 538b068d2e..cc56cdcfa9 100644 --- a/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java +++ b/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java @@ -563,7 +563,7 @@ public class DefaultMavenProjectBuilder { for ( String s : (List) validationResult.getMessages() ) { - System.out.println( s ); + logger.debug( s ); } throw new InvalidProjectModelException( projectId, "Failed to validate POM", pomFile, validationResult ); } diff --git a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java b/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java index c47ea86b43..bc18731883 100644 --- a/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java +++ b/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java @@ -372,7 +372,7 @@ public class MavenMetadataSource } else { - getLogger().warn( "\n\tDEPRECATION: The POM for the artifact '" + artifact.getDependencyConflictId() + + getLogger().debug( "\n\tDEPRECATION: The POM for the artifact '" + artifact.getDependencyConflictId() + "' was invalid or not found on any repositories.\n" + "\tThis may not be supported by future versions of Maven and should be corrected as soon as possible.\n" + "\tError given: " + e.getMessage() + "\n" );