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 93d8abde61e CAMEL-18050: Add limitation about uber-jar and modeline
93d8abde61e is described below
commit 93d8abde61e9b509c9f14be8c385cb0c86c49497
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon May 9 09:31:50 2022 +0200
CAMEL-18050: Add limitation about uber-jar and modeline
---
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 6023ffd6d22..8da62352a51 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -297,8 +297,6 @@ For example. you can copy this to your clipboard and then
run it afterwards:
camel run clipboard.xml
----
-
-
=== Using platform-http component
When a route is started from `platform-http` then CamelJBang will
automatically include a VertX HTTP server
@@ -396,7 +394,7 @@ This make it quick to implement a Camel route for a given
operation.
See the
https://github.com/apache/camel-kamelets-examples/tree/main/jbang/open-api)[open-api
example] for more details.
-== Packaging
+== Packaging as uber-jar
The Camel JBang application can be packaged as a standalone _uber-jar_ without
the need for JBang to run the application.
@@ -417,6 +415,9 @@ You can run the JAR with Java as follows:
java -jar camel-runner.jar
----
+NOTE: Packaging as uber-jar does not support using Camel K modeline style
configurations.
+It is better practice specifying configurations in external files such as
`application.properties`.
+
== Creating Projects
You can _export_ your Camel JBang application to a traditional Java based
project such as Spring Boot or Quarkus.