You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Bruno Meseguer (Jira)" <ji...@apache.org> on 2024/10/23 08:58:00 UTC
[jira] [Updated] (CAMEL-21374) camel-jbang - Export pipe with local kamelets seems to fail
[ https://issues.apache.org/jira/browse/CAMEL-21374?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bruno Meseguer updated CAMEL-21374:
-----------------------------------
Description:
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.
Read +{color:#0747a6}*Environment*{color}+ details (top) to read how to reproduce the problem.
was:
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.
> 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
> Priority: Minor
> 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.
>
> Read +{color:#0747a6}*Environment*{color}+ details (top) to read how to reproduce the problem.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)