From 524ae18b88970b5866a8b3a2c07747e3a4fc024d Mon Sep 17 00:00:00 2001 From: John Dennis Casey Date: Wed, 16 Nov 2005 20:28:53 +0000 Subject: [PATCH] PR: MNG-1404 Submitted By: David Jackman Reviewed By: John Casey Did not apply this patch. The typo fix in MavenMetadataSource was already fixed, and the xpp3 parse error in the DefaultMavenProjectBuilder didn't need to be wrapped in a ModelValidationResult...Added it to the exception message instead. Still, thanks for isolating this code for reformatting, David. git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@345105 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/project/DefaultMavenProjectBuilder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 9a3ec9d651..6e4b591479 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 @@ -1091,7 +1091,7 @@ public class DefaultMavenProjectBuilder } catch ( XmlPullParserException e ) { - throw new InvalidProjectModelException( projectId, pomLocation, "Parse error reading POM", e ); + throw new InvalidProjectModelException( projectId, pomLocation, "Parse error reading POM. Reason: " + e.getMessage(), e ); } }