[ https://jira.codehaus.org/browse/MCOMPILER-178?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=312679#comment-312679 ]
Yegor Bugayenko commented on MCOMPILER-178: ------------------------------------------- Another option would be to use values of elements of {{compilerArguments}}, if they are not empty. And use names (as it's done now) if values are empty: {noformat} <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <compilerArguments> <Xlint/> <!-- XML element name is used, since value is empty --> <Werror/> <arg>Xlint:-path</arg> <!-- XML element value is used, since it's not empty --> <arg>Xlint:-options</arg> </compilerArguments> </configuration> </plugin> {noformat} > can't specify -Xlint:-path option without violation of XML well-formness > ------------------------------------------------------------------------ > > Key: MCOMPILER-178 > URL: https://jira.codehaus.org/browse/MCOMPILER-178 > Project: Maven 2.x Compiler Plugin > Issue Type: Bug > Reporter: Yegor Bugayenko > > This XML document is not valid: > {noformat} > <compilerArguments> > <Xlint:-path/> > </compilerArguments> > {noformat} > because {{Xlint}} is interpreted as a namespace, which is absent in the > document -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira