[ https://issues.apache.org/jira/browse/MCOMPILER-413?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17481151#comment-17481151 ]
Tommy Becker commented on MCOMPILER-413: ---------------------------------------- FYI this seems to be fixed in 3.9.0. > Parameters does not work when only release is specified > ------------------------------------------------------- > > Key: MCOMPILER-413 > URL: https://issues.apache.org/jira/browse/MCOMPILER-413 > Project: Maven Compiler Plugin > Issue Type: Bug > Affects Versions: 3.8.1 > Environment: Arch Linux, OpenJDK 11.0.6.u10, Maven 3.6.3 > Reporter: Jiri Kraml > Priority: Minor > > Compiling a project with the following maven-compiler-plugin configuration > does not produce parameter name metadata in the class files: > {{<{color:#0033b3}configuration{color}>}} > {{ <{color:#0033b3}release{color}>9</{color:#0033b3}release{color}>}} > {{ > <{color:#0033b3}parameters{color}>true</{color:#0033b3}parameters{color}>}} > {{</{color:#0033b3}configuration{color}>}} > I believe this is a mistake, because > {{javac --release 9 -parameters Test.java}} > will produce the metadata. > This behavior is due to dependency > {{org.codehaus.plexus:plexus-compiler-javac:2.8.4}}, where in > {{org.codehaus.plexus.compiler.javac.JavacCompiler}}, line 312, the function > {{isPreJava18}} is called. This function does not evaluate the release > property, only source and compilerVersion. > Available workarounds in {{pom.xml}} are additionally specifying {{source}} > or explicitly specifying the {{-parameters}} parameter in the plugin > configuration. > -- This message was sent by Atlassian Jira (v8.20.1#820001)