You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by cs...@apache.org on 2023/06/13 18:40:26 UTC
[maven-shade-plugin] branch master updated: Fix for tmp file creation
This is an automated email from the ASF dual-hosted git repository.
cstamas pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git
The following commit(s) were added to refs/heads/master by this push:
new 9265316 Fix for tmp file creation
9265316 is described below
commit 92653160c0e31cd32e11c99d337368f146e4d807
Author: Tamas Cservenak <ta...@cservenak.net>
AuthorDate: Tue Jun 13 20:39:55 2023 +0200
Fix for tmp file creation
---
src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
index 5563df7..396bed1 100644
--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
@@ -1057,8 +1057,9 @@ public class ShadeMojo extends AbstractMojo {
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",