When cross compiling with newer JDKs against an older JDK API, it might happen, that a JDK API is used, which is not available in the intended Java version. Using maven.compiler.release will migitate this.

Comment From: mhalbritter

Thank you!