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 2020/04/03 14:12:33 UTC
[camel] branch master updated: CAMEL-14838: Fixed mvn camel:run for
standalone
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/master by this push:
new fd6bcf7 CAMEL-14838: Fixed mvn camel:run for standalone
fd6bcf7 is described below
commit fd6bcf742a7d0bbe02f625dc60f0b0bf16b2151a
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Fri Apr 3 16:12:10 2020 +0200
CAMEL-14838: Fixed mvn camel:run for standalone
---
.../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 93e364f..81d8ef2 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
@@ -445,7 +445,7 @@ public class RunMojo extends AbstractExecMojo {
final ClassLoader loader = getClassLoader();
IsolatedThreadGroup threadGroup = new IsolatedThreadGroup(mainClass /* name */);
- if (!detectBlueprintMainOnClassPath()) {
+ if (usingBlueprintMain && !detectBlueprintMainOnClassPath()) {
throw new MojoFailureException("Cannot run OSGi Blueprint Main because camel-blueprint-main JAR is not available on classpath");
}