-
Notifications
You must be signed in to change notification settings - Fork 10
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/OpenAPI spec codegen error, missing rest package #446
Comments
just tried this example java dsl workflow https://github.com/automatiko-io/automatiko-examples/blob/main/workflows-java-dsl/src/main/java/io/automatiko/examples/dsl/MyWorkflows.java#L88 and all works without issue. Could it be again gradle related? |
I am seeing this with both Maven and Gradle builds... |
can you describe which example do you run or share your project? |
If I simply run this one DSL workflow where it needs to generate petstore rest service from swagger spec, I see this error Please see the attached sample project and try to build it with Maven command: |
Any idea what could be wrong in my environment? Can you please share your target folder, I'm curious what did it generate in the rest package. |
Strange, that whole package is missing for me. Did you simply run the sample project I shared or had to change some properties? Are you running on Mac or Windows? |
no changes, unzip and run. And what happens when you run |
Same result in quarkus:dev mode, missing rest package. |
Guess what, I built it on Linux and it builds fine. So its indeed a Windows path issue. |
hmm weird as it used to work on windows too. Will try to look into though might not be easy - don't have windows machine any more... |
Build failure due to missing rest package.
I am running the DSL workflows example that uses petstore swagger api to generate rest classes for service invocation from the workflow. The same error is seen with other examples that use open API spec.
Build logs show the swagger file being processed with automatiko instructions on how to override url etc yet no files are written to disk.
I am running Automatiko 0.34.0 with Quarkus 3.11.0
io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[error]: Build step io.automatiko.engine.quarkus.deployment.AutomatikoQuarkusProcessor#generateClassesFromResourcesStep threw an exception: java.lang.IllegalStateException: src/main/java/io/automatiko/engine/app/handlers/SwaggerPetstore_getPetById_restService_1_3_Handler.java:8: error: package io.automatiko.engine.app.rest does not exist
io.automatiko.engine.app.rest.SwaggerPetstore service;
^,Note: src/main/java/io/automatiko/app/ApplicationProcesses.java uses unchecked or unsafe operations.,Note: Recompile with -Xlint:unchecked for details.
at io.automatiko.engine.quarkus.deployment.AutomatikoQuarkusProcessor.compile(AutomatikoQuarkusProcessor.java:609)
at io.automatiko.engine.quarkus.deployment.AutomatikoQuarkusProcessor.generateClassesFromResourcesStep(AutomatikoQuarkusProcessor.java:198)
The text was updated successfully, but these errors were encountered: