jamesnetherton commented on issue #1800:
URL: https://github.com/apache/camel-quarkus/issues/1800#issuecomment-694804515


   I think the problem is 
[here](https://github.com/quarkusio/quarkus/blob/cd98a9ed54bd986129a7118f87e6c95ff14c0bd6/core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java#L376-L377).
   
   No implementors of `QuarkusApplication` are found, so Quarkus does not know 
which main class to run. I think we can fix it by adding a new `BuildStep` to 
the main extension, so that `CamelMainApplication` is indexed. E.g:
   
   ``` 
   AdditionalIndexedClassesBuildItem(CamelMainApplication.class.getName())
   ```
   
   Until then, the workaround is to manually index `camel-quarkus-main` by 
setting properties in `application.properties`:
   
   ```
   quarkus.index-dependency.camel-quarkus-main.group-id=org.apache.camel.quarkus
   quarkus.index-dependency.camel-quarkus-main.artifact-id=camel-quarkus-main
   ```
   
   Or you can tweak the `QuarkusMain` annotation to:
   
   ```
   @QuarkusMain(name = "org.apache.camel.quarkus.main.CamelMainApplication")
   ```


----------------------------------------------------------------
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to