Build with Java 17
Presumably the explicit java-11-openjdk requirement dates back to when
1.8.0 was the default. 11 was the default version since Fedora 33 and
RHEL 9, 17 is now the default since Fedora 36 and RHEL 10, and older
versions are unwanted in RHEL 10. Java 17 does not supports 1.6 as
source/target, but at this point nobody should be using anything earlier
than 1.8, which is now the default of maven-compiler-plugin.