diff --git a/modules/swagger-codegen/src/main/resources/Java/pom.mustache b/modules/swagger-codegen/src/main/resources/Java/pom.mustache
index 95712934525..99a12b6391d 100644
--- a/modules/swagger-codegen/src/main/resources/Java/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/Java/pom.mustache
@@ -107,6 +107,11 @@
{{/java8}}
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+
diff --git a/samples/client/petstore/java/jersey1/pom.xml b/samples/client/petstore/java/jersey1/pom.xml
index c4cb68e99f4..e40088ac44c 100644
--- a/samples/client/petstore/java/jersey1/pom.xml
+++ b/samples/client/petstore/java/jersey1/pom.xml
@@ -101,6 +101,11 @@
1.7
+
+ org.apache.maven.plugins
+ maven-javadoc-plugin
+ 2.10.4
+