From 40c30dd2f11b520cd141ccb8f79ebeef56c62d6a Mon Sep 17 00:00:00 2001 From: davidbilge Date: Sun, 25 Mar 2018 16:51:40 +0200 Subject: [PATCH] Fix inputSpec for multi module builds (#7883) Prefix path to `inputSpec` with maven's `${project.basedir}`. The codegen-maven-plugin will look inside the current working directory so whether a relative path works or not is depending on where the maven build is invoked from. Using `${project.basedir}` makes the path absolute. --- modules/swagger-codegen-maven-plugin/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/swagger-codegen-maven-plugin/README.md b/modules/swagger-codegen-maven-plugin/README.md index a357057c746..6a155604cd6 100644 --- a/modules/swagger-codegen-maven-plugin/README.md +++ b/modules/swagger-codegen-maven-plugin/README.md @@ -18,7 +18,7 @@ Add to your `build->plugins` section (default phase is `generate-sources` phase) generate - src/main/resources/api.yaml + ${project.basedir}/src/main/resources/api.yaml java src/gen/java/main @@ -76,7 +76,7 @@ Specifying a custom generator is a bit different. It doesn't support the classpa generate - src/main/resources/yaml/yamlfilename.yaml + ${project.basedir}/src/main/resources/yaml/yamlfilename.yaml com.my.package.for.GeneratorLanguage myTemplateDir