mkhudyakov commented on issue #1205: URL: https://github.com/apache/camel-kamelets/issues/1205#issuecomment-1351552474
Thank you @davsclaus I run on plain JRE (no camel-jbang or camel-k) ``` public class Application { public static void main(String[] args) throws Exception { final KameletMain main = new KameletMain(); main.configure().setBasePackageScan("com.apache.kamelet.poc"); main.setDownloadListener(new DownloadListener() { @Override public void onDownloadDependency(String groupId, String artifactId, String version) { System.out.println("Downloading " + groupId + ":" + artifactId + ":" + version); } ``` Just to clarify, there is no issue for `KameletMain` to download the dependency in such a case ``` 09:13:16.453 [main] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.main.basePackageScan=com.apache.kamelet.poc 09:13:16.453 [main] INFO o.apache.camel.main.BaseMainSupport - [application.properties] camel.component.kamelet.location=classpath:/kamelets,github:apache:camel-kamelets/kamelets,github:mkhudyakov:aggregate-services-result-poc Downloading org.apache.camel:camel-core-languages:3.20.0-SNAPSHOT Downloading org.apache.camel.kamelets:camel-kamelets-utils:0.9.2 Downloading org.apache.camel:camel-kafka:3.20.0-SNAPSHOT **Downloading com.apache.kamelet.poc:kamelet-poc-processors:1.0.0-SNAPSHOT** Downloading org.apache.camel:camel-yaml-dsl:3.20.0-SNAPSHOT Downloading org.apache.camel:camel-kafka:3.20.0-SNAPSHOT ``` The problem is for `KameletMain` to detect `@Configuration / CamelConfiguration` in downloaded dependency and bing beans to the registry. As a result I get ``` Caused by: org.apache.camel.NoSuchBeanException: No bean could be found in the registry for: customProcessor at org.apache.camel.component.bean.RegistryBean.doGetBean(RegistryBean.java:134) ``` The above issue goes away though in case dependency is explicitly added to the classpath (so no download happens for it) I've tried the version `3.20.0-SNAPSHOT`, but the result is the same. -- 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 For queries about this service, please contact Infrastructure at: us...@infra.apache.org