maven-assembly-plugins 解决依赖第三方jar包,并可执行jar的打包

maven-assembly-plugins 解决依赖第三方jar包,并可执行jar的打包

  • pom.xml配置如下:

pom.xml配置如下:


        
            
                ${project.build.directory}/classes
                src/main/resources
                true
                
                    **/*.xml
                    **/*.conf
                
            
        

        
            
            
                net.alchim31.maven
                scala-maven-plugin
                3.2.1
                
                    
                        scala-compile-first
                        process-resources
                        
                            add-source
                            compile
                        
                    
                
            

            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.1
                
                    1.8
                    1.8
                    UTF-8
                
                
                    
                        compile
                        
                            compile
                        
                    
                
            

            
                org.apache.maven.plugins
                maven-assembly-plugin
                2.3
                
                    false
                    
                        jar-with-dependencies
                    
                    
                        
                            com.swordfall.restserver.base.WebServer
                        
                    
                
                
                    
                        make-assembly
                        package
                        
                            assembly
                        
                    
                
            
        
    

你可能感兴趣的:(maven-assembly-plugins 解决依赖第三方jar包,并可执行jar的打包)