davsclaus opened a new issue, #7683: URL: https://github.com/apache/camel-quarkus/issues/7683
### Describe the feature here To better support debugging in Camel Quarkus then java routes need to be enrich with source location from "src/main/java" which has been done in camel-core. But since CEQ does some special routes collector then this new code is missing https://github.com/apache/camel/commit/70adba06d726f6d48e0dfcc04a8cedd241d83760 This code should be added ``` for(RoutesBuilder route : routes) { if (route instanceof ResourceAware ra) { if (ra.getResource() == null) { Resource r = ResourceHelper.resolveResource(camelContext, "source:" + route.getClass().getName()); if (r != null && r.exists()) { ra.setResource(r); } } } } ``` In the `CamelMainRoutesCollector` then the returned list from `collectRoutesFromRegistry` should call the code above before returning. -- 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: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org