OpenAPITools / OpenAPITools/openapi-generator

[REQ] Remove `mvn` as dependency for `openapi-generator-cli.sh`.

Open
#16,897 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.