Make it easy to use with a private maven repository
@kay-schecker đang làm issue này rồi.
Từ ngày 16/10/2024.
Đánh giá
Issue này chưa được đánh giá.
Mô tả
Hello,
I am using the openapi-generator-cli 2.14.0 with a private maven repository (requiring authentication).
Atm using this cli with this setup involves a few steps and makes it feel a bit quirky.
I was wondering if it's possible make the whole process smoother:
- fix NO_PROXY handling
- easier authentication to private maven repositories (no credentials hardcoded in the openapitools.json)
Steps to follow to use the openapi-generator-cli with a private maven repository
Here are the steps I needed to follow to make the openapi-generator-cli work in my corporate environment.
Please note: I am used to have HTTP_PROXY, HTTPS_PROXY and NO_PROXY environment vars setup.
The NO_PROXY is set in order to avoid internal http calls to be sent via the proxy.
-
First run: I get a 503 (returned by my http proxy)
Ok, this is the issue https://github.com/OpenAPITools/openapi-generator-cli/issues/652
Fix: I remove all HTTP_PROXY, HTTPS_PROXY -
Second run: I get a unable to get local issuer certificate.
Ok, this is related to https://github.com/OpenAPITools/openapi-generator-cli/issues/130#issuecomment-737277129
Fix: I add NODE_TLS_REJECT_UNAUTHORIZED=0 as environment variable -
Third run: Request failed with status code 401 (returned by my private maven repository)
Fix: I hardcode my user/pwd credentials in my openapitools.json.
I am not too happy with this solution since I'll need to do some pre-processing to be able to others dev in my team to use their credentials (or for the ci to run):{ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { "version": "7.9.0", "repository": { "downloadUrl": "https://myuser:[email protected]/repository/mvn-proxy-group/${groupId}/${artifactId}/${versionName}/${artifactId}-${versionName}.jar" } } }
- Ngôn ngữ chính
- TypeScript
- Star
- 2k
- Fork
- 208
- Merge trung bình
- 9 giờ 35 phút
- Pull request đã merge (30 ngày)
- 3
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của OpenAPITools/openapi-generator-cli
-
[FEATURE] consider using caret ranges instead of pinned exact versions for runtime dependenciesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
[BUG] JAVA_OPTS is incorrectly evaluatedCó thể làm lại được @kay-schecker đã nhận 118 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1213 · 1 người được giao ·
-
[BUG] Proxy configuration of NPM not used when downloading .jar via version managerCó thể làm lại được @kay-schecker đã nhận 172 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1190 · 1 người được giao ·
-
[BUG] openapiGeneratorIgnoreList is missing from schemaCó thể làm lại được @kay-schecker đã nhận 223 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1138 · 1 bình luận · 1 người được giao ·
-
[BUG] Environment variable not found (missing .env loading)Có thể làm lại được @kay-schecker đã nhận 261 ngày trước và không có pull request nào đang mở. Đang mởbug
OpenAPITools/openapi-generator-cli#1094 · 1 bình luận · 1 người được giao ·
Tất cả issue của OpenAPITools/openapi-generator-cli
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/vscode-livepreview#876 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
JustJarethB/invoicer#54 ·
-
ICP 1.2.0 shows a scheduled task's interval in milliseconds under the label "Interval (In seconds)"Đang mởNeeds Triage Type/Bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wso2/product-integrator#2585 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add: Telemundo West sdĐang mởcheck:passed streams:add
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
design
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MTES-MCT/monitor-field#119 ·
Maintainer thường phản hồi trong vòng 1 ngày