diff --git a/jvm/native/osx-x86_64/pom.xml b/jvm/native/osx-x86_64/pom.xml
index 3f76bb877d0b..e035a76a5647 100644
--- a/jvm/native/osx-x86_64/pom.xml
+++ b/jvm/native/osx-x86_64/pom.xml
@@ -120,7 +120,7 @@ under the License.
-I../../../include
-I${JAVA_HOME}/include
- -I${JAVA_HOME}/include/linux
+ -I${JAVA_HOME}/include/darwin
${cflags}
diff --git a/jvm/pom.xml b/jvm/pom.xml
index 1aeaa0e57921..a7ac6d90da98 100644
--- a/jvm/pom.xml
+++ b/jvm/pom.xml
@@ -172,7 +172,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 2.9.1
+ 3.5.0
attach-javadocs