I am trying to setup the enforcer plugin for maven to enforce a minimum Java version. However, whenever I try to run mvn enforcer:enforce
, I get:
I encountered this precise same error while trying to build vertx workshop project. As it turns out, the error is primarily an enforcer plugin version related issue. This following configuration solved it for me.
org.apache.maven.plugins
maven-enforcer-plugin
3.0.0-M3
enforce-java
enforce
enforce
(1.8.0,)