maven打包和添加本地包

maven添加本地包命令mvn install:install-file

mvn install:install-file -DgroupId=com.xinyartech -DartifactId=easyexcel -Dversion=1.1.1 -Dpackaging=jar -Dfile=/root/shell/easyexcel-1.1.1.jar   

-Dfile:要注册的jar,绝对路径

maven打包


    
        
        
            org.apache.maven.plugins
            maven-dependency-plugin
            
                
                    copy-dependencies
                    prepare-package
                    
                        copy-dependencies
                    
                    
                        ${project.build.directory}/lib
                        false
                        false
                        true
                    
                
            
        
        
        
            maven-assembly-plugin
            
                
                    jar-with-dependencies
                
                
                    
                        com.yzx.udf.UDFJdModel
                        true
                    
                
            
            
                
                    make-assembly
                    package
                    
                        single
                    
                
            
        
    

你可能感兴趣的:(maven打包和添加本地包)