maven打包插件:appassembler

项目

https://www.jianshu.com/p/d8b8bbfc8764

github:https://github.com/ln0491/dubbo-demo

pom.xml


    4.0.0
    
        com.ghgcn
        dubbo
        0.0.1-SNAPSHOT
    
    dubbo-provider
    
        
            com.ghgcn
            dubbo-api
            ${project.version}
        
        
            com.alibaba
            dubbo
            ${dubbo.version}
            
                
                    org.jboss.netty
                    netty
                
            
        

        
            io.netty
            netty-all
            ${version.netty}
        
        
            io.netty
            netty
            3.10.5.Final
        
        
            org.apache.curator
            curator-framework
            ${version.curator}
        
        
            ch.qos.logback
            logback-classic
            ${version.logback}
        
    
    
        dubbo-provider
        
            
                src/main/resources
                true
            
        
        
            
                org.apache.maven.plugins
                maven-compiler-plugin
                3.2
                
                    ${version.jdk}
                    ${version.jdk}
                    ${project.build.sourceEncoding}
                
            



            
                org.codehaus.mojo
                appassembler-maven-plugin
                2.0.0
                
                    
                        generate-jsw-scripts
                        package
                        
                            generate-daemons
                        
                        

                            ${project.build.directory}/dubbo-provider
                            lib
                            
                            bin
                            conf
                            false
                            true
                            src/main/resources
                            flat
                            UTF-8
                            logs
                            true

                            
                            
                            
                                
                                    dubbo-provider
                                    com.alibaba.dubbo.container.Main
                                    
                                        jsw
                                    
                                    
                                        
                                            jsw
                                            
                                                linux-x86-32
                                                linux-x86-64
                                                windows-x86-32
                                                windows-x86-64
                                            
                                            
                                                
                                                    configuration.directory.in.classpath.first
                                                    conf
                                                
                                                
                                                    wrapper.ping.timeout
                                                    120
                                                
                                                
                                                    set.default.REPO_DIR
                                                    lib
                                                
                                                
                                                    wrapper.ping.interval
                                                    10
                                                
                                                
                                                    wrapper.logfile
                                                    logs/out.log
                                                
                                            
                                        
                                    
                                    
                                        256M
                                        384M
                                        
                                            -server
                                    
                                        
                                    
                                
                            
                        
                    
                
            

        
    

运行命令

clean package -pl dubbo-provider -am -Dmaven.test.skip=true


maven打包插件:appassembler_第1张图片
image.png
maven打包插件:appassembler_第2张图片
image.png

maven打包插件:appassembler_第3张图片
image.png

路径

Installing artifact D:\javawork\study\dubbo\dubbo-provider\target\dubbo-provider.jar to D:\javawork\study\dubbo\dubbo-provider\target\generated-resources\appassembler\jsw\dubbo-provider\lib\dubbo-provider-0.0.1-SNAPSHOT.jar

目录:


maven打包插件:appassembler_第4张图片
image.png

lib


maven打包插件:appassembler_第5张图片
image.png

bin 角本
maven打包插件:appassembler_第6张图片
image.png

启动服务

dubbo-provider start
maven打包插件:appassembler_第7张图片
image.png

消息者测试

maven打包插件:appassembler_第8张图片
image.png

maven打包插件:appassembler_第9张图片
image.png

github:https://github.com/ln0491/dubbo-demo

你可能感兴趣的:(maven打包插件:appassembler)