diff --git a/pom.xml b/pom.xml
index ef51b6e1583..6ff240e40b1 100644
--- a/pom.xml
+++ b/pom.xml
@@ -170,11 +170,29 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.3.1
+ 3.11.1
- 8
+ 17
true
Error Prone ${project.version} API
+ src/main/java:${project.build.directory}/generated-sources/protobuf/java
+
+ --add-exports=java.base/jdk.internal.javac=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
+ --add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
+
+
+ **/module-info.java
+
diff --git a/type_annotations/pom.xml b/type_annotations/pom.xml
index 365123af188..33492170e44 100644
--- a/type_annotations/pom.xml
+++ b/type_annotations/pom.xml
@@ -50,8 +50,8 @@
org.apache.maven.plugins
maven-compiler-plugin
- 8
- 8
+ 17
+ 17