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
  • Merge requests
  • !13151

[maven] Use one of two default paths of output directory according to the lifecycle phase

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/rosti-il/master into master Aug 10, 2022
  • Overview 2
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: rosti-il

In case the lifecycle phase is generate-test-sources the default output directory is: "${project.build.directory}/generated-test-sources/openapi"

In case of any other lifecycle phase the default output directory is: "${project.build.directory}/generated-sources/openapi"

Also use the src/main/java as the only default source folder in the output path for both cases when addCompileSourceRoot == true and when addTestCompileSourceRoot == true. In case you really need src/test/java it still can be set in the configOptions manually:

    <configOptions>
        <sourceFolder>src/test/java</sourceFolder>
    </configOptions>

This PR fixes #13152 (closed)

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/rosti-il/master