Maven打包,可以打2个jar包,包含依赖包和不包含依赖包


    src/main/java
    src/main/java

    
        
            maven-assembly-plugin
            
                
                    jar-with-dependencies
                
                
                    
                        LogReadAndWrite
                    
                
            
            
                
                    make-assembly
                    package
                    
                        single
                    
                
            
        

        
            org.codehaus.mojo
            exec-maven-plugin
            1.2.1
            
                
                    
                        exec
                    
                
            
            
                java
                true
                false
                compile
                LogReadAndWrite
            
        

        
            org.apache.maven.plugins
            maven-compiler-plugin
            
                1.6
                1.6
            
        
    

你可能感兴趣的:(spark)