Skip to content
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

swagger-maven-plugin does not set ctxId of JaxrsOpenApiContextBuilder #3013

Closed
MarvGilb opened this issue Nov 12, 2018 · 3 comments
Closed

Comments

@MarvGilb
Copy link

MarvGilb commented Nov 12, 2018

Hey,

I have a project with several sub-projects, that share some code. Within these sub-projects I am using the swagger-maven-plugin to generate a swagger file.
During the creation, the JaxrsOpenApiContextBuilder creates/uses only the OpenApiContext.OPENAPI_CONTEXT_ID_DEFAULT as ctxId. This way it is not possible to create different context files in a single build (Every run uses the context of the first module.)


Setup

<groupId>io.swagger.core.v3</groupId>
<artifactId>swagger-maven-plugin</artifactId>
<version>2.0.5</version>
@MarvGilb MarvGilb changed the title swagger-maven-plugin does not set ctxId of swagger-maven-plugin does not set ctxId of JaxrsOpenApiContextBuilder Nov 12, 2018
frantuma added a commit that referenced this issue Nov 12, 2018
refs #3013 - contextId in maven and gradle plugin
@frantuma
Copy link
Member

Thanks for reporting this and pointing to code! #3014 adds contextId param (defaulting to ${project.artifactId}), available in latest snapshot. Closing ticket, please reopen if you're still experiencing issues

@MarvGilb
Copy link
Author

Thanks for the fast reply. When is a new release planed?

@frantuma
Copy link
Member

no fixed ETA, but within few weeks

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

No branches or pull requests

2 participants