|
@@ -19,8 +19,8 @@
|
|
|
<maven.compiler.source>8</maven.compiler.source>
|
|
|
<maven.compiler.target>8</maven.compiler.target>
|
|
|
<connector.version>1.13-vvr-4.0.7</connector.version>
|
|
|
- <scope>compile</scope>
|
|
|
- <!-- <scope>provided</scope>-->
|
|
|
+ <!-- <scope>provided</scope>-->
|
|
|
+ <scope>provided</scope>
|
|
|
</properties>
|
|
|
|
|
|
<repositories>
|
|
@@ -51,19 +51,19 @@
|
|
|
<dependencies>
|
|
|
<!-- Apache Flink dependencies -->
|
|
|
<!-- These dependencies are provided, because they should not be packaged into the JAR file. -->
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.flink</groupId>
|
|
|
- <artifactId>flink-avro</artifactId>
|
|
|
- <version>${flink.version}</version>
|
|
|
- <scope>${scope}</scope>
|
|
|
- </dependency>
|
|
|
-
|
|
|
- <dependency>
|
|
|
- <groupId>org.apache.flink</groupId>
|
|
|
- <artifactId>flink-runtime-web_${scala.binary.version}</artifactId>
|
|
|
- <version>${flink.version}</version>
|
|
|
- <scope>${scope}</scope>
|
|
|
- </dependency>
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>org.apache.flink</groupId>-->
|
|
|
+ <!-- <artifactId>flink-avro</artifactId>-->
|
|
|
+ <!-- <version>${flink.version}</version>-->
|
|
|
+ <!-- <scope>${scope}</scope>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
+
|
|
|
+ <!-- <dependency>-->
|
|
|
+ <!-- <groupId>org.apache.flink</groupId>-->
|
|
|
+ <!-- <artifactId>flink-runtime-web_${scala.binary.version}</artifactId>-->
|
|
|
+ <!-- <version>${flink.version}</version>-->
|
|
|
+ <!-- <scope>${scope}</scope>-->
|
|
|
+ <!-- </dependency>-->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.flink</groupId>
|
|
|
<artifactId>flink-scala_${scala.binary.version}</artifactId>
|
|
@@ -219,7 +219,6 @@
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
-
|
|
|
<dependency>
|
|
|
<groupId>org.apache.flink</groupId>
|
|
|
<artifactId>flink-test-utils_${scala.binary.version}</artifactId>
|
|
@@ -236,158 +235,158 @@
|
|
|
</dependency>
|
|
|
</dependencies>
|
|
|
|
|
|
- <build>
|
|
|
- <finalName>winhc_flink-${project.version}</finalName>
|
|
|
- <plugins>
|
|
|
- <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
|
|
|
- <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-shade-plugin</artifactId>
|
|
|
- <version>3.1.1</version>
|
|
|
- <executions>
|
|
|
- <!-- Run shade goal on package phase -->
|
|
|
- <execution>
|
|
|
- <phase>package</phase>
|
|
|
- <goals>
|
|
|
- <goal>shade</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <artifactSet>
|
|
|
- <excludes>
|
|
|
- <exclude>org.apache.flink:force-shading</exclude>
|
|
|
- <exclude>com.google.code.findbugs:jsr305</exclude>
|
|
|
- <exclude>org.slf4j:*</exclude>
|
|
|
- <exclude>org.apache.logging.log4j:*</exclude>
|
|
|
- </excludes>
|
|
|
- </artifactSet>
|
|
|
- <filters>
|
|
|
- <filter>
|
|
|
- <!-- Do not copy the signatures in the META-INF folder.
|
|
|
- Otherwise, this might cause SecurityExceptions when using the JAR. -->
|
|
|
- <artifact>*:*</artifact>
|
|
|
+ <build>
|
|
|
+ <finalName>winhc_flink-${project.version}</finalName>
|
|
|
+ <plugins>
|
|
|
+ <!-- We use the maven-shade plugin to create a fat jar that contains all necessary dependencies. -->
|
|
|
+ <!-- Change the value of <mainClass>...</mainClass> if your program entry point changes. -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-shade-plugin</artifactId>
|
|
|
+ <version>3.1.1</version>
|
|
|
+ <executions>
|
|
|
+ <!-- Run shade goal on package phase -->
|
|
|
+ <execution>
|
|
|
+ <phase>package</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>shade</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <artifactSet>
|
|
|
<excludes>
|
|
|
- <exclude>META-INF/*.SF</exclude>
|
|
|
- <exclude>META-INF/*.DSA</exclude>
|
|
|
- <exclude>META-INF/*.RSA</exclude>
|
|
|
+ <exclude>org.apache.flink:force-shading</exclude>
|
|
|
+ <exclude>com.google.code.findbugs:jsr305</exclude>
|
|
|
+ <exclude>org.slf4j:*</exclude>
|
|
|
+ <exclude>org.apache.logging.log4j:*</exclude>
|
|
|
</excludes>
|
|
|
- </filter>
|
|
|
- </filters>
|
|
|
- <transformers>
|
|
|
- <transformer
|
|
|
- implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
- <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
|
|
|
- </transformer>
|
|
|
-
|
|
|
- <!-- The service transformer is needed to merge META-INF/services files -->
|
|
|
- <transformer
|
|
|
- implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
- <transformer
|
|
|
- implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
|
|
|
- <projectName>Apache Flink</projectName>
|
|
|
- <encoding>UTF-8</encoding>
|
|
|
- </transformer>
|
|
|
-
|
|
|
- </transformers>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
-
|
|
|
- <!-- Java Compiler -->
|
|
|
- <plugin>
|
|
|
- <groupId>org.apache.maven.plugins</groupId>
|
|
|
- <artifactId>maven-compiler-plugin</artifactId>
|
|
|
- <version>3.1</version>
|
|
|
- <configuration>
|
|
|
- <source>1.8</source>
|
|
|
- <target>1.8</target>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
-
|
|
|
- <!-- Scala Compiler -->
|
|
|
- <plugin>
|
|
|
- <groupId>net.alchim31.maven</groupId>
|
|
|
- <artifactId>scala-maven-plugin</artifactId>
|
|
|
- <version>3.2.2</version>
|
|
|
- <executions>
|
|
|
- <execution>
|
|
|
- <goals>
|
|
|
- <goal>compile</goal>
|
|
|
- <goal>testCompile</goal>
|
|
|
- </goals>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- <configuration>
|
|
|
- <addScalacArgs>-target:jvm-1.8</addScalacArgs>
|
|
|
- <args>
|
|
|
- <arg>-nobootcp</arg>
|
|
|
- </args>
|
|
|
- </configuration>
|
|
|
- </plugin>
|
|
|
-
|
|
|
- <!-- Eclipse Scala Integration -->
|
|
|
- <!-- <plugin>-->
|
|
|
- <!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
- <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
|
|
|
- <!-- <version>2.8</version>-->
|
|
|
- <!-- <configuration>-->
|
|
|
- <!-- <downloadSources>true</downloadSources>-->
|
|
|
- <!-- <projectnatures>-->
|
|
|
- <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
|
|
|
- <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
|
|
|
- <!-- </projectnatures>-->
|
|
|
- <!-- <buildcommands>-->
|
|
|
- <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
|
|
|
- <!-- </buildcommands>-->
|
|
|
- <!-- <classpathContainers>-->
|
|
|
- <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
|
|
|
- <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
|
|
|
- <!-- </classpathContainers>-->
|
|
|
- <!-- <excludes>-->
|
|
|
- <!-- <exclude>org.scala-lang:scala-library</exclude>-->
|
|
|
- <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
|
|
|
- <!-- </excludes>-->
|
|
|
- <!-- <sourceIncludes>-->
|
|
|
- <!-- <sourceInclude>**/*.scala</sourceInclude>-->
|
|
|
- <!-- <sourceInclude>**/*.java</sourceInclude>-->
|
|
|
- <!-- </sourceIncludes>-->
|
|
|
- <!-- </configuration>-->
|
|
|
- <!-- </plugin>-->
|
|
|
- <plugin>
|
|
|
- <groupId>org.codehaus.mojo</groupId>
|
|
|
- <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
- <version>1.7</version>
|
|
|
- <executions>
|
|
|
- <!-- Add src/main/scala to eclipse build path -->
|
|
|
- <execution>
|
|
|
- <id>add-source</id>
|
|
|
- <phase>generate-sources</phase>
|
|
|
- <goals>
|
|
|
- <goal>add-source</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <sources>
|
|
|
- <source>src/main/scala</source>
|
|
|
- </sources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- <!-- Add src/test/scala to eclipse build path -->
|
|
|
- <execution>
|
|
|
- <id>add-test-source</id>
|
|
|
- <phase>generate-test-sources</phase>
|
|
|
- <goals>
|
|
|
- <goal>add-test-source</goal>
|
|
|
- </goals>
|
|
|
- <configuration>
|
|
|
- <sources>
|
|
|
- <source>src/test/scala</source>
|
|
|
- </sources>
|
|
|
- </configuration>
|
|
|
- </execution>
|
|
|
- </executions>
|
|
|
- </plugin>
|
|
|
- </plugins>
|
|
|
- </build>
|
|
|
+ </artifactSet>
|
|
|
+ <filters>
|
|
|
+ <filter>
|
|
|
+ <!-- Do not copy the signatures in the META-INF folder.
|
|
|
+ Otherwise, this might cause SecurityExceptions when using the JAR. -->
|
|
|
+ <artifact>*:*</artifact>
|
|
|
+ <excludes>
|
|
|
+ <exclude>META-INF/*.SF</exclude>
|
|
|
+ <exclude>META-INF/*.DSA</exclude>
|
|
|
+ <exclude>META-INF/*.RSA</exclude>
|
|
|
+ </excludes>
|
|
|
+ </filter>
|
|
|
+ </filters>
|
|
|
+ <transformers>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
|
|
+ <mainClass>org.myorg.quickstart.StreamingJob</mainClass>
|
|
|
+ </transformer>
|
|
|
+
|
|
|
+ <!-- The service transformer is needed to merge META-INF/services files -->
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
|
|
|
+ <transformer
|
|
|
+ implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer">
|
|
|
+ <projectName>Apache Flink</projectName>
|
|
|
+ <encoding>UTF-8</encoding>
|
|
|
+ </transformer>
|
|
|
+
|
|
|
+ </transformers>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Java Compiler -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.apache.maven.plugins</groupId>
|
|
|
+ <artifactId>maven-compiler-plugin</artifactId>
|
|
|
+ <version>3.1</version>
|
|
|
+ <configuration>
|
|
|
+ <source>1.8</source>
|
|
|
+ <target>1.8</target>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Scala Compiler -->
|
|
|
+ <plugin>
|
|
|
+ <groupId>net.alchim31.maven</groupId>
|
|
|
+ <artifactId>scala-maven-plugin</artifactId>
|
|
|
+ <version>3.2.2</version>
|
|
|
+ <executions>
|
|
|
+ <execution>
|
|
|
+ <goals>
|
|
|
+ <goal>compile</goal>
|
|
|
+ <goal>testCompile</goal>
|
|
|
+ </goals>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ <configuration>
|
|
|
+ <addScalacArgs>-target:jvm-1.8</addScalacArgs>
|
|
|
+ <args>
|
|
|
+ <arg>-nobootcp</arg>
|
|
|
+ </args>
|
|
|
+ </configuration>
|
|
|
+ </plugin>
|
|
|
+
|
|
|
+ <!-- Eclipse Scala Integration -->
|
|
|
+ <!-- <plugin>-->
|
|
|
+ <!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
|
+ <!-- <artifactId>maven-eclipse-plugin</artifactId>-->
|
|
|
+ <!-- <version>2.8</version>-->
|
|
|
+ <!-- <configuration>-->
|
|
|
+ <!-- <downloadSources>true</downloadSources>-->
|
|
|
+ <!-- <projectnatures>-->
|
|
|
+ <!-- <projectnature>org.scala-ide.sdt.core.scalanature</projectnature>-->
|
|
|
+ <!-- <projectnature>org.eclipse.jdt.core.javanature</projectnature>-->
|
|
|
+ <!-- </projectnatures>-->
|
|
|
+ <!-- <buildcommands>-->
|
|
|
+ <!-- <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand>-->
|
|
|
+ <!-- </buildcommands>-->
|
|
|
+ <!-- <classpathContainers>-->
|
|
|
+ <!-- <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer>-->
|
|
|
+ <!-- <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer>-->
|
|
|
+ <!-- </classpathContainers>-->
|
|
|
+ <!-- <excludes>-->
|
|
|
+ <!-- <exclude>org.scala-lang:scala-library</exclude>-->
|
|
|
+ <!-- <exclude>org.scala-lang:scala-compiler</exclude>-->
|
|
|
+ <!-- </excludes>-->
|
|
|
+ <!-- <sourceIncludes>-->
|
|
|
+ <!-- <sourceInclude>**/*.scala</sourceInclude>-->
|
|
|
+ <!-- <sourceInclude>**/*.java</sourceInclude>-->
|
|
|
+ <!-- </sourceIncludes>-->
|
|
|
+ <!-- </configuration>-->
|
|
|
+ <!-- </plugin>-->
|
|
|
+ <plugin>
|
|
|
+ <groupId>org.codehaus.mojo</groupId>
|
|
|
+ <artifactId>build-helper-maven-plugin</artifactId>
|
|
|
+ <version>1.7</version>
|
|
|
+ <executions>
|
|
|
+ <!-- Add src/main/scala to eclipse build path -->
|
|
|
+ <execution>
|
|
|
+ <id>add-source</id>
|
|
|
+ <phase>generate-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>add-source</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <sources>
|
|
|
+ <source>src/main/scala</source>
|
|
|
+ </sources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ <!-- Add src/test/scala to eclipse build path -->
|
|
|
+ <execution>
|
|
|
+ <id>add-test-source</id>
|
|
|
+ <phase>generate-test-sources</phase>
|
|
|
+ <goals>
|
|
|
+ <goal>add-test-source</goal>
|
|
|
+ </goals>
|
|
|
+ <configuration>
|
|
|
+ <sources>
|
|
|
+ <source>src/test/scala</source>
|
|
|
+ </sources>
|
|
|
+ </configuration>
|
|
|
+ </execution>
|
|
|
+ </executions>
|
|
|
+ </plugin>
|
|
|
+ </plugins>
|
|
|
+ </build>
|
|
|
|
|
|
</project>
|