标签:conf pid art res org als cti col oal
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-shade-plugin</artifactId> <version>1.2.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <transformers> <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer"> <mainClass>com.study.App</mainClass> </transformer> </transformers> </configuration> </execution> </executions> </plugin>
打包之后,即可通过 java -jar xxx.jar 运行
标签:conf pid art res org als cti col oal
原文地址:https://www.cnblogs.com/chong-zuo3322/p/12887709.html