tatsiana-skurydzina-rovio opened a new issue, #332:
URL: https://github.com/apache/maven-compiler-plugin/issues/332

   ### New feature, improvement proposal
   
   Hi
   
   I'm playing with [the latest 
documentation](https://maven.apache.org/plugins/maven-compiler-plugin/compile-mojo.html#parameters)
 and source code for maven-compiler-plugin for a couple of hours but I cannot 
find the proper way to achieve what I want. It mean I either missing something 
in the doc or it's missing.
   
   My goal to achieve the following behaviour with maven-compiler-plugin: fail 
build on warnings, treat them as errors except usage of deprecated annotation.
   
   ```
   <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-compiler-plugin</artifactId>
             <version>3.14.0</version>
             <configuration>
                 <source>17</source>
                 <release>17</release>
                 <parameters>true</parameters>
                 <compilerArgs>
                     <arg>-Xlint:all</arg>
                     <arg>-Xlint:-deprecation</arg>
                     <arg>-Werror</arg>
                 </compilerArgs>
             <configuration>
    </plugin>
   ```
   It seems the most straightforward  but it doesn't compile and other 
combinations with `showDeprecation`.
   
   Did I miss something obvious or there is no way to archive such behaviour?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@maven.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to