OpenAPITools / OpenAPITools/openapi-generator-cli

[BUG] Proxy configuration of NPM not used when downloading .jar via version manager

Aperta
#1,190 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@kay-schecker ci sta già lavorando.

Dal 8/4/2026.

bug
Lingua principale
TypeScript
Stelle
2k
Fork
208
Merge medio
7h 12m
PR unite (30g)
6

Descrizione

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

  1. Only set https-proxy and proxy using .npmrc
  2. Try running openapi-generator-cli generate
  3. See error that .jar file 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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.