maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sisb...@apache.org
Subject svn commit: r768380 - /maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
Date Fri, 24 Apr 2009 17:36:49 GMT
Author: sisbell
Date: Fri Apr 24 17:36:48 2009
New Revision: 768380

URL: http://svn.apache.org/viewvc?rev=768380&view=rev
Log:
Throw exception on model validation. No longer just log this to debug.

Modified:
    maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java

Modified: maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
URL: http://svn.apache.org/viewvc/maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java?rev=768380&r1=768379&r2=768380&view=diff
==============================================================================
--- maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
(original)
+++ maven/components/trunk/maven-project/src/main/java/org/apache/maven/project/artifact/MavenMetadataSource.java
Fri Apr 24 17:36:48 2009
@@ -209,13 +209,15 @@
                         }
                     }
 
-                    project = null;
+                    throw new ArtifactMetadataRetrievalException(
+                            "Cannot validate pom " + e.getMessage(), e );
                 }
                 catch ( ProjectBuildingException e )
                 {
                     handleInvalidOrMissingMavenPOM( artifact, e );
 
-                    project = null;
+                    throw new ArtifactMetadataRetrievalException(
+                            "Cannot build project: " + e.getMessage(), e );
                 }
 
 



Mime
View raw message