diff --git a/java/format/pom.xml b/java/format/pom.xml index 1121930da42d2..f767215b12807 100644 --- a/java/format/pom.xml +++ b/java/format/pom.xml @@ -61,6 +61,15 @@ under the License. + + org.apache.maven.plugins + maven-compiler-plugin + + + -Werror + + + diff --git a/java/format/src/main/java/module-info.java b/java/format/src/main/java/module-info.java index bda779c91afbc..f8d740b726fde 100644 --- a/java/format/src/main/java/module-info.java +++ b/java/format/src/main/java/module-info.java @@ -15,6 +15,8 @@ * limitations under the License. */ +// TODO(https://github.com/apache/arrow/issues/44037): Google hasn't reviewed Flatbuffers fix +@SuppressWarnings({ "requires-automatic", "requires-transitive-automatic" }) module org.apache.arrow.format { exports org.apache.arrow.flatbuf; requires transitive flatbuffers.java;