I am trying to use the HttpClient from incubator in Java 9 maven project. I am not getting any Compilation issue. The project builds successfully. But when I try to run the
If the accepted answer still did not work for you then..
The missing secret is to also include the maven-surefire-plugin
with the same compiler arg.
org.apache.maven.plugins
maven-compiler-plugin
3.7.0
10
10
--add-modules=jdk.incubator.httpclient
org.apache.maven.plugins
maven-surefire-plugin
2.21.0
--add-modules=jdk.incubator.httpclient