]> source.dussan.org Git - archiva.git/commitdiff
[MRM-1102] reduce verbosity of ZipExceptions
authorBrett Porter <brett@apache.org>
Tue, 10 Mar 2009 01:38:09 +0000 (01:38 +0000)
committerBrett Porter <brett@apache.org>
Tue, 10 Mar 2009 01:38:09 +0000 (01:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@751941 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-base/archiva-consumers/archiva-lucene-consumers/src/main/java/org/apache/archiva/consumers/lucene/NexusIndexerConsumer.java

index 6203611cbb846902ccc457c1d16d38d3dd1230f2..39a04e8fffcb6dc40843ec8267b52b4f056b523c 100644 (file)
@@ -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 );