Skip to content

Commit

Permalink
Index only JAR artifacts in IndexerMojo
Browse files Browse the repository at this point in the history
Fixes #5739

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Aug 16, 2023
1 parent d048057 commit 46a8142
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ public void execute() throws MojoExecutionException, MojoFailureException {
IO.mkdirs(outputFile.getParentFile());
for (Entry<File, ArtifactResult> 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()));

Expand Down

0 comments on commit 46a8142

Please sign in to comment.