Java OpenAPI Maven生成器生成不存在的'@选项映射';Spring Boot的注释

Java OpenAPI Maven生成器生成不存在的'@选项映射';Spring Boot的注释,java,spring-boot,springfox,openapi-generator,Java,Spring Boot,Springfox,Openapi Generator,使用“openapi生成器maven插件”基于jar生成客户端时 以下是我的重要pom.xml部分: <dependency> <groupId>org.camunda.bpm</groupId> <artifactId>camunda-engine-rest-openapi</artifactId> <version>${camunda.versio

使用“openapi生成器maven插件”基于jar生成客户端时

以下是我的重要pom.xml部分:

 <dependency>
            <groupId>org.camunda.bpm</groupId>
            <artifactId>camunda-engine-rest-openapi</artifactId>
            <version>${camunda.version}</version>
        </dependency>

        <dependency>
            <groupId>io.springfox</groupId>
            <artifactId>springfox-boot-starter</artifactId>
            <version>3.0.0</version>
        </dependency>

        <dependency>
            <groupId>org.openapitools</groupId>
            <artifactId>jackson-databind-nullable</artifactId>
            <version>0.2.1</version>
        </dependency>

<repositories>
        <repository>
            <id>camunda-bpm-nexus</id>
            <name>camunda-bpm-nexus</name>
            <url>https://app.camunda.com/nexus/content/groups/public</url>
        </repository>
    </repositories>

    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-dependency-plugin</artifactId>
                <version>3.1.2</version>
                <executions>
                    <execution>
                        <id>unpack</id>
                        <phase>generate-sources</phase>
                        <goals>
                            <goal>unpack</goal>
                        </goals>
                        <configuration>
                            <artifactItems>
                                <artifactItem>
                                    <groupId>org.camunda.bpm</groupId>
                                    <artifactId>camunda-engine-rest-openapi</artifactId>
                                    <version>${camunda.version}</version>
                                    <outputDirectory>${basedir}/target/openapi</outputDirectory>
                                    <includes>openapi.json</includes>
                                </artifactItem>
                            </artifactItems>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
            <plugin>
                <groupId>org.openapitools</groupId>
                <artifactId>openapi-generator-maven-plugin</artifactId>
                <version>5.1.1</version>
                <executions>
                    <execution>
                        <goals>
                            <goal>generate</goal>
                        </goals>
                        <configuration>
                            <inputSpec>${project.basedir}/target/openapi/openapi.json</inputSpec>
                            <skipIfSpecIsUnchanged>true</skipIfSpecIsUnchanged>
                            <generatorName>spring</generatorName>
                            <configOptions>
                                <dateLibrary>java8</dateLibrary>
                                <java8>true</java8>
                                <library>spring-boot</library>
                                <interfaceOnly>true</interfaceOnly>
                            </configOptions>
                            <output>${project.build.directory}/camunda-openapi-client</output>
                        </configuration>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>

org.camunda.bpm
卡蒙达发动机支架openapi
${camunda.version}
伊奥·斯普林福克斯
springfox启动程序
3.0.0
org.openapitools
jackson数据绑定可为空
0.2.1
卡蒙达bpm关系
卡蒙达bpm关系
https://app.camunda.com/nexus/content/groups/public
org.apache.maven.plugins
maven依赖插件
3.1.2
打开
生成源
打开
org.camunda.bpm
卡蒙达发动机支架openapi
${camunda.version}
${basedir}/target/openapi
openapi.json
org.openapitools
openapi生成器maven插件
5.1.1
生成
${project.basedir}/target/openapi/openapi.json
真的
春天
爪哇8
真的
弹簧靴
真的
${project.build.directory}/camunda openapi客户端
出于某种原因,生成器创建了一个在任何地方都不存在的“@OptionsMapping”注释。例如:

@ApiOperation(value = "Tenant Resource Options", nickname = "availableTenantResourceOperations", notes = "The `/tenant` resource supports two custom OPTIONS requests, this one for the resource as such and one for individual tenant instances. The OPTIONS request allows checking for the set of available operations that the currently authenticated user can perform on the `/tenant` resource. If the user can perform an operation or not may depend on various things, including the users authorizations to interact with this resource and the internal configuration of the process engine.", response = ResourceOptionsDto.class, tags={ "Tenant", })
@ApiResponses(value = { 
    @ApiResponse(code = 200, message = "Request successful.", response = ResourceOptionsDto.class) })
@OptionsMapping(
    value = "/tenant",
    produces = { "application/json" }
)
default ResponseEntity<ResourceOptionsDto> availableTenantResourceOperations() {
@ApiOperation(value=“租户资源选项”,昵称=“AvailableNetnantResourceOperations”,注释="“/tenant”资源支持两个自定义选项请求,一个用于资源本身,另一个用于单个租户实例。选项请求允许检查当前经过身份验证的用户可以对“/tenant”资源执行的可用操作集。用户是否可以执行操作可能取决于变量s事物,包括用户与此资源交互的授权以及流程引擎的内部配置。”,response=ResourceOptionsDto.class,tags={“Tenant”,})
@ApiResponses(值={
@ApiResponse(code=200,message=“Request successful.”,response=ResourceOptionsDto.class)})
@选项映射(
value=“/tenant”,
生成={“应用程序/json”}
)
默认响应可用性NantResourceOperations(){