joes opened a new issue, #7916: URL: https://github.com/apache/camel-quarkus/issues/7916
### Bug description Reproducer: https://github.com/joes/camel-quarkus-rest-openapi-generator-reproducer When using the Camel Quarkus REST OpenAPI code generator, the generated Java sources end up under: ``` target/generated-sources/camel-quarkus-rest-openapi/src/main/java ``` However, Quarkus's `GenerateCodeMojo` (which invokes the provider) assumes `.java` files are generated directly into: ``` target/generated-sources/camel-quarkus-rest-openapi ``` As a result, the Quarkus plugin automatically registers the top-level directory `target/generated-sources/camel-quarkus-rest-openapi` as a compile source root - even though the actual Java files live one level deeper. This leads to **package mismatch errors in IDEs** such as Visual Studio Code and Eclipse: ``` The declared package "org.acme.ping.model" does not match the expected package "" ``` The Maven build itself succeeds (`BUILD SUCCESS`) because the incorrect directory simply contains no `.java` files and is ignored by `javac`. ## Environment - Operating System: Windows 10 (23H2) - Camel Quarkus: 3.27.0 - Quarkus: 3.28.5 - JDK: 17 - IDE: Visual Studio Code 1.105.1 (user setup) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
