小白记录编写flink程序的maven工程打包过程
mvn clean compile
mvn clean package
mvn clean install
注意因为创建的工程中不止一个主方法,需要指定主方法,在pom.xml指定,在对应plugin配置加这一段话,在贴吧找的,具体哪一篇忘记了,额,应该不会被举发,具体意义,emmmmm,whatever
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.0.0</version>
<executions>
<!-- Run shade goal on package phase -->
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<artifactSet>
<excludes>
<exclud