OpenAPITools / OpenAPITools/openapi-generator

[REQ] Allow generation of jar files for java web app frameworks

Open
#6,966 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement: Feature
Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

Is your feature request related to a problem? Please describe.

For our API implementation, we want to use Quarkus, which does not have a stub generator. However, there does exist a jaxrs-resteasy server stub generator, which is close enough.

However, the current stub generator generates a war as an artifact. We would like the generated artifacts to be a jar, and then implement the interfaces and subclass the API resources to run it within the quarkus framework.

Using the generated war, we are unable to load in the classes, perhaps because war artifacts are meant to be deployed and not to be used as libraries?

Describe the solution you'd like

An option to use the maven-jar-plugin rather than the maven-war-plugin.

Describe alternatives you've considered

A stub generator for quarkus would also resolve this issue. However, I still believe an option to generate a jar would be very useful since new frameworks will likely use Java EE specs/standards.

Additional context

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the jaxrs-resteasy server stub generator and its Maven template or configuration that selects the maven-war-plugin. Compare that setup with the maven-jar-plugin and determine how an option should select the artifact type. Done means the generator can produce a usable JAR while preserving the existing WAR behavior; run the generator's relevant tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.