maven打包deploy指定module

打二方包

mvn deploy -pl moduleName -am

moduleName是需要替换成你项目中的子module的名字

-pl, --projects
Build specified reactor projects instead of all projects
-am, --also-make
If project list is specified, also build projects required by the list

打source包


    
        
            org.apache.maven.plugins
            maven-source-plugin
            2.1.2
            
                
                    attach-sources
                    package
                    
                        jar-no-fork
                    
                
            
        
    

你可能感兴趣的:(工作笔记)