Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #386
Closed
Open
Issue created Jun 24, 2018 by Administrator@rootContributor

[JAVA] [SPRING] - Error Compiling When generateSupportingFiles=false and configOptions.java8 = true

Created by: brion-fuller

Description

Currently, seeing an issue running mvn clean compile when generateSupportingFiles=false and configOptions.java8 is set to true I will get a ApiUtil not found error.

openapi-generator version

3.0.2

OpenAPI declaration file content or url
<plugin>
        <groupId>org.openapitools</groupId>
        <artifactId>openapi-generator-maven-plugin</artifactId>
        <version>3.0.2</version>
        <executions>
          <execution>
            <goals>
              <goal>generate</goal>
            </goals>
            <configuration>
              <inputSpec>${project.basedir}/api-v1.yaml</inputSpec>
              <generatorName>spring</generatorName>
              <generateSupportingFiles>false</generateSupportingFiles>

              <apiPackage>true</apiPackage>
              <modelPackage>true</modelPackage>
              <apiPackage>com.test.hello.api.v1</apiPackage>
              <modelPackage>com.test.hello.api.v1.model</modelPackage>

              <configOptions>
                <interfaceOnly>true</interfaceOnly>
                <java8>true</java8>
                <sourceFolder>src/gen/java</sourceFolder>
                <dateLibrary>java8</dateLibrary>
                <library>spring-boot</library>
              </configOptions>
            </configuration>
          </execution>
        </executions>
      </plugin>
Command line used for generation

mvn clean compile

Steps to reproduce

Use example app and OpenApi3 pets example Set generateSupportingFiles=false Set configOptions.java8=true run `mvn clean compile' Should see an ApiUtil Not Found Error

Assignee
Assign to
Time tracking