OpenAPITools / OpenAPITools/openapi-generator-cli

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

オープン
#1,190 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

@kay-schecker がすでに取り組んでいます。

2026年4月8日 から。

bug
主要言語
TypeScript
スター
2k
フォーク
208
平均マージ
7時間 12分
マージ済み PR(30日)
6

説明

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

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。