OpenAPITools / OpenAPITools/openapi-generator
[REQ] Remove `mvn` as dependency for `openapi-generator-cli.sh`.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
You could directly curl the jar file like so:
curl -O "${repo}/org/openapitools/openapi-generator-cli/${tagname}/openapi-generator-cli-${tagname}.jar"
Both repo and tagname are already known so, nothing else would need to be changed.
Describe alternatives you've considered
Most users could do this change by themself is they actually did care (like I did), but I think it would be better to just remove a dependency that most people would not have on their machines.
Open Questions
- Does this change opens vulnerabilities that weren't possible using
mvn maven-dependency-plugin:2.9?
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 by locating openapi-generator-cli.sh and read how it currently invokes mvn maven-dependency-plugin:2.9, including how repo and tagname are set. Check the script's existing download and execution flow, then verify that replacing the Maven-based retrieval with the proposed curl command still obtains the expected CLI JAR without changing other behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, shell
- Domain
- build-system, cli
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100