Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.20.3
-
None
-
Unknown
Description
Kamelet Component is expecting the default kamelet location to be classpath:/kamelets.
`jbang --debug -Dcamel.jbang.version=3.20.3 camel@apache/camel export --local-kamelet-dir=../kamelets`
Jbang export copies kamelet files to src\main\resources\camel folder, so when running 'mvn quarkus:dev` gives an error that kamelet is not found.
java.io.FileNotFoundException: Resource not found: classpath:/kamelets/example.kamelet.yaml at org.apache.camel.dsl.yaml.YamlRoutesBuilderLoaderSupport.doLoadRouteBuilder(YamlRoutesBuilderLoaderSupport.java:76) at org.apache.camel.dsl.support.RouteBuilderLoaderSupport.loadRoutesBuilder(RouteBuilderLoaderSupport.java:102) at org.apache.camel.impl.engine.DefaultRoutesLoader.findRoutesBuilders(DefaultRoutesLoader.java:125) at org.apache.camel.spi.RoutesLoader.findRoutesBuilders(RoutesLoader.java:120) at org.apache.camel.spi.RoutesLoader.loadRoutes(RoutesLoader.java:75) at org.apache.camel.support.RouteTemplateHelper.loadRouteTemplateFromLocation(RouteTemplateHelper.java:106) at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.createRouteForEndpoint(KameletComponent.java:403) at org.apache.camel.component.kamelet.KameletComponent$LifecycleHandler.onContextInitialized(KameletComponent.java:430) at org.apache.camel.impl.engine.AbstractCamelContext.doInit(AbstractCamelContext.java:3017) at org.apache.camel.quarkus.core.FastCamelContext.doInit(FastCamelContext.java:174) at org.apache.camel.support.service.BaseService.init(BaseService.java:83) at org.apache.camel.impl.engine.AbstractCamelContext.init(AbstractCamelContext.java:2679) at org.apache.camel.support.service.BaseService.start(BaseService.java:111) at org.apache.camel.impl.engine.AbstractCamelContext.start(AbstractCamelContext.java:2698) at org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:262) at org.apache.camel.quarkus.main.CamelMain.doStart(CamelMain.java:94) at org.apache.camel.support.service.BaseService.start(BaseService.java:119)
Attachments
Attachments
Issue Links
- links to