You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/06/26 11:36:00 UTC

[jira] [Resolved] (CAMEL-20917) camel-jbang: Camel Jbang is unable to load external plugins

     [ https://issues.apache.org/jira/browse/CAMEL-20917?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Otavio Rodolfo Piske resolved CAMEL-20917.
------------------------------------------
    Resolution: Fixed

Fixed with the linked PRs.

> camel-jbang: Camel Jbang is unable to load external plugins
> -----------------------------------------------------------
>
>                 Key: CAMEL-20917
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20917
>             Project: Camel
>          Issue Type: Task
>          Components: camel-jbang
>    Affects Versions: 4.7.0
>            Reporter: Otavio Rodolfo Piske
>            Assignee: Otavio Rodolfo Piske
>            Priority: Major
>             Fix For: 4.7.0
>
>
> When trying to load a plugin defined as:
> {code:xml}
> <groupId>org.apache.camel.jbang.ai</groupId>
> <artifactId>camel-jbang-plugin-explain</artifactId>
> <version>1.0.0-SNAPSHOT</version>
> {code}
> Then adding it to JBang as: 
> {code:shell}
> jbang -Dcamel.jbang.version=4.7.0-SNAPSHOT camel@apache/camel plugin add -g org.apache.camel.jbang.ai -a camel-jbang-plugin-explain -v 1.0.0-SNAPSHOT -d "Explain things using AI"  explain
> {code}
> Then, JBang fails to load the plugin with the following error:
> {code:java}
> Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Could not find artifact org.apache.camel:camel-jbang-plugin-explain:jar:4.7.0-SNAPSHOT in apache-snapshot (https://repository.apache.org/snapshots)
> {code}
> This happens because the group and version are hard-coded in the PluginHelper class.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)