diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom-sb3.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom-sb3.mustache
index 1024ea0d608..f1b251a815d 100644
--- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom-sb3.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom-sb3.mustache
@@ -57,9 +57,8 @@
src/main/java
- {{^interfaceOnly}}
-
+ {{^interfaceOnly}}
org.springframework.boot
spring-boot-maven-plugin
@@ -75,7 +74,19 @@
{{/lombok}}
-
+ {{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
{{#apiFirst}}
org.openapitools
@@ -109,7 +120,6 @@
{{/apiFirst}}
- {{/interfaceOnly}}
diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache
index 26e4aad21fa..b9d84091bc9 100644
--- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-boot/pom.mustache
@@ -50,9 +50,8 @@
{{/parentOverridden}}
src/main/java
- {{^interfaceOnly}}
-
+ {{^interfaceOnly}}
org.springframework.boot
spring-boot-maven-plugin
@@ -68,7 +67,19 @@
{{/lombok}}
-
+ {{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
{{#apiFirst}}
org.openapitools
@@ -102,7 +113,6 @@
{{/apiFirst}}
- {{/interfaceOnly}}
diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom-sb3.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom-sb3.mustache
index 65bf80bf1c0..54c4735c89f 100644
--- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom-sb3.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom-sb3.mustache
@@ -45,6 +45,20 @@
src/main/java
+ {{#interfaceOnly}}
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+ {{/interfaceOnly}}
{{^parentOverridden}}
diff --git a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache
index 41bbf5ef1b2..c1a8d9a96e4 100644
--- a/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/JavaSpring/libraries/spring-cloud/pom.mustache
@@ -44,6 +44,20 @@
{{/parentOverridden}}
src/main/java
+ {{#interfaceOnly}}
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+ {{/interfaceOnly}}
{{^parentOverridden}}
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom-sb3.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom-sb3.mustache
index 1b8db5da1c7..a933ddd5486 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom-sb3.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom-sb3.mustache
@@ -52,6 +52,18 @@
{{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
index 3a385815ffd..190b3e46ec9 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-boot/pom.mustache
@@ -39,6 +39,18 @@
{{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom-sb3.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom-sb3.mustache
index cb411401236..02b5bccf5bb 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom-sb3.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom-sb3.mustache
@@ -69,6 +69,18 @@
{{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom.mustache b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom.mustache
index 1fddfdbb51e..e8d760b9520 100644
--- a/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom.mustache
+++ b/modules/openapi-generator/src/main/resources/kotlin-spring/libraries/spring-cloud/pom.mustache
@@ -49,6 +49,18 @@
{{/interfaceOnly}}
+ {{#interfaceOnly}}
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+ {{/interfaceOnly}}
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/client/petstore/spring-cloud-auth/pom.xml b/samples/client/petstore/spring-cloud-auth/pom.xml
index e9ecbf6d8a2..7bdec228001 100644
--- a/samples/client/petstore/spring-cloud-auth/pom.xml
+++ b/samples/client/petstore/spring-cloud-auth/pom.xml
@@ -19,6 +19,7 @@
src/main/java
+
diff --git a/samples/client/petstore/spring-cloud-date-time/pom.xml b/samples/client/petstore/spring-cloud-date-time/pom.xml
index ac2aa08552f..990f6fd0337 100644
--- a/samples/client/petstore/spring-cloud-date-time/pom.xml
+++ b/samples/client/petstore/spring-cloud-date-time/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/client/petstore/spring-cloud-deprecated/pom.xml b/samples/client/petstore/spring-cloud-deprecated/pom.xml
index 77062fc625b..617d47fa5fd 100644
--- a/samples/client/petstore/spring-cloud-deprecated/pom.xml
+++ b/samples/client/petstore/spring-cloud-deprecated/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/client/petstore/spring-cloud-feign-without-url/pom.xml b/samples/client/petstore/spring-cloud-feign-without-url/pom.xml
index e77a0f03f45..09928074378 100644
--- a/samples/client/petstore/spring-cloud-feign-without-url/pom.xml
+++ b/samples/client/petstore/spring-cloud-feign-without-url/pom.xml
@@ -20,6 +20,7 @@
src/main/java
+
diff --git a/samples/client/petstore/spring-cloud-tags/pom.xml b/samples/client/petstore/spring-cloud-tags/pom.xml
index ae4cb2017aa..75beaa8d7db 100644
--- a/samples/client/petstore/spring-cloud-tags/pom.xml
+++ b/samples/client/petstore/spring-cloud-tags/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/client/petstore/spring-cloud/pom.xml b/samples/client/petstore/spring-cloud/pom.xml
index e77a0f03f45..09928074378 100644
--- a/samples/client/petstore/spring-cloud/pom.xml
+++ b/samples/client/petstore/spring-cloud/pom.xml
@@ -20,6 +20,7 @@
src/main/java
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
index 073730d7a47..77ce3bbb232 100644
--- a/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-3-with-optional/pom.xml
@@ -28,6 +28,7 @@
src/main/java
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-3/pom.xml b/samples/openapi3/client/petstore/spring-cloud-3/pom.xml
index 7d50eefeaab..2f4e3b9ce40 100644
--- a/samples/openapi3/client/petstore/spring-cloud-3/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-3/pom.xml
@@ -29,6 +29,7 @@
src/main/java
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-async/pom.xml b/samples/openapi3/client/petstore/spring-cloud-async/pom.xml
index 27bf283c6f4..e6d14260596 100644
--- a/samples/openapi3/client/petstore/spring-cloud-async/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-async/pom.xml
@@ -20,6 +20,7 @@
src/main/java
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-date-time/pom.xml b/samples/openapi3/client/petstore/spring-cloud-date-time/pom.xml
index 8eb161832d0..a309a8fb24f 100644
--- a/samples/openapi3/client/petstore/spring-cloud-date-time/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-date-time/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-http-basic/pom.xml b/samples/openapi3/client/petstore/spring-cloud-http-basic/pom.xml
index 6c63ac79449..b2208fab5c0 100644
--- a/samples/openapi3/client/petstore/spring-cloud-http-basic/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-http-basic/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/pom.xml b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/pom.xml
index d657a9e588f..d0967203448 100644
--- a/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-oas3-fakeapi/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/pom.xml b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/pom.xml
index 302f2b06332..7a16989fac3 100644
--- a/samples/openapi3/client/petstore/spring-cloud-spring-pageable/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud-spring-pageable/pom.xml
@@ -20,6 +20,7 @@
src/main/java
+
diff --git a/samples/openapi3/client/petstore/spring-cloud/pom.xml b/samples/openapi3/client/petstore/spring-cloud/pom.xml
index d657a9e588f..d0967203448 100644
--- a/samples/openapi3/client/petstore/spring-cloud/pom.xml
+++ b/samples/openapi3/client/petstore/spring-cloud/pom.xml
@@ -20,6 +20,20 @@
src/main/java
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/pom.xml b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/pom.xml
index 36b67834100..9fbce051365 100644
--- a/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/pom.xml
+++ b/samples/openapi3/client/petstore/spring-stubs-skip-default-interface/pom.xml
@@ -21,6 +21,21 @@
src/main/java
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/client/petstore/spring-stubs/pom.xml b/samples/openapi3/client/petstore/spring-stubs/pom.xml
index 36b67834100..9fbce051365 100644
--- a/samples/openapi3/client/petstore/spring-stubs/pom.xml
+++ b/samples/openapi3/client/petstore/spring-stubs/pom.xml
@@ -21,6 +21,21 @@
src/main/java
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/openapi3/server/petstore/spring-boot-oneof/pom.xml b/samples/openapi3/server/petstore/spring-boot-oneof/pom.xml
index 7113913e6ca..f492b83a969 100644
--- a/samples/openapi3/server/petstore/spring-boot-oneof/pom.xml
+++ b/samples/openapi3/server/petstore/spring-boot-oneof/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/openapi3/server/petstore/spring-boot-springdoc/pom.xml b/samples/openapi3/server/petstore/spring-boot-springdoc/pom.xml
index 230983b59c8..67c48412e17 100644
--- a/samples/openapi3/server/petstore/spring-boot-springdoc/pom.xml
+++ b/samples/openapi3/server/petstore/spring-boot-springdoc/pom.xml
@@ -27,6 +27,7 @@
+
diff --git a/samples/openapi3/server/petstore/springboot-3/pom.xml b/samples/openapi3/server/petstore/springboot-3/pom.xml
index 54c3603cbc9..3d20c6390a3 100644
--- a/samples/openapi3/server/petstore/springboot-3/pom.xml
+++ b/samples/openapi3/server/petstore/springboot-3/pom.xml
@@ -43,6 +43,7 @@
+
diff --git a/samples/openapi3/server/petstore/springboot-delegate/pom.xml b/samples/openapi3/server/petstore/springboot-delegate/pom.xml
index 67d552b723d..fb60a61c9b9 100644
--- a/samples/openapi3/server/petstore/springboot-delegate/pom.xml
+++ b/samples/openapi3/server/petstore/springboot-delegate/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/openapi3/server/petstore/springboot-implicitHeaders/pom.xml b/samples/openapi3/server/petstore/springboot-implicitHeaders/pom.xml
index 5b071433c60..d7299a0482d 100644
--- a/samples/openapi3/server/petstore/springboot-implicitHeaders/pom.xml
+++ b/samples/openapi3/server/petstore/springboot-implicitHeaders/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/openapi3/server/petstore/springboot-source/pom.xml b/samples/openapi3/server/petstore/springboot-source/pom.xml
index 3f54f4adede..53d9d81b327 100644
--- a/samples/openapi3/server/petstore/springboot-source/pom.xml
+++ b/samples/openapi3/server/petstore/springboot-source/pom.xml
@@ -27,6 +27,7 @@
+
diff --git a/samples/openapi3/server/petstore/springboot/pom.xml b/samples/openapi3/server/petstore/springboot/pom.xml
index d60cccd3ff1..0919bc8dbd9 100644
--- a/samples/openapi3/server/petstore/springboot/pom.xml
+++ b/samples/openapi3/server/petstore/springboot/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/kotlin-spring-cloud/pom.xml b/samples/server/petstore/kotlin-spring-cloud/pom.xml
index 654de03c5e7..ececa13784d 100644
--- a/samples/server/petstore/kotlin-spring-cloud/pom.xml
+++ b/samples/server/petstore/kotlin-spring-cloud/pom.xml
@@ -32,6 +32,18 @@
${project.basedir}/src/main/kotlin
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-spring-default/pom.xml b/samples/server/petstore/kotlin-spring-default/pom.xml
index 8b51baf52f5..c7589ea91c5 100644
--- a/samples/server/petstore/kotlin-spring-default/pom.xml
+++ b/samples/server/petstore/kotlin-spring-default/pom.xml
@@ -34,6 +34,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-3/pom.xml b/samples/server/petstore/kotlin-springboot-3/pom.xml
index 9d09dc29faf..3c52a401bf8 100644
--- a/samples/server/petstore/kotlin-springboot-3/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-3/pom.xml
@@ -46,6 +46,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-bigdecimal-default/pom.xml b/samples/server/petstore/kotlin-springboot-bigdecimal-default/pom.xml
index 8b51baf52f5..c7589ea91c5 100644
--- a/samples/server/petstore/kotlin-springboot-bigdecimal-default/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-bigdecimal-default/pom.xml
@@ -34,6 +34,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/pom.xml b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/pom.xml
index 77ec6964518..b041f6c83f6 100644
--- a/samples/server/petstore/kotlin-springboot-delegate-nodefaults/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-delegate-nodefaults/pom.xml
@@ -47,6 +47,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-delegate/pom.xml b/samples/server/petstore/kotlin-springboot-delegate/pom.xml
index 8b51baf52f5..c7589ea91c5 100644
--- a/samples/server/petstore/kotlin-springboot-delegate/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-delegate/pom.xml
@@ -34,6 +34,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-integer-enum/pom.xml b/samples/server/petstore/kotlin-springboot-integer-enum/pom.xml
index 975b084d5a3..77a9c03660d 100644
--- a/samples/server/petstore/kotlin-springboot-integer-enum/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-integer-enum/pom.xml
@@ -35,6 +35,18 @@
${project.basedir}/src/main/kotlin
${project.basedir}/src/test/kotlin
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-modelMutable/pom.xml b/samples/server/petstore/kotlin-springboot-modelMutable/pom.xml
index 8b51baf52f5..c7589ea91c5 100644
--- a/samples/server/petstore/kotlin-springboot-modelMutable/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-modelMutable/pom.xml
@@ -34,6 +34,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-multipart-request-model/pom.xml b/samples/server/petstore/kotlin-springboot-multipart-request-model/pom.xml
index 8b51baf52f5..c7589ea91c5 100644
--- a/samples/server/petstore/kotlin-springboot-multipart-request-model/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-multipart-request-model/pom.xml
@@ -34,6 +34,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-reactive-without-flow/pom.xml b/samples/server/petstore/kotlin-springboot-reactive-without-flow/pom.xml
index f555dc75a07..fc671acde31 100644
--- a/samples/server/petstore/kotlin-springboot-reactive-without-flow/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-reactive-without-flow/pom.xml
@@ -35,6 +35,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-reactive/pom.xml b/samples/server/petstore/kotlin-springboot-reactive/pom.xml
index f555dc75a07..fc671acde31 100644
--- a/samples/server/petstore/kotlin-springboot-reactive/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-reactive/pom.xml
@@ -35,6 +35,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-request-cookie/pom.xml b/samples/server/petstore/kotlin-springboot-request-cookie/pom.xml
index d3dd81b25a8..fb11e4866de 100644
--- a/samples/server/petstore/kotlin-springboot-request-cookie/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-request-cookie/pom.xml
@@ -36,6 +36,18 @@
${project.basedir}/src/main/kotlin
${project.basedir}/src/test/kotlin
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-source-swagger1/pom.xml b/samples/server/petstore/kotlin-springboot-source-swagger1/pom.xml
index 0b4b2ed3ab8..f64e391e05d 100644
--- a/samples/server/petstore/kotlin-springboot-source-swagger1/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-source-swagger1/pom.xml
@@ -35,6 +35,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-source-swagger2/pom.xml b/samples/server/petstore/kotlin-springboot-source-swagger2/pom.xml
index 3e48c18fac3..4e934ad5115 100644
--- a/samples/server/petstore/kotlin-springboot-source-swagger2/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-source-swagger2/pom.xml
@@ -35,6 +35,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot-springfox/pom.xml b/samples/server/petstore/kotlin-springboot-springfox/pom.xml
index df16e753a7a..cfdc5e8c6a4 100644
--- a/samples/server/petstore/kotlin-springboot-springfox/pom.xml
+++ b/samples/server/petstore/kotlin-springboot-springfox/pom.xml
@@ -35,6 +35,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/kotlin-springboot/pom.xml b/samples/server/petstore/kotlin-springboot/pom.xml
index f4d469c3a09..dfd0d3a9f6b 100644
--- a/samples/server/petstore/kotlin-springboot/pom.xml
+++ b/samples/server/petstore/kotlin-springboot/pom.xml
@@ -33,6 +33,7 @@
+
kotlin-maven-plugin
org.jetbrains.kotlin
diff --git a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/pom.xml b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/pom.xml
index ed21f4db550..a871967c2bb 100644
--- a/samples/server/petstore/spring-boot-defaultInterface-unhandledException/pom.xml
+++ b/samples/server/petstore/spring-boot-defaultInterface-unhandledException/pom.xml
@@ -21,6 +21,21 @@
src/main/java
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/server/petstore/spring-boot-nullable-set/pom.xml b/samples/server/petstore/spring-boot-nullable-set/pom.xml
index f7ab953bed9..0d5996f775d 100644
--- a/samples/server/petstore/spring-boot-nullable-set/pom.xml
+++ b/samples/server/petstore/spring-boot-nullable-set/pom.xml
@@ -21,6 +21,21 @@
src/main/java
+
+
+
+ org.apache.maven.plugins
+ maven-source-plugin
+
+
+ attach-sources
+
+ jar
+
+
+
+
+
diff --git a/samples/server/petstore/springboot-beanvalidation-no-nullable/pom.xml b/samples/server/petstore/springboot-beanvalidation-no-nullable/pom.xml
index 6281f810cd3..bdf380a8706 100644
--- a/samples/server/petstore/springboot-beanvalidation-no-nullable/pom.xml
+++ b/samples/server/petstore/springboot-beanvalidation-no-nullable/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-beanvalidation/pom.xml b/samples/server/petstore/springboot-beanvalidation/pom.xml
index f48622e7ec8..301dfba8efd 100644
--- a/samples/server/petstore/springboot-beanvalidation/pom.xml
+++ b/samples/server/petstore/springboot-beanvalidation/pom.xml
@@ -27,6 +27,7 @@
+
diff --git a/samples/server/petstore/springboot-delegate-j8/pom.xml b/samples/server/petstore/springboot-delegate-j8/pom.xml
index 92bfa2cb5cb..692bbb2b9b7 100644
--- a/samples/server/petstore/springboot-delegate-j8/pom.xml
+++ b/samples/server/petstore/springboot-delegate-j8/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-delegate-no-response-entity/pom.xml b/samples/server/petstore/springboot-delegate-no-response-entity/pom.xml
index 461339353f4..cdbb8636eeb 100644
--- a/samples/server/petstore/springboot-delegate-no-response-entity/pom.xml
+++ b/samples/server/petstore/springboot-delegate-no-response-entity/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-delegate/pom.xml b/samples/server/petstore/springboot-delegate/pom.xml
index 726f5f2dae8..38d2b4da909 100644
--- a/samples/server/petstore/springboot-delegate/pom.xml
+++ b/samples/server/petstore/springboot-delegate/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-file-delegate-optional/pom.xml b/samples/server/petstore/springboot-file-delegate-optional/pom.xml
index 9ac3410785c..41c63ba6811 100644
--- a/samples/server/petstore/springboot-file-delegate-optional/pom.xml
+++ b/samples/server/petstore/springboot-file-delegate-optional/pom.xml
@@ -43,6 +43,7 @@
+
diff --git a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/pom.xml b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/pom.xml
index 68770011586..5e27d9762d0 100644
--- a/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/pom.xml
+++ b/samples/server/petstore/springboot-implicitHeaders-annotationLibrary/pom.xml
@@ -26,6 +26,7 @@
+
diff --git a/samples/server/petstore/springboot-implicitHeaders/pom.xml b/samples/server/petstore/springboot-implicitHeaders/pom.xml
index d1c4c8d6452..954d4535a06 100644
--- a/samples/server/petstore/springboot-implicitHeaders/pom.xml
+++ b/samples/server/petstore/springboot-implicitHeaders/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-lombok-data/pom.xml b/samples/server/petstore/springboot-lombok-data/pom.xml
index 16d607dab7b..0cdbf58237d 100644
--- a/samples/server/petstore/springboot-lombok-data/pom.xml
+++ b/samples/server/petstore/springboot-lombok-data/pom.xml
@@ -34,6 +34,7 @@
+
diff --git a/samples/server/petstore/springboot-lombok-tostring/pom.xml b/samples/server/petstore/springboot-lombok-tostring/pom.xml
index 0b079a60154..d2714a2b793 100644
--- a/samples/server/petstore/springboot-lombok-tostring/pom.xml
+++ b/samples/server/petstore/springboot-lombok-tostring/pom.xml
@@ -49,6 +49,7 @@
+
diff --git a/samples/server/petstore/springboot-reactive-noResponseEntity/pom.xml b/samples/server/petstore/springboot-reactive-noResponseEntity/pom.xml
index d445bc501aa..fedfec8d382 100644
--- a/samples/server/petstore/springboot-reactive-noResponseEntity/pom.xml
+++ b/samples/server/petstore/springboot-reactive-noResponseEntity/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-reactive/pom.xml b/samples/server/petstore/springboot-reactive/pom.xml
index 586a1099ee6..c2864360a1e 100644
--- a/samples/server/petstore/springboot-reactive/pom.xml
+++ b/samples/server/petstore/springboot-reactive/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/pom.xml b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/pom.xml
index 814077ac4e1..2fe45d72699 100644
--- a/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/pom.xml
+++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern-without-j8/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-spring-pageable-delegatePattern/pom.xml b/samples/server/petstore/springboot-spring-pageable-delegatePattern/pom.xml
index 6623444ffa3..e0fd8e70efa 100644
--- a/samples/server/petstore/springboot-spring-pageable-delegatePattern/pom.xml
+++ b/samples/server/petstore/springboot-spring-pageable-delegatePattern/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-spring-pageable-without-j8/pom.xml b/samples/server/petstore/springboot-spring-pageable-without-j8/pom.xml
index b518d1dee9f..9986c18906a 100644
--- a/samples/server/petstore/springboot-spring-pageable-without-j8/pom.xml
+++ b/samples/server/petstore/springboot-spring-pageable-without-j8/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-spring-pageable/pom.xml b/samples/server/petstore/springboot-spring-pageable/pom.xml
index fed9f1d12e1..585c369fb58 100644
--- a/samples/server/petstore/springboot-spring-pageable/pom.xml
+++ b/samples/server/petstore/springboot-spring-pageable/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-spring-provide-args/pom.xml b/samples/server/petstore/springboot-spring-provide-args/pom.xml
index 4057470ce3f..ed49ebfecf0 100644
--- a/samples/server/petstore/springboot-spring-provide-args/pom.xml
+++ b/samples/server/petstore/springboot-spring-provide-args/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-useoptional/pom.xml b/samples/server/petstore/springboot-useoptional/pom.xml
index f4633149324..6b7fd27c618 100644
--- a/samples/server/petstore/springboot-useoptional/pom.xml
+++ b/samples/server/petstore/springboot-useoptional/pom.xml
@@ -28,6 +28,7 @@
+
diff --git a/samples/server/petstore/springboot-virtualan/pom.xml b/samples/server/petstore/springboot-virtualan/pom.xml
index 36bdd555a28..214efbb9228 100644
--- a/samples/server/petstore/springboot-virtualan/pom.xml
+++ b/samples/server/petstore/springboot-virtualan/pom.xml
@@ -29,6 +29,7 @@
+
diff --git a/samples/server/petstore/springboot/pom.xml b/samples/server/petstore/springboot/pom.xml
index dcce5e10d79..187c7b784f3 100644
--- a/samples/server/petstore/springboot/pom.xml
+++ b/samples/server/petstore/springboot/pom.xml
@@ -28,6 +28,7 @@
+