From bf03bbad7ae8caac18adbfe9010e18956872e37a Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Tue, 10 Mar 2009 01:38:09 +0000 Subject: [PATCH] [MRM-1102] reduce verbosity of ZipExceptions git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751941 13f79535-47bb-0310-9956-ffa450edef68 --- .../archiva/consumers/lucene/NexusIndexerConsumer.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java index 6203611cb..39a04e8ff 100644 --- a/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java +++ b/archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java @@ -27,6 +27,7 @@ import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Set; +import java.util.zip.ZipException; import org.apache.lucene.document.Document; import org.apache.lucene.index.IndexReader; @@ -187,6 +188,11 @@ public class NexusIndexerConsumer indexerEngine.index( context, artifactContext ); } } + catch ( ZipException e ) + { + // invalid JAR file + log.info( e.getMessage() ); + } catch ( IOException e ) { throw new ConsumerException( e.getMessage(), e ); -- 2.39.5