maven打包配置

对于第三方引入的jar包,如果通过 ${project.basedir} 加载项目中的第三方jar包,可以编译运行,但是第三方jar包打不进去,具体可以看 下一篇 



    4.0.0

    
    com.hydee.hwervice
    HwService
    1.0-HwService
    
        UTF-8
        
        Program
    
    
        
            
                org.apache.maven.plugins
                maven-shade-plugin
                2.4.1

                
                    
                        package
                        
                            shade
                        
                        
                            
                                
                                    *:*
                                    
                                        META-INF/*.SF
                                        META-INF/*.DSA
                                        META-INF/*.RSA
                                    
                                
                            
                            
                                
                                    Program
                                
                            
                            false
                        
                    
                
            
            
                org.apache.maven.plugins
                maven-compiler-plugin
                
                    6
                    6
                    UTF-8
                    
              libs
             
                    
                
            
        
    

    
        
            com.fasterxml.jackson.core
            jackson-core
            2.1.0
        
        
            com.fasterxml.jackson.core
            jackson-databind
            2.1.0
        
        
            com.fasterxml.jackson.core
            jackson-annotations
            2.1.0
        

        
            org.apache.commons
            commons-collections4
            4.3
        
        
            commons-digester
            commons-digester
            1.8
        
        
            log4j
            log4j
            1.2.17
        
        
            com.alibaba
            fastjson
            1.2.47
        
        
            
            com.jasperreports
            jasperreports
            6.8
        
        
            
            com.communication.nettyserver
            communication-nettyserver
            1.0
        
        
            
            com.communication.protocol
            communication-protocol
            1.0
        
        
            io.netty
            netty-all
            4.1.36.Final
        
    

 

你可能感兴趣的:(Java)