OpenAPITools / OpenAPITools/openapi-generator
[BUG] Failure while generation of server interfaces from openAPI definition file in org.openapitools:openapi-generator-maven-plugin:6.0.0-beta
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 26.8k
- Forks
- 7.7k
- PR merge metrics
- PR metrics pending
Description
Description
While generating interfaces from given openapi.yml following exception is thrown
"class io.swagger.parser.OpenAPIParser tried to access protected method 'java.util.List io.swagger.v3.parser.OpenAPIV3Parser.getExtensions()' (io.swagger.parser.OpenAPIParser and io.swagger.v3.parser.OpenAPIV3Parser are in unnamed module of loader org.codehaus.plexus.classworlds.realm.ClassRealm @1046498a)"

openapi-generator version
version: org.openapitools:openapi-generator-maven-plugin:6.0.0-beta
OpenAPI declaration file content or url
Attached as openapi.yaml.txt (otherwise I can't attach it)
File is already correctly validated
openapi.yaml.txt
Generation Details
Using openapi generator as maven plugin
Steps to reproduce
Using openapi-generator as maven plugin
After configuration
mvn clean compile
Maven pom attached as pom.xml.txt
pom.xml.txt
Compilation results in exception

Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the attached pom.xml.txt and openapi.yaml.txt, using the openapi-generator Maven plugin and mvn clean compile. Compare the plugin's parser dependencies with the reported access exception, then verify that generation completes successfully without the interface-generation failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, openapi
- Domain
- api, build-system
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100