diff --git a/java/plugin.jelly b/java/plugin.jelly index 4885a3bd..23df90da 100644 --- a/java/plugin.jelly +++ b/java/plugin.jelly @@ -70,6 +70,7 @@ destdir="${maven.build.dest}" excludes="**/package.html" debug="${maven.compile.debug}" + debuglevel="${maven.compile.debuglevel}" nowarn="${maven.compile.nowarn}" deprecation="${maven.compile.deprecation}" optimize="${maven.compile.optimize}"> diff --git a/java/plugin.properties b/java/plugin.properties index da58d3d4..e03ff8ac 100644 --- a/java/plugin.properties +++ b/java/plugin.properties @@ -21,3 +21,4 @@ maven.compile.log=${maven.build.dir}/compile.log maven.compile.deprecation=on maven.compile.nowarn=off +maven.compile.debuglevel=lines,vars,source \ No newline at end of file diff --git a/java/xdocs/changes.xml b/java/xdocs/changes.xml index fd63dd67..8da8c51b 100644 --- a/java/xdocs/changes.xml +++ b/java/xdocs/changes.xml @@ -26,6 +26,7 @@ + New property maven.compile.debuglevel. New property maven.compile.nowarn. Set maven.compile.deprecation=on by default. Compiling gives incorrect warning about target JVM version. diff --git a/java/xdocs/properties.xml b/java/xdocs/properties.xml index 5e6a7b2c..f4d9b626 100644 --- a/java/xdocs/properties.xml +++ b/java/xdocs/properties.xml @@ -53,6 +53,22 @@ Used by the "java:compile" goal. + + maven.compile.debuglevel + Yes + +

+ Keyword list to be appended to the -g command-line switch. + This is only used if maven.compile.debug=on. + Defaults to lines,vars,source. +

+

+ Corresponds to the debuglevel attribute for the ant + javac + task. +

+ + maven.compile.deprecation Yes