Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-20917

camel-jbang: Camel Jbang is unable to load external plugins

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.7.0
    • 4.7.0
    • camel-jbang
    • None
    • Unknown

    Description

      When trying to load a plugin defined as:

      <groupId>org.apache.camel.jbang.ai</groupId>
      <artifactId>camel-jbang-plugin-explain</artifactId>
      <version>1.0.0-SNAPSHOT</version>
      

      Then adding it to JBang as:

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      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
      

      Then, JBang fails to load the plugin with the following error:

      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)
      

      This happens because the group and version are hard-coded in the PluginHelper class.

      Attachments

        Activity

          People

            orpiske Otavio Rodolfo Piske
            orpiske Otavio Rodolfo Piske
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: