Maven打tar包

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

根目录下创建assembly.xml


    1.0.0.1
    
        
        tar
    
    
        
            /lib
        
    
    
    
        
            src/main/scripts
            ../
        
        
            ${project.build.directory}
            ../
            
                ssoProvider.jar
            
        
    

在pom文件下:


    ssoProvider
    src/main/java
   
 
        
            src/main/resources
        
       
            src/main/scripts
            ${project.build.directory}/scripts
        
    
    
        
        
            org.apache.maven.plugins
            maven-compiler-plugin
            
                1.7
                1.7
                UTF-8
            
        
        
        
            org.apache.maven.plugins
            maven-jar-plugin
            
                
                    
                        true
                        lib/
                        com.heli.sso.Main
                    
                
            
        
        
        
            org.apache.maven.plugins
            maven-resources-plugin
            2.3
            
                UTF-8
            
        
        
        
            maven-source-plugin
            2.1
            
                true
            
            
                
                    compile
                    
                        jar
                    
                
            
        
        
            org.apache.maven.plugins
            maven-surefire-plugin
            2.18.1
            
                true
            
        
        
            org.apache.maven.plugins
            maven-assembly-plugin
            2.4
            
                
                    assembly.xml
                
            
            
                
                
                    make-assembly
                    package
                    
                        single
                    
                
            
        
    


转载于:https://my.oschina.net/vincentzhao/blog/424692

你可能感兴趣的:(Maven打tar包)