You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by jd...@apache.org on 2005/05/04 22:41:08 UTC
svn commit: r168186 -
/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
Author: jdcasey
Date: Wed May 4 13:41:07 2005
New Revision: 168186
URL: http://svn.apache.org/viewcvs?rev=168186&view=rev
Log:
Improved the error message coming from a bad plugin configuration. Not sure what else needs to be done for this.
Modified:
maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java
URL: http://svn.apache.org/viewcvs/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java?rev=168186&r1=168185&r2=168186&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java (original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java Wed May 4 13:41:07 2005
@@ -405,12 +405,12 @@
catch ( IOException e )
{
throw new ProjectBuildingException(
- "Error while reading model from file '" + file.getAbsolutePath() + "'.", e );
+ "Failed to build model from file '" + file.getAbsolutePath() + "'.\nError: \'" + e.getLocalizedMessage() + "\'", e );
}
catch ( XmlPullParserException e )
{
throw new ProjectBuildingException(
- "Error while parsing model from file '" + file.getAbsolutePath() + "'.", e );
+ "Failed to parse model from file '" + file.getAbsolutePath() + "'.\nError: \'" + e.getLocalizedMessage() + "\'", e );
}
finally
{
@@ -429,11 +429,11 @@
}
catch ( IOException e )
{
- throw new ProjectBuildingException( "Error while building model from " + url.toExternalForm(), e );
+ throw new ProjectBuildingException( "Failed build model from URL \'" + url.toExternalForm() + "\'\nError: \'" + e.getLocalizedMessage() + "\'", e );
}
catch ( XmlPullParserException e )
{
- throw new ProjectBuildingException( "Error while building model from " + url.toExternalForm(), e );
+ throw new ProjectBuildingException( "Failed to parse model from URL \'" + url.toExternalForm() + "\'\nError: \'" + e.getLocalizedMessage() + "\'", e );
}
finally
{
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org