From a635f115bf3d730f4ab80442da96e8c8996e4f7a Mon Sep 17 00:00:00 2001 From: Fuminobu TAKEYAMA Date: Fri, 19 Apr 2024 17:41:22 +0900 Subject: [PATCH] Fix path errors while analyzing packages referencing ${java.home} Some packages (e.g., Javassist) refere ${java.home} in of their dependencies. This commit add "java.home" to the passthrough properties list and prevent maven from complaining such paths are not absolute. Signed-off-by: Fuminobu TAKEYAMA --- src/main/java/org/spdx/sbom/gradle/maven/PropertiesForPom.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/spdx/sbom/gradle/maven/PropertiesForPom.java b/src/main/java/org/spdx/sbom/gradle/maven/PropertiesForPom.java index e12da56..3f103c9 100644 --- a/src/main/java/org/spdx/sbom/gradle/maven/PropertiesForPom.java +++ b/src/main/java/org/spdx/sbom/gradle/maven/PropertiesForPom.java @@ -29,7 +29,7 @@ public abstract class PropertiesForPom { PropertiesForPom() {} - private static final List JAVA_PROP_KEYS = List.of("java.version"); + private static final List JAVA_PROP_KEYS = List.of("java.version", "java.home"); @Lazy public Properties get() {