springboot独立打包jar、resources和lib

   
        xxxx
        
            
                org.apache.maven.plugins
                maven-war-plugin
                
                    false
                
            

            
            
                org.springframework.boot
                spring-boot-maven-plugin
                1.5.2.RELEASE
                
                    xxxx
                    ZIP
                    true
                    ${project.build.directory}
                    
                        
                            null
                            null
                        
                    
                
                
                    
                        
                            repackage
                        
                    
                
            

            
            
                org.apache.maven.plugins
                maven-resources-plugin
                
                    
                        copy-resources
                        prepare-package
                        
                            copy-resources
                        
                        
                            UTF-8
                            
                                
                                    src/main/resources
                                
                            
                            ${project.build.directory}/resources
                        
                    
                
            

            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                        **/*.properties
                        **/*.xml
                    
                    
                        
                            true
                            lib/
                            false
                            com.paic.data.core.client.ClientBootstrap
                        
                        
                            resources/
                        
                    
                    ${project.build.directory}
                
            

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

     
    

 

你可能感兴趣的:(spring)