Installing BOM before running Java test
diff --git a/tests.sh b/tests.sh
index a5919c1..7715759 100755
--- a/tests.sh
+++ b/tests.sh
@@ -213,6 +213,9 @@
 build_java_with_conformance_tests() {
   # Java build needs `protoc`.
   internal_build_cpp
+  # This local installation avoids the problem caused by a new version not yet in Maven Central
+  cd java/bom && $MVN install
+  cd ../..
   cd java && $MVN test && $MVN install
   cd util && $MVN package assembly:single
   cd ../..