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 c777a58 mvn camel:run - Avoid logging twice about detected
camel-kamelet-main
c777a58 is described below
commit c777a58c6a992bc0ac91e2461f680c68e182783e
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Jun 19 09:04:34 2021 +0200
mvn camel:run - Avoid logging twice about detected camel-kamelet-main
---
.../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 5e62435..8dd895b 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
@@ -413,7 +413,7 @@ public class RunMojo extends AbstractExecMojo {
final ClassLoader loader = getClassLoader();
IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /*
name */);
- if (usingKameletMain && !detectKameletOnClassPath()) {
+ if (useKamelet != null && usingKameletMain &&
!detectKameletOnClassPath()) {
throw new MojoFailureException(
"Cannot run Kamelet Main because camel-kamelet-main JAR is
not available on classpath");
}