maven lib和jar单独打包springboot 项目配置

参考配置

  
        xxxxxx
        
            
                org.springframework.boot
                spring-boot-maven-plugin
                2.4.3
                
                    
                        
                            repackage
                        
                    
                
                
                    ZIP
                    
                        
                        
                            nothing
                            nothing
                        
                    
                    com.xxx.xxx.XxxxApplication
                
            
            
                org.apache.maven.plugins
                maven-surefire-plugin
                2.22.2
                
                    true
                
            
            
                org.apache.maven.plugins
                maven-dependency-plugin
                3.0.1
                
                    
                        
                            copy-dependencies
                        
                        
                            
                            ${project.build.directory}/lib
                            
                            false
                            
                            false
                        
                    
                
            
        
    

第二种


                org.apache.maven.plugins
                maven-surefire-plugin
                2.22.2
                
                    true
                
            
            
                org.apache.maven.plugins
                maven-jar-plugin
                
                    
                    
                    
                        
                            true
                            
                            lib/
                            
                            false
                            
                            com.xxx.api.XXXApplication
                        
                        
                            
                            ./resources/
                        
                    
                    ${project.build.directory}
                
            


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

你可能感兴趣的:(springboot,企业开发配置实战,jar,spring,boot,maven)