diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/pom.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/pom.mustache
index 5f64837026..d31376757b 100644
--- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/pom.mustache
@@ -154,12 +154,20 @@
${jackson-jaxrs-version}
compile
+{{#java8}}
- com.fasterxml.jackson.datatype
- jackson-datatype-joda
- ${jackson-jaxrs-version}
- compile
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-jaxrs-version}
+{{/java8}}
+{{^java8}}
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-joda
+ ${jackson-jaxrs-version}
+
+{{/java8}}
{{#useBeanValidationFeature}}
org.hibernate
diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/server/pom.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/server/pom.mustache
index 1ea1f98434..e75e19c0c4 100644
--- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/server/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/cxf/server/pom.mustache
@@ -169,12 +169,20 @@
${jackson-jaxrs-version}
compile
+{{#java8}}
- com.fasterxml.jackson.datatype
- jackson-datatype-joda
- ${jackson-jaxrs-version}
- compile
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-jaxrs-version}
+{{/java8}}
+{{^java8}}
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-joda
+ ${jackson-jaxrs-version}
+
+{{/java8}}
{{#generateSpringApplication}}
diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
index 817053d9f8..7ab35a399c 100644
--- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
@@ -133,11 +133,20 @@
jersey-media-multipart
${jersey2-version}
+ {{#java8}}
- com.fasterxml.jackson.datatype
- jackson-datatype-joda
- ${jackson-version}
+ com.fasterxml.jackson.datatype
+ jackson-datatype-jsr310
+ ${jackson-version}
+ {{/java8}}
+ {{^java8}}
+
+ com.fasterxml.jackson.datatype
+ jackson-datatype-joda
+ ${jackson-version}
+
+ {{/java8}}
com.fasterxml.jackson.jaxrs
jackson-jaxrs-json-provider