diff --git a/maven-plugins/bnd-indexer-maven-plugin/src/main/java/aQute/bnd/maven/indexer/plugin/IndexerMojo.java b/maven-plugins/bnd-indexer-maven-plugin/src/main/java/aQute/bnd/maven/indexer/plugin/IndexerMojo.java index e45e78f663..8f8953dbe3 100644 --- a/maven-plugins/bnd-indexer-maven-plugin/src/main/java/aQute/bnd/maven/indexer/plugin/IndexerMojo.java +++ b/maven-plugins/bnd-indexer-maven-plugin/src/main/java/aQute/bnd/maven/indexer/plugin/IndexerMojo.java @@ -178,6 +178,12 @@ public void execute() throws MojoExecutionException, MojoFailureException { IO.mkdirs(outputFile.getParentFile()); for (Entry entry : dependencies.entrySet()) { File file = entry.getKey(); + + if (!"jar".equals(entry.getValue().getArtifact().getExtension())) { + logger.debug("Skipping: {}", file); + continue; + } + ResourceBuilder resourceBuilder = new ResourceBuilder(); resourceBuilder.addFile(entry.getKey(), repositoryURLResolver.resolver(file, entry.getValue()));