Skip to content

Add example for generating Java client using Maven plugin #21596

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Naveenkumarsuk
Copy link

This PR adds a real-world usage example to the Maven plugin documentation, demonstrating how to generate a Java client from an OpenAPI YAML file during a Maven build.

What's included:-

A complete XML snippet showing how to configure openapi-generator-maven-plugin with Java client generation.
Clear usage of inputSpec, generatorName, apiPackage, modelPackage, and output fields.
Example placed right after the default usage block for better developer visibility.
This example aims to help Java developers integrate OpenAPI code generation into their Maven workflow more easily.

Let me know if any adjustments are needed.
TY

<modelPackage>com.example.model</modelPackage>
<invokerPackage>com.example.invoker</invokerPackage>
</configuration>
</plugin>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing ``` ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants