[
https://issues.apache.org/jira/browse/CAMEL-20517?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17824356#comment-17824356
]
Christoph Deppisch commented on CAMEL-20517:
--------------------------------------------
[~claudio4j] I have realized something that might help you to analyze the
issue. In case I run the camel k plugin command from the Camel root project
directory (checked out from GitHub) on my machine it works fine. If I run the
same command from another directory on my machine I get the described error.
Maybe you can check if this is the same behavior on your machine, too.
> camel-jbang-plugin-k doesn't recognize command
> ----------------------------------------------
>
> Key: CAMEL-20517
> URL: https://issues.apache.org/jira/browse/CAMEL-20517
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.4.0
> Reporter: Claudio Miranda
> Assignee: Claudio Miranda
> Priority: Major
>
> Try running a camel-jbang-plugin-k results in the following error
> {code:java}
> $ camel k run route.yaml
> [jbang] [ERROR] Script or alias could not be found or read: 'camel'
> [jbang] Run with --verbose for more details
> {code}
>
> There is a workaround
> {code:java}
> jbang run --deps=org.apache.camel:camel-jbang-plugin-k:4.4.0
> camel@apache/camel k run <file.yaml>
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)