diff options
author | Brett Porter <brett@apache.org> | 2009-03-10 01:09:34 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-03-10 01:09:34 +0000 |
commit | 0fcfb7e339c2815c3b90143b4610fb1f6f7af7ee (patch) | |
tree | 91d3f51efd3a28358d6cdf8145d5a85efdee8935 /archiva-cli | |
parent | 0715c95f8c8c369b2c7a73da5fb3e04dcf0caed8 (diff) | |
download | archiva-0fcfb7e339c2815c3b90143b4610fb1f6f7af7ee.tar.gz archiva-0fcfb7e339c2815c3b90143b4610fb1f6f7af7ee.zip |
[MRM-1102] don't swallow parsing exception too early where it still has context, and only log the message not the trace in scanning
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751932 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-cli')
-rw-r--r-- | archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java index 2ceb7a0d9..b0eb6edc0 100644 --- a/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java +++ b/archiva-cli/src/main/java/org/apache/maven/archiva/cli/ProjectReaderConsumer.java @@ -28,9 +28,9 @@ import org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration; import org.apache.maven.archiva.consumers.ConsumerException; import org.apache.maven.archiva.consumers.KnownRepositoryContentConsumer; import org.apache.maven.archiva.model.ArchivaProjectModel; -import org.apache.maven.archiva.repository.project.ProjectModelException; import org.apache.maven.archiva.repository.project.ProjectModelReader; import org.apache.maven.archiva.repository.project.readers.ProjectModel400Reader; +import org.apache.maven.archiva.xml.XMLException; /** * ProjectReaderConsumer @@ -117,7 +117,7 @@ public class ProjectReaderConsumer System.err.println( "Got null model on " + pomFile ); } } - catch ( ProjectModelException e ) + catch ( XMLException e ) { System.err.println( "Unable to process: " + pomFile ); e.printStackTrace( System.out ); |