From 1d053422bde8ef0f0d1a1901a0b00e56c5e62571 Mon Sep 17 00:00:00 2001 From: Gaurav Gupta Date: Sun, 10 Dec 2023 14:01:42 +0530 Subject: [PATCH] [MCOMPILER-562] Add property maven.compiler.outputDirectory to CompilerMojo (#213) --- .../java/org/apache/maven/plugin/compiler/CompilerMojo.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java index 9ba8a753..9142f99d 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java @@ -83,7 +83,11 @@ public class CompilerMojo extends AbstractCompilerMojo { * it is recommended to use the {@code } property * in conjunction with the ${multiReleaseOutput} parameter instead. */ - @Parameter(defaultValue = "${project.build.outputDirectory}", required = true, readonly = false) + @Parameter( + property = "maven.compiler.outputDirectory", + defaultValue = "${project.build.outputDirectory}", + required = true, + readonly = false) private File outputDirectory; /**