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
  • #5681
Closed
Open
Issue created Mar 23, 2020 by Administrator@rootContributor

How to call generator with deprecated D arguments?

Created by: Pe-te

Hi folks, when I run the following command:

export JAVA_OPTS="${JAVA_OPTS} -Dlog.level=warn"
openapi-generator generate -g kotlin -D models -D apis --library jvm-retrofit2 -i "${YAML_FILE}" -o "${KOTLIN_PATH}" --additional-properties=serializationLibrary=gson

I get this deprecation message:

[DEPRECATED] -D arguments after 'generate' are application arguments and not Java System Properties, please consider changing to -p, or apply your options to JAVA_OPTS, or move the -D arguments before the jar option.

I tried different combinations and positions and couldn't get rid of it. What would be the correct way to call the generator?

macOS, homebrew, openapi-generator 4.2.3

Assignee
Assign to
Time tracking