Bruno Meseguer created CAMEL-21374:
--------------------------------------
Summary: camel-jbang - Export pipe with local kamelets seems to
fail
Key: CAMEL-21374
URL: https://issues.apache.org/jira/browse/CAMEL-21374
Project: Camel
Issue Type: Bug
Components: camel-jbang
Affects Versions: 4.8.1, 4.9.0
Environment: I've set up the environment as follows:
{code:java}
camel version
JBang version: 0.119.0
Camel JBang version: 4.8.1 {code}
And the *CamelJBang.java* in JBang's cache folder is defined with:
{code:java}
//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}
{code}
With the setup above, running the Pipe with the command in the description
works well.
However, the following command fails:
{code:java}
camel export * --local-kamelet-dir=./mykamelets/ --runtime=quarkus
--gav=org.demo:mydemo:1.0.0 {code}
The error thrown is:
{code:java}
Caused by: java.io.FileNotFoundException: Resource not found:
classpath:kamelets,github:apache:camel-kamelets/kamelets/mytimer.kamelet.yaml
{code}
Find attached the source files used in the samples above
Reporter: Bruno Meseguer
Attachments: pipeexport.tar.gz
Running a Pipe using local kamelets seems to work well using the command:
{code:java}
camel run * --local-kamelet-dir=./mykamelets/{code}
Then, the export command seems not able to find the kamelets when running the
following command:
{code:java}
camel export * --local-kamelet-dir=./mykamelets/ --runtime=quarkus
--gav=org.demo:mydemo:1.0.0
{code}
Find attached the source files used to reproduce the problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)