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

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

I have a fairly simple Maven project:


    
        ...
    
         


        
8条回答
  •  -上瘾入骨i
    2020-12-02 04:51

    I know this is old post but I struggled today with this problem also and I used template from this page: http://maven.apache.org/plugins/maven-dependency-plugin/usage.html

    
      [...]
      
        
          
            org.apache.maven.plugins
            maven-dependency-plugin
            2.7
            
              
                copy
                package
                
                  copy
                
                
                  
                    
                      [ groupId ]
                      [ artifactId ]
                      [ version ]
                      [ packaging ]
                       [classifier - optional] 
                      [ true or false ]
                      [ output directory ]
                      [ filename ]
                    
                  
                  
                
              
            
          
        
      
      [...]
    
    

    and everything works fine under m2e 1.3.1.

    When I tried to use

    
        
            
                org.apache.maven.plugins
                maven-dependency-plugin
                2.4
                
                    
                        copy-dependencies
                        package
                        
                            copy-dependencies
                        
                        
                            ${project.build.directory}/dependencies
                            
                    
                
            
        
    
    

    I also got m2e error.

提交回复
热议问题