This is an automated email from the ASF dual-hosted git repository.
orpiske 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 6576498 Fix camel-maven-plugin error breaking the CI (#5708)
6576498 is described below
commit 6576498daaddddf264abf1f838070ad263386446
Author: Otavio Rodolfo Piske <[email protected]>
AuthorDate: Fri Jun 18 16:43:03 2021 +0200
Fix camel-maven-plugin error breaking the CI (#5708)
Reverts one of the changes introduced by the commit
6d233b66756a109d4c414b8b917bb9c95859d7d6 which was causing the plugin to fail
---
.../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 91d26ba..5e62435 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
@@ -426,7 +426,7 @@ public class RunMojo extends AbstractExecMojo {
getLog().info("Starting Camel ...");
Method main =
Thread.currentThread().getContextClassLoader()
.loadClass(mainClass).getMethod("main",
String[].class);
- main.invoke(null, arguments);
+ main.invoke(null, new Object[] { arguments });
afterBootstrapCamel();
} catch (Exception e) { // just pass it on