[BUG] Proxy configuration of NPM not used when downloading .jar via version manager
@kay-schecker is already working on this.
Since Apr 8, 2026.
Assessment
This issue has not been assessed yet.
Description
🐛 Bug Report:
Describe the bug
I develop behind a corporate proxy and thus have to set https-proxy and proxy in NPM in order to download @openapitools/openapi-generator-cli from the official NPM registry.
This works without any issue, however when the CLI tries to download the required .jar file from Maven Central, I get a proxy error because the proxy is not respected when downloading the .jar itself.
I was able to "fix" this setting the HTTP_PROXY and HTTPS_PROXY variables on system level.
However this in an inconvenient solution as I have to set it twice.
It would be great if the CLI would respect the configured npm for downloading the .jar file.
Steps to Reproduce
Steps to reproduce the behavior:
- Only set
https-proxyandproxyusing.npmrc - Try running
openapi-generator-cli generate - See error that
.jarfile cannot be downloaded
Expected behavior
.jar file download should work with only setting the NPM proxy configuration.
Operation System (please complete the following information):
- Windows 11
Package System (please complete the following information):
- npm 11.62
- Node 24.11.1
Additional context
Add any other context about the problem here.
- Dominant language
- TypeScript
- Stars
- 2k
- Forks
- 208
- Avg merge
- 9h 35m
- Merged PRs (30d)
- 3
Getting set up
We have not checked this project's setup files yet. Start from its README, and see our first-contribution guide for the general steps.
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.
More from OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedMay be free again @kay-schecker claimed this 117 days ago, and no pull request is open. Openbug
OpenAPITools/openapi-generator-cli#1213 · 1 assignee ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaMay be free again @kay-schecker claimed this 222 days ago, and no pull request is open. Openbug
OpenAPITools/openapi-generator-cli#1138 · 1 comment · 1 assignee ·
-
[BUG] Environment variable not found (missing .env loading)May be free again @kay-schecker claimed this 261 days ago, and no pull request is open. Openbug
OpenAPITools/openapi-generator-cli#1094 · 1 comment · 1 assignee ·
-
[BUG] Unable to access files when useDocker is true and SELinux is enabledMay be free again @kay-schecker claimed this 383 days ago, and no pull request is open. Openbug
OpenAPITools/openapi-generator-cli#991 · 1 assignee ·
All issues in OpenAPITools/openapi-generator-cli
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
melgarafael/DeskcommCRM#1812 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
prisma/prisma-cli#309 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
gregwebs/pi-quota-dispatcher#26 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openwatersio/slackwater.xyz#124 ·
Maintainers usually reply within 1 day
-
agent-reported area/browser area/docs documentation good first issue hacktoberfest help wanted P2
Difficulty 1/5 Under an hour Newbie friendliness 90/100
Maintainers usually reply within 2 days