Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.7.0
-
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.