Skip to content

Commit

Permalink
Fix for tmp file creation
Browse files Browse the repository at this point in the history
  • Loading branch information
cstamas committed Jun 13, 2023
1 parent fc0f784 commit 9265316
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1057,8 +1057,9 @@ private void rewriteDependencyReducedPomIfWeHaveReduction(
model.setDependencies(dependencies);

if (generateUniqueDependencyReducedPom) {
dependencyReducedPomLocation =
File.createTempFile("dependency-reduced-pom-", ".xml", project.getBasedir());
dependencyReducedPomLocation = Files.createTempFile(
project.getBasedir().toPath(), "dependency-reduced-pom-", ".xml")
.toFile();
project.getProperties()
.setProperty(
"maven.shade.dependency-reduced-pom",
Expand Down

0 comments on commit 9265316

Please sign in to comment.