springboot打包排除第三方依赖

修改pom文件即可


        

            
            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    ZIP
                       
                        
                            nothing
                            nothing
                        
                    
                
                
                    
                        
                            repackage
                        
                    
                
            
            

            
            
                maven-assembly-plugin
                
                    
                        jar-with-dependencies
                    
                
                
                    
                        make-assembly
                        package
                        
                            single
                        
                    
                
            


            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                
                    
                        copy-dependencies
                        prepare-package
                        
                            copy-dependencies
                        
                        
                            ${project.build.directory}/lib
                            false
                            false
                            true
                        
                    
                
            
            

        
    

 

你可能感兴趣的:(java)