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 08eeeb269..57b3c61ee 100644 --- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java +++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java @@ -432,21 +432,28 @@ final Charset charset() { * * @see #debuglevel * @see javac -g + * + * @deprecated Setting this flag to {@code false} is replaced by {@code none}. */ + @Deprecated(since = "4.0.0") @Parameter(property = "maven.compiler.debug", defaultValue = "true") protected boolean debug = true; /** - * Keyword list to be appended to the {@code -g} command-line switch. - * Legal values are a comma-separated list of the following keywords: - * {@code lines}, {@code vars}, {@code source} and {@code all}. - * If debug level is not specified, then the {@code -g} option will not by added, + * Kinds of debugging information to include in the compiled class files. + * Legal values are {@code lines}, {@code vars}, {@code source}, {@code all} and {@code none}. + * Values other than {@code all} and {@code none} can be combined in a comma-separated list. + * + *

If debug level is not specified, then the {@code -g} option will not be added, * which means that the default debugging information will be generated - * (typically {@code lines} and {@code source} but not {@code vars}). - * If {@link #debug} is turned off, this attribute will be ignored. + * (typically {@code lines} and {@code source} but not {@code vars}).

+ * + *

If debug level is {@code all}, then only the {@code -g} option is added, + * which means that all debugging information will be generated. + * If debug level is anything else, then the comma-separated list of keywords + * is appended to the {@code -g} command-line switch.

* - * @see #debug - * @see javac -G:[lines,vars,source] + * @see javac -g:[lines,vars,source] * @since 2.1 */ @Parameter(property = "maven.compiler.debuglevel")