Otavio Rodolfo Piske created CAMEL-20917:
--------------------------------------------

             Summary: 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
             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)

Reply via email to