pom.xml 8.4 KB
Newer Older
1
<?xml version="1.0" encoding="UTF-8"?>
2
<!--
3 4 5 6 7 8 9
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at
10

11
  http://www.apache.org/licenses/LICENSE-2.0
12

13 14 15 16 17 18
Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
19
-->
20 21 22 23 24 25
<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">

	<modelVersion>4.0.0</modelVersion>

	<parent>
M
mbalassi 已提交
26 27
		<groupId>org.apache.flink</groupId>
		<artifactId>flink-streaming-parent</artifactId>
28
		<version>0.9-incubating-SNAPSHOT</version>
29 30 31
		<relativePath>..</relativePath>
	</parent>

M
mbalassi 已提交
32 33
	<artifactId>flink-streaming-examples</artifactId>
	<name>flink-streaming-examples</name>
34 35 36 37 38

	<packaging>jar</packaging>

	<dependencies>
		<dependency>
M
mbalassi 已提交
39 40
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-streaming-core</artifactId>
41 42 43
			<version>${project.version}</version>
		</dependency>

44
		<dependency>
45 46 47 48 49
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-java-examples</artifactId>
			<version>${project.version}</version>
		</dependency>

S
Stephan Ewen 已提交
50
		<dependency>
51 52 53 54
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-streaming-connectors</artifactId>
			<version>${project.version}</version>
		</dependency>
55 56 57 58
	</dependencies>

	<build>
		<plugins>
59 60 61
			
			<!-- get default data from flink-java-examples package -->
			<plugin>
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-dependency-plugin</artifactId>
				<version>2.9</version><!--$NO-MVN-MAN-VER$-->
				<executions>
					<execution>
						<id>unpack</id>
						<phase>prepare-package</phase>
						<goals>
							<goal>unpack</goal>
						</goals>
						<configuration>
							<artifactItems>
								<artifactItem>
									<groupId>org.apache.flink</groupId>
									<artifactId>flink-java-examples</artifactId>
									<version>${project.version}</version>
									<type>jar</type>
									<overWrite>false</overWrite>
									<outputDirectory>${project.build.directory}/classes</outputDirectory>
									<includes>org/apache/flink/examples/java/wordcount/util/WordCountData.class</includes>
								</artifactItem>
							</artifactItems>
						</configuration>
					</execution>
				</executions>
			</plugin>
88 89

			<!-- self-contained jars for each example -->
90 91 92
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
93
				
94
				<executions>
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174

					<!-- Iteration -->
					<execution>
						<id>Iteration</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>Iteration</classifier>

							<archive>
								<manifestEntries>
									<program-class>org.apache.flink.streaming.examples.iteration.IterateExample</program-class>
								</manifestEntries>
							</archive>

							<includes>
								<include>org/apache/flink/streaming/examples/iteration/*.class</include>			
							</includes>
						</configuration>
					</execution>

					<!-- IncrementalLearning -->
					<execution>
						<id>IncrementalLearning</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>IncrementalLearning</classifier>

							<archive>
								<manifestEntries>
									<program-class>org.apache.flink.streaming.examples.ml.IncrementalLearningSkeleton</program-class>
								</manifestEntries>
							</archive>

							<includes>
								<include>org/apache/flink/streaming/examples/ml/*.class</include>			
							</includes>
						</configuration>
					</execution>

					<!-- Twitter -->
					<execution>
						<id>Twitter</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>Twitter</classifier>

							<archive>
								<manifestEntries>
									<program-class>org.apache.flink.streaming.examples.twitter.TwitterStream</program-class>
								</manifestEntries>
							</archive>

							<includes>
								<include>org/apache/flink/streaming/examples/twitter/*.class</include>
								<include>org/apache/flink/streaming/examples/twitter/util/*.class</include>						
							</includes>
						</configuration>
					</execution>

					<!-- WindowJoin -->
					<execution>
						<id>WindowJoin</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>WindowJoin</classifier>

							<archive>
								<manifestEntries>
175
									<program-class>org.apache.flink.streaming.examples.window.join.WindowJoin</program-class>
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196
								</manifestEntries>
							</archive>

							<includes>
								<include>org/apache/flink/streaming/examples/window/join/*.class</include>			
							</includes>
						</configuration>
					</execution>

					<!-- WordCountPOJO -->
					<execution>
						<id>WordCountPOJO</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>WordCountPOJO</classifier>

							<archive>
								<manifestEntries>
197
									<program-class>org.apache.flink.streaming.examples.wordcount.PojoExample</program-class>
198 199 200 201
								</manifestEntries>
							</archive>

							<includes>
202 203
								<include>org/apache/flink/streaming/examples/wordcount/PojoExample.class</include>
								<include>org/apache/flink/streaming/examples/wordcount/PojoExample$*.class</include>
204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230
								<include>org/apache/flink/examples/java/wordcount/util/WordCountData.class</include>			
							</includes>
						</configuration>
					</execution>

					<!-- WordCount -->
					<execution>
						<id>WordCount</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>WordCount</classifier>

							<archive>
								<manifestEntries>
									<program-class>org.apache.flink.streaming.examples.wordcount.WordCount</program-class>
								</manifestEntries>
							</archive>

							<includes>
								<include>org/apache/flink/streaming/examples/wordcount/WordCount.class</include>
								<include>org/apache/flink/streaming/examples/wordcount/WordCount$*.class</include>
								<include>org/apache/flink/examples/java/wordcount/util/WordCountData.class</include>				
							</includes>
						</configuration>
231 232 233 234 235 236 237 238 239 240 241 242 243 244
					</execution>

					<!-- SocketTextStreamWordCount -->
					<execution>
						<id>SocketTextStreamWordCount</id>
						<phase>package</phase>
						<goals>
							<goal>jar</goal>
						</goals>
						<configuration>
							<classifier>SocketTextStreamWordCount</classifier>

							<archive>
								<manifestEntries>
245
									<program-class>org.apache.flink.streaming.examples.socket.SocketTextStreamWordCount</program-class>
246 247 248 249
								</manifestEntries>
							</archive>

							<includes>
250 251
								<include>org/apache/flink/streaming/examples/socket/SocketTextStreamWordCount.class</include>
								<include>org/apache/flink/streaming/examples/wordcount/WordCount$Tokenizer.class</include>
252 253
							</includes>
						</configuration>
254 255 256 257
					</execution>
				</executions>
			</plugin>
		</plugins>
258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288
		
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-dependency-plugin</artifactId>
										<versionRange>[2.9,)</versionRange>
										<goals>
											<goal>unpack</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore/>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		
289 290 291
	</build>

</project>