|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<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/maven-v4_0_0.xsd"> |
| 3 | + <modelVersion>4.0.0</modelVersion> |
| 4 | + <groupId>com.atguigu</groupId> |
| 5 | + <artifactId>Flink0105</artifactId> |
| 6 | + <name>Flink Quickstart Job</name> |
| 7 | + <version>1.0</version> |
| 8 | + <url>http://www.myorganization.org</url> |
| 9 | + <build> |
| 10 | + <plugins> |
| 11 | + <plugin> |
| 12 | + <artifactId>maven-shade-plugin</artifactId> |
| 13 | + <version>3.1.1</version> |
| 14 | + <executions> |
| 15 | + <execution> |
| 16 | + <phase>package</phase> |
| 17 | + <goals> |
| 18 | + <goal>shade</goal> |
| 19 | + </goals> |
| 20 | + <configuration> |
| 21 | + <artifactSet> |
| 22 | + <excludes> |
| 23 | + <exclude>org.apache.flink:force-shading</exclude> |
| 24 | + <exclude>com.google.code.findbugs:jsr305</exclude> |
| 25 | + <exclude>org.slf4j:*</exclude> |
| 26 | + <exclude>log4j:*</exclude> |
| 27 | + </excludes> |
| 28 | + </artifactSet> |
| 29 | + <filters> |
| 30 | + <filter> |
| 31 | + <artifact>*:*</artifact> |
| 32 | + <excludes> |
| 33 | + <exclude>META-INF/*.SF</exclude> |
| 34 | + <exclude>META-INF/*.DSA</exclude> |
| 35 | + <exclude>META-INF/*.RSA</exclude> |
| 36 | + </excludes> |
| 37 | + </filter> |
| 38 | + </filters> |
| 39 | + <transformers> |
| 40 | + <transformer> |
| 41 | + <mainClass>com.atguigu.day1.WordCountFromBatch</mainClass> |
| 42 | + </transformer> |
| 43 | + </transformers> |
| 44 | + </configuration> |
| 45 | + </execution> |
| 46 | + </executions> |
| 47 | + </plugin> |
| 48 | + <plugin> |
| 49 | + <artifactId>maven-compiler-plugin</artifactId> |
| 50 | + <version>3.1</version> |
| 51 | + <configuration> |
| 52 | + <source>1.8</source> |
| 53 | + <target>1.8</target> |
| 54 | + </configuration> |
| 55 | + </plugin> |
| 56 | + <plugin> |
| 57 | + <groupId>net.alchim31.maven</groupId> |
| 58 | + <artifactId>scala-maven-plugin</artifactId> |
| 59 | + <version>3.2.2</version> |
| 60 | + <executions> |
| 61 | + <execution> |
| 62 | + <goals> |
| 63 | + <goal>compile</goal> |
| 64 | + <goal>testCompile</goal> |
| 65 | + </goals> |
| 66 | + </execution> |
| 67 | + </executions> |
| 68 | + <configuration> |
| 69 | + <args> |
| 70 | + <arg>-nobootcp</arg> |
| 71 | + </args> |
| 72 | + </configuration> |
| 73 | + </plugin> |
| 74 | + <plugin> |
| 75 | + <artifactId>maven-eclipse-plugin</artifactId> |
| 76 | + <version>2.8</version> |
| 77 | + <configuration> |
| 78 | + <downloadSources>true</downloadSources> |
| 79 | + <projectnatures> |
| 80 | + <projectnature>org.scala-ide.sdt.core.scalanature</projectnature> |
| 81 | + <projectnature>org.eclipse.jdt.core.javanature</projectnature> |
| 82 | + </projectnatures> |
| 83 | + <buildcommands> |
| 84 | + <buildcommand>org.scala-ide.sdt.core.scalabuilder</buildcommand> |
| 85 | + </buildcommands> |
| 86 | + <classpathContainers> |
| 87 | + <classpathContainer>org.scala-ide.sdt.launching.SCALA_CONTAINER</classpathContainer> |
| 88 | + <classpathContainer>org.eclipse.jdt.launching.JRE_CONTAINER</classpathContainer> |
| 89 | + </classpathContainers> |
| 90 | + <excludes> |
| 91 | + <exclude>org.scala-lang:scala-library</exclude> |
| 92 | + <exclude>org.scala-lang:scala-compiler</exclude> |
| 93 | + </excludes> |
| 94 | + <sourceIncludes> |
| 95 | + <sourceInclude>**/*.scala</sourceInclude> |
| 96 | + <sourceInclude>**/*.java</sourceInclude> |
| 97 | + </sourceIncludes> |
| 98 | + </configuration> |
| 99 | + </plugin> |
| 100 | + <plugin> |
| 101 | + <groupId>org.codehaus.mojo</groupId> |
| 102 | + <artifactId>build-helper-maven-plugin</artifactId> |
| 103 | + <version>1.7</version> |
| 104 | + <executions> |
| 105 | + <execution> |
| 106 | + <id>add-source</id> |
| 107 | + <phase>generate-sources</phase> |
| 108 | + <goals> |
| 109 | + <goal>add-source</goal> |
| 110 | + </goals> |
| 111 | + <configuration> |
| 112 | + <sources> |
| 113 | + <source>src/main/scala</source> |
| 114 | + </sources> |
| 115 | + </configuration> |
| 116 | + </execution> |
| 117 | + <execution> |
| 118 | + <id>add-test-source</id> |
| 119 | + <phase>generate-test-sources</phase> |
| 120 | + <goals> |
| 121 | + <goal>add-test-source</goal> |
| 122 | + </goals> |
| 123 | + <configuration> |
| 124 | + <sources> |
| 125 | + <source>src/test/scala</source> |
| 126 | + </sources> |
| 127 | + </configuration> |
| 128 | + </execution> |
| 129 | + </executions> |
| 130 | + </plugin> |
| 131 | + </plugins> |
| 132 | + </build> |
| 133 | + <repositories> |
| 134 | + <repository> |
| 135 | + <releases> |
| 136 | + <enabled>false</enabled> |
| 137 | + </releases> |
| 138 | + <snapshots /> |
| 139 | + <id>apache.snapshots</id> |
| 140 | + <name>Apache Development Snapshot Repository</name> |
| 141 | + <url>https://repository.apache.org/content/repositories/snapshots/</url> |
| 142 | + </repository> |
| 143 | + </repositories> |
| 144 | + <dependencies> |
| 145 | + <dependency> |
| 146 | + <groupId>org.slf4j</groupId> |
| 147 | + <artifactId>slf4j-log4j12</artifactId> |
| 148 | + <version>1.7.7</version> |
| 149 | + <scope>runtime</scope> |
| 150 | + </dependency> |
| 151 | + <dependency> |
| 152 | + <groupId>log4j</groupId> |
| 153 | + <artifactId>log4j</artifactId> |
| 154 | + <version>1.2.17</version> |
| 155 | + <scope>runtime</scope> |
| 156 | + </dependency> |
| 157 | + </dependencies> |
| 158 | + <properties> |
| 159 | + <scala.version>2.11.12</scala.version> |
| 160 | + <scala.binary.version>2.11</scala.binary.version> |
| 161 | + <flink.version>1.10.0</flink.version> |
| 162 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 163 | + </properties> |
| 164 | +</project> |
0 commit comments