cstamas commented on code in PR #347:
URL: https://github.com/apache/maven-indexer/pull/347#discussion_r1438260247


##########
indexer-core/src/main/java/org/apache/maven/index/ArtifactContext.java:
##########
@@ -104,7 +107,11 @@ else if (getArtifact() != null && getArtifact().isFile()) {
                     }
                 }
             } catch (IOException | XmlPullParserException e) {
-                LOGGER.warn("skip error reading pom withing artifact:" + 
artifact, e);
+                if (e instanceof ZipException && !isZip) {
+                    // ZipFile constructor threw ZipException which means this 
is no zip file -> ignore
+                } else {
+                    LOGGER.warn("skip error reading pom withing artifact:" + 
artifact, e);

Review Comment:
   ```suggestion
                       LOGGER.warn("skip error reading pom within artifact:" + 
artifact, e);
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to