功能:
idea开发maven项目进行打包并支持 jar可执行主程序
主要配置项为pom的打包配置项
详情如下:
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-assembly-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- 配置主程序-->
<archive>
<manifest>
<mainClass>${exec.mainClass}</mainClass>
</manifest>
</archive>
<!-- 生成对应后缀的ja