Apicurio / apicurio-codegen

Repository to hold some code generation utilities.
Apache License 2.0
4 stars 13 forks source link

How can I run the quarkus extension? #168

Open martinformi opened 1 year ago

martinformi commented 1 year ago

I added the extension, but how I can run it now?

carlesarnal commented 1 year ago

In order to run the Quarkus extension you need a couple of things. In the repository, in the integration-tests, you have an example Quarkus application that is using the Quarkus extension to generate its REST layer. Essentially, you must configurethe code-gen phase in the Quarkus maven plugin (1), add our extension (you already did this :) and (2) add whatever configuration you want to the application.properties).

  1. https://github.com/Apicurio/apicurio-codegen/blob/main/quarkus-extension/integration-tests/pom.xml#L103
  2. https://github.com/Apicurio/apicurio-codegen/blob/main/quarkus-extension/integration-tests/src/main/resources/application.properties