[ 
https://issues.apache.org/jira/browse/CAMEL-23334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18073945#comment-18073945
 ] 

Federico Mariani commented on CAMEL-23334:
------------------------------------------

[~davsclaus] there's no way to include it in 4.18.2? :( the tag is already cut?

> 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.18.3, 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)

Reply via email to