This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new d2c961ef5c9 CAMEL-18173: camel-jbang - Add option to turn off download 
over the internet
d2c961ef5c9 is described below

commit d2c961ef5c976cf8658501c93743a4d2b90ceb36
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jun 8 12:38:08 2022 +0200

    CAMEL-18173: camel-jbang - Add option to turn off download over the internet
---
 .../modules/ROOT/pages/camel-jbang.adoc            | 28 ++++++++++++++++++++++
 1 file changed, 28 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 60d06c6a2ab..9d5e60fc482 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -155,6 +155,34 @@ And you can also configure Camel components such as 
camel-kafka to declare the U
 camel.component.kafka.brokers=broker1:9092,broker2:9092,broker3:9092
 ----
 
+=== Downloading JARs over the internet
+
+By default, Camel JBang will automatically resolve dependencies needed to run 
Camel, which is done
+by JBang and Camel respectively. Camel itself detects at runtime if a 
component has a need for JARs that
+are not currently available on the classpath, and can then automatic download 
the JARs (incl transitive).
+
+Camel will download these JARs in the following order:
+
+1. from local disk in `~/.groovy/grapes`
+2. from local disk in `~/.m2/repository`
+3. from internet in Maven Central
+4. from internet in custom 3rd-party Maven repositories
+
+If you do not want Camel JBang to download over the internet, you can turn 
this off with `--download`, as shown below:
+
+[source,bash]
+----
+camel run foo.java --download=false
+----
+
+When Camel JBang download dependencies it will only report the top level 
dependency being downloaded.
+You can enable verbose logging that will also log activity for each transitive 
dependency,
+using the `--downloadVerbose` option as shown:
+
+[source,bash]
+----
+camel run foo.java --downloadVerbose=true
+----
 
 === Using 3rd-party Maven repositories
 

Reply via email to