Plain Java Skeleton Starter for Vaadin doesn't seem to build with OpenJDK 1

If I run it ( with OpenJDK 11 all the way to OpenJDK 15 and the latest version of maven it works fine but if I try to run it with OpenJDK 16 I get:

 Error injecting: org.apache.maven.plugin.war.WarMojo Unable to provision, see the following errors:

1) Error injecting constructor, java.lang.ExceptionInInitializerError: Cannot access defaults field of Properties
  at org.apache.maven.plugin.war.WarMojo.<init>(Unknown Source)
  while locating org.apache.maven.plugin.war.WarMojo

and so on…

The command used is mvn clean install. I used -X to get more details but it comes down to the same issue.


I was able to reproduce this with JDK 17. I guess older versions of Maven pull in old war plugin version, which is not compatible with latest JDKs. Pretty easy to fix. Prepared a pull request that fixes this, but if you need it faster, check the required changes from the PR: