Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.8.1, 4.9.0
-
None
-
I've set up the environment as follows:
camel version JBang version: 0.119.0 Camel JBang version: 4.8.1
And the CamelJBang.java in JBang's cache folder is defined with:
//JAVA 17+ //REPOS central=https://repository.apache.org/content/repositories/orgapachecamel-1759/,https://repo1.maven.org/maven2,apache-snapshot=https://repository.apache.org/content/groups/snapshots/ //DEPS org.apache.camel:camel-bom:${camel.jbang.version:4.8.1}@pom //DEPS org.apache.camel:camel-jbang-core:${camel.jbang.version:4.8.1} //DEPS org.apache.camel.kamelets:camel-kamelets:${camel-kamelets.version:4.8.0}
With the setup above, running the Pipe with the command in the description works well.
However, the following command fails:
camel export * --local-kamelet-dir=./mykamelets/ --runtime=quarkus --gav=org.demo:mydemo:1.0.0
The error thrown is:
Caused by: java.io.FileNotFoundException: Resource not found: classpath:kamelets,github:apache:camel-kamelets/kamelets/mytimer.kamelet.yaml
Find attached the source files used in the samples above
I've set up the environment as follows: camel version JBang version: 0.119.0 Camel JBang version: 4.8.1 And the CamelJBang.java in JBang's cache folder is defined with: //JAVA 17+ //REPOS central=https://repository.apache.org/content/repositories/orgapachecamel-1759/,https://repo1.maven.org/maven2,apache-snapshot=https://repository.apache.org/content/groups/snapshots/ //DEPS org.apache.camel:camel-bom:${camel.jbang.version:4.8.1}@pom //DEPS org.apache.camel:camel-jbang-core:${camel.jbang.version:4.8.1} //DEPS org.apache.camel.kamelets:camel-kamelets:${camel-kamelets.version:4.8.0} With the setup above, running the Pipe with the command in the description works well. However, the following command fails: camel export * --local-kamelet-dir=./mykamelets/ --runtime=quarkus --gav=org.demo:mydemo:1.0.0 The error thrown is: Caused by: java.io.FileNotFoundException: Resource not found: classpath:kamelets,github:apache:camel-kamelets/kamelets/mytimer.kamelet.yaml Find attached the source files used in the samples above
-
Unknown
Description
Running a Pipe using local kamelets seems to work well using the command:
camel run * --local-kamelet-dir=./mykamelets/
Then, the export command seems not able to find the kamelets when running the following command:
camel export * --local-kamelet-dir=./mykamelets/ --runtime=quarkus --gav=org.demo:mydemo:1.0.0
Find attached the source files used to reproduce the problem.
Read Environment details (top) to read how to reproduce the problem.
Attachments
Attachments
Issue Links
- is related to
-
CAMEL-21488 camel-jbang - Export with multiple customer kamelets
- Resolved
- links to