maven打包jar文件

2021-01-22 22:13

阅读:741

标签:conf   pid   art   res   org   als   cti   col   oal   

             plugin>
                groupId>org.apache.maven.pluginsgroupId>
                artifactId>maven-shade-pluginartifactId>
                version>1.2.1version>
                executions>
                    execution>
                        phase>packagephase>
                        goals>
                            goal>shadegoal>
                        goals>
                        configuration>
                            transformers>
                                transformer
                                        implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                                    mainClass>com.study.AppmainClass>
                                transformer>
                            transformers>
                        configuration>
                    execution>
                executions>
            plugin>

打包之后,即可通过 java -jar xxx.jar 运行

 

maven打包jar文件

标签:conf   pid   art   res   org   als   cti   col   oal   

原文地址:https://www.cnblogs.com/chong-zuo3322/p/12887709.html


评论


亲,登录后才可以留言!