I'm trying to run maven build with java 6, but unfortunately I have one dependency in my pom file, that compiled with java 7.
Is it possible to fix without java upgrade?
Thanks.
I'm trying to run maven build with java 6, but unfortunately I have one dependency in my pom file, that compiled with java 7.
Is it possible to fix without java upgrade?
Thanks.
No. You can't. For dependencies which require java 7 to run, you must have at least java 7 in maven.
You can configure Maven Toolchain to handle that. so you decouple the JDK version which is used for Maven from the one you need to compile your classes with and which the tests can be run with.