springboot项目打包时不打依赖包

在项目的pom文件内增加下面的配置

            
                org.springframework.boot
                spring-boot-maven-plugin
                
                    true
                    ZIP
                    
                    
                        
                            nothing
                            nothing
                        
                    
                
            
            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                
                    
                        copy-dependencies
                        package
                        
                            copy-dependencies
                        
                        
                            
                            ${project.build.directory}/lib
                            false
                            false
                            true
                            
                            
                                log4j-api
                            
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                        
                            true
                            lib/
                            
                            com.shiyi.BlogApplication
                        
                    
                
            

你可能感兴趣的:(spring,boot,mybatis,java)