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

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

I have a fairly simple Maven project:


    
        ...
    
         


        
8条回答
  •  北海茫月
    2020-12-02 04:38

    Despite answer from CaioToOn above, I still had problems getting this to work initially.

    After multiple attempts, finally got it working. Am pasting my final version here - hoping it will benefit somebody else.

         
            
                 
                
                    org.apache.maven.plugins
                    maven-dependency-plugin
                    2.8
                    
                        
                            copy
                            package
                            
                                copy-dependencies
                            
                            
                                ${project.build.directory}/libMD
                            
                        
                    
                
            
            
            
                
                    
                        org.eclipse.m2e
                        lifecycle-mapping
                        1.0.0
                        
                            
                                
                                    
                                        
                                            org.apache.maven.plugins
                                            maven-dependency-plugin
                                            [2.0,)
                                            
                                                copy-dependencies
                                            
                                        
                                        
                                            
                                        
                                    
                                
                            
                        
                    
                
            
        
    

提交回复
热议问题