diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/libraries/jersey1/pom.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/libraries/jersey1/pom.mustache
index c66f8823c4..d21444dda2 100644
--- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/libraries/jersey1/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/libraries/jersey1/pom.mustache
@@ -36,6 +36,7 @@
target/${project.artifactId}-${project.version}
8079
stopit
+ 10
{{serverPort}}
60000
diff --git a/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache b/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
index 0de50ccd1f..d764934cf7 100644
--- a/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
+++ b/modules/swagger-codegen/src/main/resources/JavaJaxRS/pom.mustache
@@ -36,6 +36,7 @@
target/${project.artifactId}-${project.version}
8079
stopit
+ 10
{{serverPort}}
60000
diff --git a/samples/server/petstore/jaxrs/jersey1/pom.xml b/samples/server/petstore/jaxrs/jersey1/pom.xml
index 59fe2067e6..c8dd08376a 100644
--- a/samples/server/petstore/jaxrs/jersey1/pom.xml
+++ b/samples/server/petstore/jaxrs/jersey1/pom.xml
@@ -36,6 +36,7 @@
target/${project.artifactId}-${project.version}
8079
stopit
+ 10
8080
60000
diff --git a/samples/server/petstore/jaxrs/jersey2/pom.xml b/samples/server/petstore/jaxrs/jersey2/pom.xml
index 9574bbfbb0..bc2bc84665 100644
--- a/samples/server/petstore/jaxrs/jersey2/pom.xml
+++ b/samples/server/petstore/jaxrs/jersey2/pom.xml
@@ -36,6 +36,7 @@
target/${project.artifactId}-${project.version}
8079
stopit
+ 10
8080
60000