camelinaction/camelinaction2

mvn compile exec:java fails in Chapter16/jolokia

bd-robert-dean opened this issue · 2 comments

I am new to Maven, Java and Camel. If I am doing something wrong, please let me know what I need to fix.
[ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.6.0:java (default-cli) on project chapter16-jolokia: Unable to parse configuration of mojo org.codehaus.mojo:exec-maven-plugin:1.6.0:java for parameter arguments: Cannot store value into array: arraycopy: element type mismatch: can not cast one of the elements of java.lang.Object[] to the type of the destination array, java.lang.String -> [Help 1]

maven --version
Apache Maven 3.6.0
Maven home: /usr/share/maven
Java version: 11.0.7, vendor: Ubuntu, runtime: /usr/lib/jvm/java-11-openjdk-amd64
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.3.0-51-generic", arch: "amd64", family: "unix"

You need Java 8 for the older Camel 2.x version (master branch)
And for Camel v3 then we have dedicated branches for the releases where you can use JDK 11