[
https://issues.apache.org/jira/browse/CAMEL-23334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18073896#comment-18073896
]
Federico Mariani edited comment on CAMEL-23334 at 4/16/26 8:34 AM:
-------------------------------------------------------------------
with the SNAPSHOT is even slower, but you can try it yourself with the released
version too, try
{code:java}
$ camel version
$ camel plugin add forage --command forage --gav
io.kaoto.forage:camel-jbang-plugin-forage:1.1 --description "Forage plugin"
$ camel version
{code}
was (Author: JIRAUSER298805):
with the SNAPSHOT is even slower, but you can try it yourself with the released
version too, try
{code:java}
camel version
camel plugin add forage --command forage --gav
io.kaoto.forage:camel-jbang-plugin-forage:1.1 --description "Forage plugin"
camel version
{code}
> JBang plugin resolution checks remote repositories on every CLI invocation
> even when artifacts are cached locally
> -----------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-23334
> URL: https://issues.apache.org/jira/browse/CAMEL-23334
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Reporter: Federico Mariani
> Assignee: Federico Mariani
> Priority: Major
> Fix For: 4.20.0
>
>
> When a 3rd-party JBang plugin is installed (via camel plugin add with a
> custom GAV), every camel CLI invocation triggers a full Maven Resolver cycle
> for the plugin artifact, including remote SNAPSHOT metadata checks. This
> happens even when the artifact is already present in the local Maven
> repository (~/.m2/repository).
> The root cause is in _PluginHelper.downloadPlugin()_ which always goes
> through _MavenDependencyDownloader_ with online resolution. Maven Resolver
> then contacts remote repositories to check for newer SNAPSHOT metadata,
> adding 30+ seconds of overhead per invocation, even for unrelated commands
> like camel version.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)