解决Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle

问题呈现:

解决Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-checkstyle_第1张图片

解决步骤:

1、

进入eclipse菜单Window->Preferences->Maven->Lifecycle Mappings, 
单击Open workspace lifecycle mappings metadata按钮,新建一个lifecycle-mapping-metadata.xml文件

2、

编辑lifecycle-mapping-metadata.xml内容如下并保存: 



  
    
      
        org.apache.maven.plugins
        maven-checkstyle-plugin
        
          check
        
        [0.0,)
      
      
        
      
      
    
      
        org.codehaus.mojo
        build-helper-maven-plugin
        
          parse-version
        
        [0.0,)
      
      
        
      
    
  

3、

在Window->Preferences->Maven->Lifecycle Mappings中指定好mapping file location,单击Reload workspace lifecycle mappings metadata按钮重新加载该文件。

4、

Update Maven Project    (或Alt+F5)可解决

你可能感兴趣的:(maven)