forked from loafle/openapi-generator-original
In case the lifecycle phase is "generate-test-sources" the default output directory is: "${project.build.directory}/generated-test-sources/openapi" In case of any other lifecycle phase the default output directory is: "${project.build.directory}/generated-sources/openapi" Also use the "src/main/java" as the only default source folder in the output path for both cases when addCompileSourceRoot == true and when addTestCompileSourceRoot == true. In case you really need "src/test/java" it still can be set in the configOptions manually: <configOptions> <sourceFolder>src/test/java</sourceFolder> </configOptions>