Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Cant mvn install citrus with Java 1.7 #73
I've configured my env as it says on the readme file, setting up javahome and using java +7:
$ sudo update-alternatives --config java
However the clean install still fails with problems with Jetty Java version problems:
Its clear for me that mvn is compiling the project with a different java version and this is causing the error scenario, however project readme instructions are clear on the point of using 1.7 and this is the one I'm currently using.
I've updated to Java 8 and the installation now works, documentation need to be updated in order to alert user that Java 8 is required.
Jetty 9.3.6.v20151106 switched to Java 8 although this was only a minor version upgrade, argh! You should be able to run Citrus with Java 7 as long as you are not using citrus-http or citrus-websocket module in your project.
If you build Citrus from scratch of course you now have to use Java 8 although Citrus itself is not using any Java 8 features at the moment.
You could force Maven to use the previous Jetty version b excluding the dependency from citrus-http:
Now you could add the Jetty Java 7 dependency to your POM and you are ready to go with Java 7 again.
Sorry for that I did not expect Jetty to switch to Java 8 in that version upgrade