Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Cannot Reproduce
-
4.4.0
-
Moderate
Description
There is documentation saying you can write custom @DevConsole:
https://camel.apache.org/manual/camel-console.html#_writing_custom_dev_consoles
Tried to copy the example from this documentation and my console was not discovered:
https://github.com/kulagaIA/camel-examples/tree/custom-dev-console-not-working
I believe this happens because this cycle in org.apache.camel.maven.packaging.SpiGeneratorMojo.java does not work as intended:
https://github.com/apache/camel/blob/1b8d9827dcb82e899cc5b0740f4ba9fff6b65029/tooling/maven/camel-package-maven-plugin/src/main/java/org/apache/camel/maven/packaging/SpiGeneratorMojo.java#L120
It iterates specifically over @ServiceFactory annotations, while the logic suggests it should also iterate over any annotation that is itself annotated with @ServiceFactory .