Created
January 13, 2019 02:15
-
-
Save hxer/e2d55d4e82b45b22f9127b7501941c63 to your computer and use it in GitHub Desktop.
pom.xml in flink scala demo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.eflink</groupId> | |
<artifactId>word-count</artifactId> | |
<version>1.0</version> | |
<properties> | |
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | |
<flink.version>1.7.1</flink.version> | |
<scala.binary.version>2.11</scala.binary.version> | |
<scala.version>2.11.12</scala.version> | |
</properties> | |
<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-scala_${scala.binary.version}</artifactId> | |
<version>${flink.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.flink</groupId> | |
<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId> | |
<version>${flink.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.apache.flink</groupId> | |
<artifactId>flink-clients_${scala.binary.version}</artifactId> | |
<version>${flink.version}</version> | |
<scope>provided</scope> | |
</dependency> | |
<dependency> | |
<groupId>org.scala-lang</groupId> | |
<artifactId>scala-library</artifactId> | |
<version>${scala.version}</version> | |
</dependency> | |
</dependencies> | |
<build> | |
<finalName>word-count</finalName> | |
<plugins> | |
<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> | |
<exclude>org.apache.flink:force-shading</exclude> | |
<exclude>com.google.code.findbugs:jsr305</exclude> | |
<exclude>org.slf4j:*</exclude> | |
<exclude>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> | |
<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>com.eflink.SocketWordCount</mainClass> | |
</transformer> | |
</transformers> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> | |
<!--<plugin>--> | |
<!--<groupId>org.apache.maven.plugins</groupId>--> | |
<!--<artifactId>maven-jar-plugin</artifactId>--> | |
<!--<version>2.4</version>--> | |
<!--<executions>--> | |
<!--<execution>--> | |
<!--<id>SocketWordCount</id>--> | |
<!--<phase>package</phase>--> | |
<!--<goals>--> | |
<!--<goal>jar</goal>--> | |
<!--</goals>--> | |
<!--<configuration>--> | |
<!--<classifier>SocketWordCount</classifier>--> | |
<!--<archive>--> | |
<!--<manifestEntries>--> | |
<!--<program-class>com.eflink.SocketWordCount</program-class>--> | |
<!--</manifestEntries>--> | |
<!--</archive>--> | |
<!--<includes>--> | |
<!--<include>**/com/eflink/SocketWordCount.class</include>--> | |
<!--<include>**/com/eflink/SocketWordCount$.class</include>--> | |
<!--</includes>--> | |
<!--</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.4.4</version> | |
<executions> | |
<execution> | |
<goals> | |
<goal>compile</goal> | |
<goal>testCompile</goal> | |
</goals> | |
</execution> | |
</executions> | |
</plugin> | |
</plugins> | |
</build> | |
<!--<profiles>--> | |
<!--<profile>--> | |
<!--<id>add-dependencies-for-IDEA</id>--> | |
<!--<activation>--> | |
<!--<property>--> | |
<!--<name>idea.version</name>--> | |
<!--</property>--> | |
<!--</activation>--> | |
<!--<dependencies>--> | |
<!--<dependency>--> | |
<!--<groupId>org.apache.flink</groupId>--> | |
<!--<artifactId>flink-scala_${scala.binary.version}</artifactId>--> | |
<!--<version>${flink.version}</version>--> | |
<!--<scope>compile</scope>--> | |
<!--</dependency>--> | |
<!--<dependency>--> | |
<!--<groupId>org.apache.flink</groupId>--> | |
<!--<artifactId>flink-streaming-scala_${scala.binary.version}</artifactId>--> | |
<!--<version>${flink.version}</version>--> | |
<!--<scope>compile</scope>--> | |
<!--</dependency>--> | |
<!--<dependency>--> | |
<!--<groupId>org.scala-lang</groupId>--> | |
<!--<artifactId>scala-library</artifactId>--> | |
<!--<version>${scala.version}</version>--> | |
<!--<scope>compile</scope>--> | |
<!--</dependency>--> | |
<!--</dependencies>--> | |
<!--</profile>--> | |
<!--</profiles> | |
</project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment