打jar包在linux上执行

2020-12-13 20:19

阅读:355

标签:config   make   pre   plugins   end   color   archive   ref   ons   

1.jar包插件

        plugin>
                groupId>org.apache.maven.pluginsgroupId>
                artifactId>maven-assembly-pluginartifactId>
                version>2.5.5version>
                configuration>
                    descriptorRefs>
                        descriptorRef>jar-with-dependenciesdescriptorRef>
                    descriptorRefs>
                    archive>
                        manifest>
                            mainClass>cn.crxy.mc.MainmainClass>
                        manifest>
                    archive>
                    finalName>McIDEfinalName>
                configuration>
                executions>
                    execution>
                        id>make-assemblyid>
                        phase>packagephase>
                        goals>
                            goal>singlegoal>
                        goals>
                    execution>
                executions>
            plugin>

2.jar -cp xxx.jar  包名.类名

打jar包在linux上执行

标签:config   make   pre   plugins   end   color   archive   ref   ons   

原文地址:https://www.cnblogs.com/lovemeng1314/p/11728152.html


评论


亲,登录后才可以留言!