我想使用 swagger-codegen-maven 插件 3.0.16 为我的 API 生成 JAX-RS 服务器存根,但我想使用我自己的服务实现类,而不是生成的那个。在我的配置中,我指定了配置选项 interfaceOnly = true 但它不起作用
我当前的 Maven 配置:
<plugin>
<groupId>io.swagger.codegen.v3</groupId>
<artifactId>swagger-codegen-maven-plugin</artifactId>
<version>3.0.16</version>
<executions>
<execution>
<goals>
<goal>generate</goal>
</goals>
<configuration>
<inputSpec>${project.basedir}/src/main/resources/META-INF/swagger.yaml</inputSpec>
<language>jaxrs-resteasy-eap</language>
<output>${project.basedir}</output>
<configOptions>
<sourceFolder>src/main/java</sourceFolder>
<apiPackage>be.xxx.zzzz.api</apiPackage>
<modelPackage>be.xxx.zzzz.representations</modelPackage>
<serializableModel>true</serializableModel>
<useBeanValidation>true</useBeanValidation>
<java8>false</java8>
<dateLibrary>java8</dateLibrary>
<interfaceOnly>true</interfaceOnly>
<returnResponse>true</returnResponse>
<generateAdditionalProperties>true</generateAdditionalProperties>
<customPatchAnnotation>be.xxx.rest.commons.annotations.PATCH</customPatchAnnotation>
</configOptions>
<generateSupportingFiles>false</generateSupportingFiles>
</configuration>
</execution>
</executions>
</plugin>