File tree 2 files changed +16
-2
lines changed
src/main/java/org/apache/maven/plugin/compiler
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -70,8 +70,17 @@ public class CompilerMojo extends AbstractCompilerMojo {
70
70
71
71
/**
72
72
* The directory for compiled classes.
73
+ * <p>
74
+ * This parameter should only be modified in special cases. One example is creating
75
+ * a multi-release jar with a lower bytecode level (i.e. setting it to
76
+ * {@code ${project.build.outputDirectory}/META-INF/versions/21} or similar) in an additional
77
+ * execution.
78
+ * <p>
79
+ * When the required bytecode level is available though an installed JDK or toolchain,
80
+ * it is recommended to use the {@code <release>} property
81
+ * in conjunction with the ${multiReleaseOutput} parameter instead.
73
82
*/
74
- @ Parameter (defaultValue = "${project.build.outputDirectory}" , required = true , readonly = true )
83
+ @ Parameter (defaultValue = "${project.build.outputDirectory}" , required = true , readonly = false )
75
84
private File outputDirectory ;
76
85
77
86
/**
Original file line number Diff line number Diff line change @@ -75,8 +75,13 @@ public class TestCompilerMojo extends AbstractCompilerMojo {
75
75
76
76
/**
77
77
* The directory where compiled test classes go.
78
+ * <p>
79
+ * This parameter should only be modified in special cases.
80
+ * See the {@link CompilerMojo#outputDirectory} for more information.
81
+ *
82
+ * @see CompilerMojo#outputDirectory
78
83
*/
79
- @ Parameter (defaultValue = "${project.build.testOutputDirectory}" , required = true , readonly = true )
84
+ @ Parameter (defaultValue = "${project.build.testOutputDirectory}" , required = true , readonly = false )
80
85
private File outputDirectory ;
81
86
82
87
/**
You can’t perform that action at this time.
0 commit comments