Maven enforcer plugin missing or invalid rules

后端 未结 3 1473
Happy的楠姐
Happy的楠姐 2021-02-07 00:50

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:

3条回答
  •  执念已碎
    2021-02-07 00:59

    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,)
              
            
          
        
      
    
    

提交回复
热议问题