Skip to content

Commit 77fd35f

Browse files
inidonawing328
authored andcommitted
Issue 5542, always generate pom and readme (#7977)
* Issue 5542, generate pom.xml with separate parameter. InterfaceOnly=true for not generating pom.xml not works in every situation. * Issue 5542, generate pom.xml with separate parameter. InterfaceOnly=true for not generating pom.xml not works in every situation. * Issue #5542 Always generate pom.xml and README.md
1 parent 9a6a265 commit 77fd35f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/swagger-codegen/src/main/java/io/swagger/codegen/languages/SpringCodegen.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,10 @@ public void processOpts() {
217217
}
218218
}
219219

220+
supportingFiles.add(new SupportingFile("pom.mustache", "", "pom.xml"));
221+
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
222+
220223
if (!this.interfaceOnly) {
221-
supportingFiles.add(new SupportingFile("pom.mustache", "", "pom.xml"));
222-
supportingFiles.add(new SupportingFile("README.mustache", "", "README.md"));
223224

224225
if (library.equals(DEFAULT_LIBRARY)) {
225226
supportingFiles.add(new SupportingFile("homeController.mustache",

0 commit comments

Comments
 (0)