Hi I had written this rule for the enforcer plugin which actually checks the label of jdk version in toolchains against output of javc --version. It works for my limited scenario @work and definetely requires more attention to cope with non oracle compilers and the apache way.
https://github.com/paulmoloney/maven-enforcer-toolchain-rules regards, Paul
