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 6903b1338b2 CAMEL-18151: camel-jbang - Export to support maven
wrappers out of the box
6903b1338b2 is described below
commit 6903b1338b2ef07bac1f66599115d125db953b76
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 17 15:11:27 2022 +0200
CAMEL-18151: camel-jbang - Export to support maven wrappers out of the box
---
docs/user-manual/modules/ROOT/pages/camel-jbang.adoc | 15 ---------------
.../camel/dsl/jbang/core/commands/ExportBaseCommand.java | 2 +-
2 files changed, 1 insertion(+), 16 deletions(-)
diff --git a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
index 19e239e8a52..876f4ae3b88 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-jbang.adoc
@@ -631,21 +631,6 @@ To export to another directly (copies the files) you
execute:
camel export --runtime=spring-boot --gav=com.foo:acme:1.0-SNAPSHOT
--dir=../myproject
----
-To make the exported project easy to run with Apache Maven using Maven
Wrapper, then you can export as follows:
-
-[source,bash]
-----
-camel export --runtime=spring-boot --gav=com.foo:acme:1.0-SNAPSHOT
--dir=../myproject --maven-wrapper=true
-----
-
-Which allows users to work with the project without having Maven installed as
a CLI, by executing the `mvnw` command as shown:
-
-[source,bash]
-----
-cd myproject
-mvnw spring-boot:run
-----
-
TIP: See the possible options by running: `camel export --help` for more
details.
=== Exporting to Camel Quarkus
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java
index a8921e1249c..b808a396e28 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ExportBaseCommand.java
@@ -82,7 +82,7 @@ abstract class ExportBaseCommand extends CamelCommand {
defaultValue = "2.9.2.Final")
protected String quarkusVersion;
- @CommandLine.Option(names = { "--maven-wrapper" }, defaultValue = "false",
+ @CommandLine.Option(names = { "--maven-wrapper" }, defaultValue = "true",
description = "Include Maven Wrapper files in exported
project")
protected boolean mavenWrapper;