maven-compiler-plugin icon indicating copy to clipboard operation
maven-compiler-plugin copied to clipboard

[MCOMPILER-442] Add "showLint" option

Open jira-importer opened this issue 5 years ago • 0 comments

mike duigou opened MCOMPILER-442 and commented

Add a showLint configuration option to eliminate the need to use

 

<configuration>
  <fork>true</fork>
  <compilerArgs>
    <arg>-Xlint:all</arg>
  </compilerArgs>
  ...
</configuration>

to configure the display of compiler lint messages. The advantage to a showLint configuration would be that it is more ammenable to inclusion in a parent or reactor project for inheritance in to sub-modules.

The <showLint> element, if present would add the "-Xlint" option to the compiler command line and the contents of the element as the parameter. ie.

<showLint>all,-options,-path</showLint>

would add:

-Xlint:all,-options,-path

to the compiler command line.


Affects: 3.8.1

Remote Links:

jira-importer avatar Nov 24 '20 22:11 jira-importer