You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2023/04/11 11:30:41 UTC

[camel] branch camel-3.x updated: CAMEL-19259: camel-maven-plugin - Use configured main-class instead of KameletMain

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch camel-3.x
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/camel-3.x by this push:
     new a3d4893556a CAMEL-19259: camel-maven-plugin - Use configured main-class instead of KameletMain
a3d4893556a is described below

commit a3d4893556a661a8f0ff6722a9955d2d57ad368e
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Tue Apr 11 13:28:21 2023 +0200

    CAMEL-19259: camel-maven-plugin - Use configured main-class instead of KameletMain
---
 .../src/main/java/org/apache/camel/maven/RunMojo.java                   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
index 6862b1db8f5..baf1f64d151 100644
--- a/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
+++ b/tooling/maven/camel-maven-plugin/src/main/java/org/apache/camel/maven/RunMojo.java
@@ -363,7 +363,7 @@ public class RunMojo extends AbstractExecMojo {
             extraPluginDependencyArtifactId = "camel-cdi";
             getLog().info("Using " + mainClass + " to initiate a CamelContext");
             getLog().warn("Running CDI in camel-maven-plugin is deprecated");
-        } else if (usingKameletMain) {
+        } else if (mainClass == null && usingKameletMain) {
             mainClass = "org.apache.camel.main.KameletMain";
             // must include plugin dependencies for kamelet
             extraPluginDependencyArtifactId = "camel-kamelet-main";