diff --git a/android/pom.xml b/android/pom.xml
index f040407448f3..f9c85505e610 100644
--- a/android/pom.xml
+++ b/android/pom.xml
@@ -190,6 +190,16 @@
true
+
+ --no-module-directories
diff --git a/pom.xml b/pom.xml
index 87dae7e9b713..a0762f8c96da 100644
--- a/pom.xml
+++ b/pom.xml
@@ -184,6 +184,16 @@
true
+
+ --no-module-directories