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; /**