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

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

I have a fairly simple Maven project:


    
        ...
    
         


        
8条回答
  •  不思量自难忘°
    2020-12-02 04:42

    This is a problem of M2E for Eclipse M2E plugin execution not covered.

    To solve this problem, all you got to do is to map the lifecycle it doesn't recognize and instruct M2E to execute it.

    You should add this after your plugins, inside the build. This will remove the error and make M2E recognize the goal copy-depencies of maven-dependency-plugin and make the POM work as expected, copying dependencies to folder every time Eclipse build it. If you just want to ignore the error, then you change for . No need for enclosing your maven-dependency-plugin into pluginManagement, as suggested before.

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

提交回复
热议问题