Skip to content

Discovering artifacts from classpath #152

@rquinio1A

Description

@rquinio1A

Reason/Context

In cases of shared schemas, primary artifacts may already be in a Maven artifact alongside generated Java interface /POJOs.
For instance:

  • a Maven multi-module project with a shared api-binding module where the same API is implemented or consumed by multiple modules.
  • an oidc-test artifact which would contain an OpenAPI spec to be able to mock OIDC calls, alongside public/private keys to generate JWT tokens.

The solution today is to copy the primary artifact in the quarkus app so it's discovered for mocking, but that creates duplication.

Description

Today quarkus.microcks.devservices.artifacts.primaries and quarkus.microcks.devservices.artifacts.secondaries allow relative paths.
If a jar contains a META-INF/order-service-openapi.yaml, it should be possible to reference classpath:META-INF/order-service-openapi.yaml
Ideally the automatic discovery should work as well, potentially limited to resources under META-INF/ folder.

Implementation ideas

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    keep-openExplicitily keep open

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions