diff --git a/java/c/pom.xml b/java/c/pom.xml index 28c44284d3e4b..fe57bd2ea0ec5 100644 --- a/java/c/pom.xml +++ b/java/c/pom.xml @@ -95,34 +95,10 @@ under the License. org.apache.maven.plugins maven-compiler-plugin - - true - ${minimalJavaBuildVersion} - ${minimalJavaBuildVersion} - UTF-8 + - -XDcompilePolicy=simple - -Xplugin:ErrorProne -XepAllErrorsAsWarnings - -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED -Werror - - - com.google.errorprone - error_prone_core - ${error_prone_core.version} - - -