-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
Closed
Labels
Description
I'm running mvn install with the following configuration - but the looks like the is ignored and Template directory always defaults to embedded dir.
Here is the maven plugin section in which the templateDirectory is ignored:
<build>
<plugins>
<plugin>
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>4.1.3</version>
<executions>
<execution>
<id>swagger-generate-server-code</id>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.parent.parent.basedir}/src/main/resources/swagger-spec-pet-store.json</inputSpec>
<templateDirectory>${project.basedir}/src/main/resources</templateDirectory>
<modelPackage>com.computrade.restful.services.model</modelPackage>
<apiPackage>com.computrade.restful.services.server.api</apiPackage>
<invokerPackage>com.computrade.restful.services.server.invoker</invokerPackage>
<configOptions>
<interfaceOnly>true</interfaceOnly>
<java8>true</java8>
<dateLibrary>java8</dateLibrary>
<skipDefaultInterface>true</skipDefaultInterface>
</configOptions>
<configHelp>false</configHelp>
<generatorName>spring</generatorName>
<library>spring-boot</library>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
openapi-generator version
<groupId>org.openapitools</groupId>
<artifactId>openapi-generator-maven-plugin</artifactId>
<version>4.1.3</version>
I tried also earlier from 4.0.0 and above - but still the same.
Related issues/PRs
#3364
I see this issue was closed.
( but it wasn't open on the Maven plugin from the beginning )
Thanks,
Yuval Ishay
Reactions are currently unavailable