maven-dependency-plugin (goals “copy-dependencies”, “unpack”) is not supported by m2e

前端 未结 8 1076
一个人的身影
一个人的身影 2020-12-02 03:59

I have a fairly simple Maven project:


    
        ...
    
         


        
8条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-02 04:55

    It seems to be a known issue. You can instruct m2e to ignore this.

    Option 1: pom.xml

    Add the following inside your tag:

    
    
        
        
            org.eclipse.m2e
            lifecycle-mapping
            1.0.0
            
                
                    
                        
                        
                            
                                org.apache.maven.plugins
                                maven-dependency-plugin
                                [1.0.0,)
                                
                                    copy-dependencies
                                
                            
                            
                                
                            
                        
                    
                
            
        
       
    

    You will need to do Maven... -> Update Project Configuration on your project after this.

    Read more: http://wiki.eclipse.org/M2E_plugin_execution_not_covered#m2e_maven_plugin_coverage_status

    Option 2: Global Eclipse Override

    To avoid changing your POM files, the ignore override can be applied to the whole workspace via Eclipse settings.

    Save this file somewhere on the disk: https://gist.github.com/maksimov/8906462

    In Eclipse/Preferences/Maven/Lifecycle Mappings browse to this file and click OK:

    Eclipse Settings

提交回复
热议问题