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 27ca3c39192 CAMEL-18151: camel-jbang - Export command for camel-main
27ca3c39192 is described below

commit 27ca3c39192ddb593b083d4a5c1b7cfd8c359570
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Jun 2 11:10:21 2022 +0200

    CAMEL-18151: camel-jbang - Export command for camel-main
---
 .../modules/ROOT/pages/camel-jbang.adoc            | 26 +++++++++++++++++++++-
 1 file changed, 25 insertions(+), 1 deletion(-)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc 
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 741c0ae3344..2c33751fc22 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -540,7 +540,7 @@ You can _export_ your Camel JBang application to a 
traditional Java based projec
 
 You may want to do this after you have built a prototype using Camel JBang, 
and are in need
 of a traditional Java based project with more need for Java coding, or wanting 
to use the powerful
-runtimes of Spring Boot or Quarkus.
+runtimes of Spring Boot, Quarkus or vanilla Camel Main.
 
 === Exporting to Camel Spring Boot
 
@@ -590,6 +590,30 @@ camel export quarkus --gav=com.foo:acme:1.0-SNAPSHOT 
--dir=../myproject
 
 TIP: See the possible options by running: `camel export quarkus --help` for 
more details.
 
+=== Exporting to Camel Main
+
+The command `export camel-main` will export your current Camel JBang file(s) 
to a Maven based
+vanilla Camel Main project with files organized in `src/main/` folder 
structure.
+
+For example to export to Camel Main using the Maven groupId _com.foo_ and the 
artifactId _acme_
+and with version _1.0-SNAPSHOT_ you simply execute:
+
+[source,bash]
+----
+camel export camel-main --gav=com.foo:acme:1.0-SNAPSHOT
+----
+
+NOTE: This will export to the _current_ directory, meaning that files are 
moved into the needed folder structure.
+
+To export to another directly (copies the files) you execute:
+
+[source,bash]
+----
+camel export camel-main --gav=com.foo:acme:1.0-SNAPSHOT --dir=../myproject
+----
+
+TIP: See the possible options by running: `camel export camel-main --help` for 
more details.
+
 == Troubleshooting
 
 When using https://www.jbang.dev/[JBang] then JBang stores state in `~/.jbang` 
directory.

Reply via email to