I would like my build to break if any compiler warnings occur, so I enabled -Werror
. At some point later on I decided to use Java 9 HttpClient which is an incubating module. Unfortunately, I now get the following compiler warning:
using incubating module(s): jdk.incubator.httpclient
Is there a way to use incubating modules alongside -Werror
without breaking the build? Ideally, I'd like to suppress this warning showing up altogether.
I am using Maven to build my project, so ideally answers should provide an example of how to get incubation modules to compile as part of a Maven project.