From 75b53b65b53ab6cb2ad1488b2a59cd677266f776 Mon Sep 17 00:00:00 2001 From: Emmanuel Bourg Date: Sat, 17 Jun 2023 14:57:13 +0200 Subject: [PATCH] [MCOMPILER-397] Use relative paths in jpms.args to make the builds reproducible --- .../org/apache/maven/plugin/compiler/AbstractCompilerMojo.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java index 0537bc65..7b53f807 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java @@ -1063,7 +1063,7 @@ public void execute() throws MojoExecutionException, CompilationFailureException String value = entry.getValue(); if (value == null) { entry = entryIter.next(); - value = entry.getKey(); + value = entry.getKey().replaceAll(new File("").getAbsolutePath(), "."); } jpmsLines.add(value); } else if ("--patch-module".equals(entry.getKey())) {