This is an automated email from the ASF dual-hosted git repository.
gnodet 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 cd34b92ff222 chore: document running camel-jbang from Maven local
repository
cd34b92ff222 is described below
commit cd34b92ff222351ade30e35194399e9e80e76189
Author: Guillaume Nodet <[email protected]>
AuthorDate: Thu May 21 14:43:05 2026 +0200
chore: document running camel-jbang from Maven local repository
Add instructions for running locally-built camel-jbang using Maven
coordinates (jbang run and jbang app install) as an alternative to the existing
alias-based approach.
---
dsl/camel-jbang/README.md | 28 +++++++++++++++++++++++++++-
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/dsl/camel-jbang/README.md b/dsl/camel-jbang/README.md
index 3d3ae9fa74a4..77c132b56f67 100644
--- a/dsl/camel-jbang/README.md
+++ b/dsl/camel-jbang/README.md
@@ -15,4 +15,30 @@ jbang camel version
Camel JBang version: 4.21.0-SNAPSHOT
```
-Alternatively, you can change the version in
[`CamelJBang.java`](https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java#L22)
\ No newline at end of file
+Alternatively, you can change the version in
[`CamelJBang.java`](https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-main/src/main/jbang/main/CamelJBang.java#L22)
+
+### Using Maven coordinates from the local repository
+
+After building the project with `mvn install`, you can also run camel-jbang
directly from the Maven local repository using Maven coordinates.
+
+One-shot run:
+
+```shell
+jbang run -Drepos=mavenLocal,central \
+ --main=main.CamelJBang \
+ --deps=org.apache.camel:camel-jbang-core:4.21.0-SNAPSHOT \
+ org.apache.camel:camel-jbang-main:4.21.0-SNAPSHOT \
+ version
+```
+
+Or install it as a persistent command:
+
+```shell
+jbang app install --name camel \
+ -Drepos=mavenLocal,central \
+ --main=main.CamelJBang \
+ --deps=org.apache.camel:camel-jbang-core:4.21.0-SNAPSHOT \
+ org.apache.camel:camel-jbang-main:4.21.0-SNAPSHOT
+
+camel version
+```
\ No newline at end of file