Author: brett
Date: Thu Dec 22 21:18:12 2011
New Revision: 1222459

URL: http://svn.apache.org/viewvc?rev=1222459&view=rev
Log:
improve error handling

Modified:
    
incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryAssemblerMojo.java

Modified: 
incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryAssemblerMojo.java
URL: 
http://svn.apache.org/viewvc/incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryAssemblerMojo.java?rev=1222459&r1=1222458&r2=1222459&view=diff
==============================================================================
--- 
incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryAssemblerMojo.java
 (original)
+++ 
incubator/npanday/trunk/plugins/maven-repository-plugin/src/main/java/npanday/plugin/repository/RepositoryAssemblerMojo.java
 Thu Dec 22 21:18:12 2011
@@ -274,7 +274,9 @@ public class RepositoryAssemblerMojo
             }
             catch ( FileNotFoundException e )
             {
-                throw new MojoExecutionException( "NPANDAY-1700-004: Unable to 
read pom", e );
+                throw new MojoExecutionException(
+                    "NPANDAY-1700-004: Unable to read model: " + tmpFile + " 
for artifact (" + groupId + ":" +
+                        artifactId + ":" + version + ")", e );
             }
             MavenXpp3Reader reader = new MavenXpp3Reader();
             Model model;
@@ -284,12 +286,16 @@ public class RepositoryAssemblerMojo
             }
             catch ( XmlPullParserException e )
             {
-                throw new MojoExecutionException( "NPANDAY-1700-005: Unable to 
read model", e );
+                throw new MojoExecutionException(
+                    "NPANDAY-1700-005: Unable to read model: " + tmpFile + " 
for artifact (" + groupId + ":" +
+                        artifactId + ":" + version + ")", e );
 
             }
             catch ( IOException e )
             {
-                throw new MojoExecutionException( "NPANDAY-1700-006: Unable to 
read model", e );
+                throw new MojoExecutionException(
+                    "NPANDAY-1700-006: Unable to read model: " + tmpFile + " 
for artifact (" + groupId + ":" +
+                        artifactId + ":" + version + ")", e );
             }
 
             Parent parent = model.getParent();


Reply via email to