This is an automated email from the ASF dual-hosted git repository.
pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
The following commit(s) were added to refs/heads/main by this push:
new 169b75498 Some various improvements in dependencies.adoc
169b75498 is described below
commit 169b754981111e4f0fe0e36fa870578c4977d8f7
Author: Nicolas Filotto <[email protected]>
AuthorDate: Wed Aug 3 15:00:32 2022 +0200
Some various improvements in dependencies.adoc
---
docs/modules/ROOT/pages/configuration/dependencies.adoc | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/docs/modules/ROOT/pages/configuration/dependencies.adoc
b/docs/modules/ROOT/pages/configuration/dependencies.adoc
index af90097a6..40062af3b 100644
--- a/docs/modules/ROOT/pages/configuration/dependencies.adoc
+++ b/docs/modules/ROOT/pages/configuration/dependencies.adoc
@@ -15,12 +15,12 @@ This dependency resolution mechanism is transparent to the
user, that will just
Automatic resolution is also a nice feature in xref:running/dev-mode.adoc[dev
mode], because you are allowed to add all components you need *without exiting
the dev loop*.
-NOTE: Camel K won't be able to automatically the dependencies when your routes
specify dynamic URIs.
+NOTE: Camel K won't be able to resolve automatically the dependencies when
your routes specify dynamic URIs.
[[dependencies-explicit]]
== Add explicit dependencies
-You can explicitly add dependency using the `-d` flag of the `kamel run`
command. This is useful when you need to use dependencies that are not included
in the Camel catalog or when the URI of your routes cannot be automatically
discovered (see Dynamic URIs). For example:
+You can explicitly add dependency using the `-d` flag (short name of the flag
`--dependency`) of the `kamel run` command. This is useful when you need to use
dependencies that are not included in the Camel catalog or when the URI of your
routes cannot be automatically discovered (see Dynamic URIs). For example:
```
kamel run -d mvn:com.google.guava:guava:26.0-jre -d camel:http Integration.java
@@ -51,7 +51,7 @@ Note that if your dependencies belong to a private
repository, this repository n
kamel run -d file://path/to/integration-dep.jar Integration.java
```
-The contents `integration-dep.jar` will then be accessible in your integration
for you to use.
+The content of `integration-dep.jar` will then be accessible in your
integration for you to use.
You can also specify data files to be mounted in the running container:
@@ -84,12 +84,12 @@ gitee:user/repo/version
azure:user/repo/version
```
-The `version` can be omitted when you are willing to use the `main` branch.
Otherwise it will represent the branch or tag used in the project repo. You can
have a look at the
https://github.com/apache/camel-k/tree/main/examples/jitpack[Camel K Jitpack
example] to have a complete experience about how to include a dependency with
this mechanism.
+The `version` can be omitted when you are willing to use the `main` branch.
Otherwise it will represent the branch or tag used in the project repo.
[[dependencies-dynamic]]
== Dynamic URIs
-Unfortunately, Camel K won't be able to always discover all your dependencies.
When you are creating an URI dynamically, then you will also need to instruct
Camel K on which is the expected component to load (via `-d` parameter). An
example is illustrated in the following code snippet:
+Unfortunately, Camel K won't be able to always discover all your dependencies.
When you are creating an URI dynamically, then you will also need to instruct
Camel K which component to load (via `-d` parameter). An example is illustrated
in the following code snippet:
[source,java]
.DynamicURI.java