Skip to content

Commit

Permalink
Merge pull request #328 from Ladicek/maven-plugin-index-name-dir
Browse files Browse the repository at this point in the history
Maven plugin: support <indexName> containing a path
  • Loading branch information
Ladicek authored Aug 30, 2023
2 parents 7d33efa + d0a430d commit 171f61d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ public void execute() throws MojoExecutionException {
File indexFile = new File(indexDir, indexName);
getLog().info("Saving Jandex index: " + indexFile);
try {
Files.createDirectories(indexDir.toPath());
Files.createDirectories(indexFile.toPath().getParent());
try (OutputStream out = new CachingOutputStream(indexFile)) {
IndexWriter writer = new IndexWriter(out);
if (indexVersion != null) {
Expand Down

0 comments on commit 171f61d

Please sign in to comment.