maven生成jar包

配置pom文件


        
            
                maven-dependency-plugin
                
                    
                        unpack
                        package
                        
                            unpack
                        
                        
                            
                                
                                    com.alibaba
                                    dubbo
                                    ${project.build.directory}/dubbo
                                    META-INF/assembly/**
                                
                            
                        
                    
                
            
            
                maven-assembly-plugin
                
                    src/main/assembly/assembly.xml
                
                
                    
                        make-assembly
                        package
                        
                            single
                        
                    
                
            
        
    

生成eclipse项目文件

SET MAVEN_OPTS= -Xms512M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=128M -XX:ReservedCodeCacheSize=64M
mvn eclipse:clean eclipse:eclipse -Dwtpversion=2.0

发布项目到本地仓库

SET MAVEN_OPTS= -Xms512M -Xmx512M -XX:PermSize=128M -XX:MaxPermSize=128M -XX:ReservedCodeCacheSize=64M
mvn clean install -Dmaven.test.skip=true

你可能感兴趣的:(maven生成jar包)