Skip to content

Commit

Permalink
[MCOMPILER-550] make outputDirectory writeable
Browse files Browse the repository at this point in the history
- add more documentation when and how to use it (and when to not use it)
- fixes MCOMPILER-550
  • Loading branch information
bmarwell committed Oct 21, 2023
1 parent 628c333 commit f9decf2
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/java/org/apache/maven/plugin/compiler/CompilerMojo.java
Expand Up @@ -70,8 +70,17 @@ public class CompilerMojo extends AbstractCompilerMojo {

/**
* The directory for compiled classes.
* <p>
* This parameter should only be modified in special cases. One example is creating
* a multi-release jar with a lower bytecode level (i.e. setting it to
* {@code ${project.build.outputDirectory}/META-INF/versions/21} or similar) in an additional
* execution.
* <p>
* When the required bytecode level is available though an installed JDK or toolchain,
* it is recommended to use the {@code <release>} property
* in conjunction with the ${multiReleaseOutput} parameter instead.
*/
@Parameter(defaultValue = "${project.build.outputDirectory}", required = true, readonly = true)
@Parameter(defaultValue = "${project.build.outputDirectory}", required = true, readonly = false)
private File outputDirectory;

/**
Expand Down

0 comments on commit f9decf2

Please sign in to comment.