Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • O openapi-generator
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,476
    • Issues 3,476
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 402
    • Merge requests 402
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • OpenAPI Tools
  • openapi-generator
  • Issues
  • #2827
Closed
Open
Issue created May 06, 2019 by Administrator@rootContributor

[BUG] openapi-generator-maven-plugin in corporate proxy fails on http references

Created by: gerardbosch

Description

I've beeing using openapi-generator-maven-plugin for a while on different versions up to 3.3.4. I have my API definition in a YAML file and I tried to use absolute references to make references to common or shared API "components" (or fragments) hosted on a dedicated repository and publicly accessible via http in order to reuse those components in several API definitions.

But it looks that the generator fails to reach these remote API components when I run it in a corporate network (relative references in the filesystem works on the other side). I've tried the same outside the work network and it works fine. So that's why I think the openapi-generator-maven-plugin don't deal properly with proxies. I must point that other maven plugins such as WGET:

<groupId>com.googlecode.maven-download-plugin</groupId>
<artifactId>download-maven-plugin</artifactId>
<version>1.4.1</version>

do work with the same network and setup, that's what I think it is not a Maven or network issue.

The result is that openapi-generator can't reach the referenced components via http and generation fails.

I'm using it to generate for Spring (interfaces and models only).

P.S. The maven is run by corporate Jenkins CI (but I insist that maven wget plugin works fine in the same setup)

openapi-generator version

3.3.4

Command line used for generation

mvn clean install

Assignee
Assign to
Time tracking