OpenAPITools / OpenAPITools/openapi-generator-cli

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

Ouverte
#1,190 0 commentaires 0 réactions 1 personne assignée Voir sur GitHub

@kay-schecker y travaille déjà.

Depuis le 8/4/2026.

bug
Langage dominant
TypeScript
Étoiles
2k
Forks
208
Merge moyen
7 h 12 min
PR mergées (30 j)
6

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:

  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.

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.