swagger-api / swagger-api/swagger-codegen

[Java] plugins generates unexpected AndroidManifest.xml file

Open
#11,230 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

Description

I'm using swagger-codegen-maven-plugin 3.0.29 . Code is being generated correctly, but there's also AndroidManifest.xml in target/generated-sources/src/main which I don't need.
Could you tell me how can I get rid of that file, please?

Swagger-codegen version

3.0.29

Swagger declaration file content or url

pom.xml

swagger.json - source file for CodeGen plugin

Command line used for generation

mvn clean compile

Steps to reproduce
  1. Run the application and visit swagger-ui page to retrieve .json documentation file. default URL.
  2. Copy json and save it in resources folder as swagger.json.
  3. run mvn clean compile on project folder to make swagger-codegen plugin generate code in target/generated-sources folder.

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 with the linked pom.xml and swagger.json, then run mvn clean compile to reproduce the extra file under target/generated-sources/src/main. Trace which configured generation step produces AndroidManifest.xml and compare it with the requested Java output. Done means the generation no longer creates the unwanted file, or the supported configuration to prevent it is documented.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.