OpenAPITools / OpenAPITools/openapi-generator
[BUG] [kotlin-spring] disable spring-boot-maven-plugin when interfaceOnly is set true
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
When I run the generator kotlin-spring with interfaceOnly = true I get a spring-boot project. When I pack this resulting package with mvn package the resulting .jar is an executable spring-boot project. The reason is the spring-boot-maven-plugin dependency in the generated pom.xml. When I do this with spring as generator this is not the case.
OpenApi version: 4.2.3
Suggested : Do not add spring-boot-maven-plugin to generated pom.xml when interfaceOnly = true
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the kotlin-spring generator output, especially the generated pom.xml, and compare it with the pom.xml produced by the spring generator. Run mvn package with interfaceOnly=true to confirm the executable JAR behavior; done means the spring-boot-maven-plugin is absent from the generated pom.xml in that mode.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin, spring-boot
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100