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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]