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

Abierto
#1,190 0 comentarios 0 reacciones 1 asignado Ver en GitHub

@kay-schecker ya está trabajando en esto.

Desde el 8/4/2026.

Evaluación

Este issue todavía no se ha evaluado.

Descripción

bug

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

Lenguaje dominante
TypeScript
Estrellas
2k
Forks
208
Merge medio
7 h 12 min
PR fusionados (30 d)
6

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de OpenAPITools/openapi-generator-cli

Todos los issues de OpenAPITools/openapi-generator-cli

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.