swagger-api / swagger-api/swagger-codegen

Generated code not compiled upon updating yaml file and doing mvn compile

Open
#4,757 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted Issue: Bug Swagger Codegen Maven Plugin
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I am following the issue which is currently closed.
https://github.com/swagger-api/swagger-codegen/issues/4707

Here as per the suggestion it's not oveeridding the impl and generated codes. But now if I am updating the yaml file and want to compile it then it's not compiled.

  1. mvn clean install
    --- generating codes..
  2. Updated yaml file
  3. mvn compile
    --- skip overwrting to all the previous generated codes.

To make changes, do I need the fresh build by mvn clean compile every time?
mvn compile is not working. Please suggest.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the linked issue 4707 and reproducing the two command sequences: mvn clean install after the initial YAML generation, then mvn compile after editing the YAML. Done means the expected regeneration behavior is established and the issue has a clear resolution for whether a clean build is required.

Written by the indexing model from the issue text.

Assessment

Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.