pom.xml 12.7 KB
Newer Older
S
sewen 已提交
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
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
21
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
S
sewen 已提交
22

S
sewen 已提交
23
	<modelVersion>4.0.0</modelVersion>
S
sewen 已提交
24

S
sewen 已提交
25
	<parent>
26 27
		<groupId>org.apache.flink</groupId>
		<artifactId>flink-parent</artifactId>
28
		<version>1.3-SNAPSHOT</version>
29
		<relativePath>..</relativePath>
S
sewen 已提交
30
	</parent>
S
sewen 已提交
31

32
	<artifactId>flink-dist_2.10</artifactId>
33
	<name>flink-dist</name>
34
	<packaging>jar</packaging>
S
sewen 已提交
35

S
sewen 已提交
36
	<dependencies>
37

38 39
		<!-- Flink project binaries -->

S
sewen 已提交
40
		<dependency>
41 42
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-core</artifactId>
43 44
			<version>${project.version}</version>
		</dependency>
45

46
		<dependency>
47 48
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-java</artifactId>
49 50
			<version>${project.version}</version>
		</dependency>
51 52

		<dependency>
53
			<groupId>org.apache.flink</groupId>
54
			<artifactId>flink-scala_2.10</artifactId>
55 56 57 58
			<version>${project.version}</version>
		</dependency>

		<dependency>
59
			<groupId>org.apache.flink</groupId>
60
			<artifactId>flink-runtime_2.10</artifactId>
61 62 63
			<version>${project.version}</version>
		</dependency>

64 65
		<dependency>
			<groupId>org.apache.flink</groupId>
66
			<artifactId>flink-runtime-web_2.10</artifactId>
67 68 69
			<version>${project.version}</version>
		</dependency>

70
		<dependency>
71
			<groupId>org.apache.flink</groupId>
72
			<artifactId>flink-optimizer_2.10</artifactId>
73 74 75 76
			<version>${project.version}</version>
		</dependency>

		<dependency>
77
			<groupId>org.apache.flink</groupId>
78
			<artifactId>flink-clients_2.10</artifactId>
79 80 81
			<version>${project.version}</version>
		</dependency>

82
		<dependency>
83
			<groupId>org.apache.flink</groupId>
84
			<artifactId>flink-avro_2.10</artifactId>
85 86 87
			<version>${project.version}</version>
		</dependency>

88 89
		<dependency>
			<groupId>org.apache.flink</groupId>
90
			<artifactId>flink-streaming-java_2.10</artifactId>
91 92 93 94 95
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
96
			<artifactId>flink-streaming-scala_2.10</artifactId>
97 98
			<version>${project.version}</version>
		</dependency>
99

Z
zentol 已提交
100 101
		<dependency>
			<groupId>org.apache.flink</groupId>
102
			<artifactId>flink-python_2.10</artifactId>
Z
zentol 已提交
103 104
			<version>${project.version}</version>
		</dependency>
105

106 107
		<dependency>
			<groupId>org.apache.flink</groupId>
108
			<artifactId>flink-scala-shell_2.10</artifactId>
109 110 111
			<version>${project.version}</version>
		</dependency>

112 113 114 115 116 117
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-core</artifactId>
			<version>${project.version}</version>
		</dependency>

118 119 120 121 122
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-jmx</artifactId>
			<version>${project.version}</version>
		</dependency>
123 124 125 126
        
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-mesos_2.10</artifactId>
127 128 129 130 131 132
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-statebackend-rocksdb_2.10</artifactId>
133 134
			<version>${project.version}</version>
		</dependency>
135 136 137 138 139 140

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-yarn_2.10</artifactId>
			<version>${project.version}</version>
		</dependency>
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156

		<!-- Concrete logging framework - we only add this here to not tie
			the projects to one specific framework and make it easier for
			users to swap logging frameworks -->

		<dependency>
			<groupId>org.slf4j</groupId>
			<artifactId>slf4j-log4j12</artifactId>
			<scope>compile</scope>
		</dependency>

		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
			<scope>compile</scope>
		</dependency>
157

158 159 160 161 162 163 164 165 166 167 168 169 170
		<!--
			The following dependencies are packaged in 'examples/'
			The scope of these dependencies needs to be 'provided' so that
			they are not included into the 'flink-dist' uber jar.
		-->

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-gelly-examples_2.10</artifactId>
			<version>${project.version}</version>
			<scope>provided</scope>
		</dependency>

171 172 173 174 175
		<!--
			The following dependencies are packaged in 'opt/' 
			The scope of these dependencies needs to be 'provided' so that
			they are not included into the 'flink-dist' uber jar.
		-->
176 177 178 179 180 181

		<!-- start optional Flink metrics reporters -->
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-dropwizard</artifactId>
			<version>${project.version}</version>
182
			<scope>provided</scope>
183 184 185 186 187 188
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-ganglia</artifactId>
			<version>${project.version}</version>
189
			<scope>provided</scope>
190 191 192 193 194 195
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-graphite</artifactId>
			<version>${project.version}</version>
196
			<scope>provided</scope>
197 198 199 200 201 202
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-statsd</artifactId>
			<version>${project.version}</version>
203
			<scope>provided</scope>
204 205 206 207 208 209 210 211
		</dependency>
		<!-- end optional Flink metrics reporters -->

		<!-- start optional Flink libraries -->
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-cep_2.10</artifactId>
			<version>${project.version}</version>
212
			<scope>provided</scope>
213 214 215 216 217 218
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-cep-scala_2.10</artifactId>
			<version>${project.version}</version>
219
			<scope>provided</scope>
220 221 222 223 224 225
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-gelly_2.10</artifactId>
			<version>${project.version}</version>
226
			<scope>provided</scope>
227 228 229 230 231 232
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-gelly-scala_2.10</artifactId>
			<version>${project.version}</version>
233
			<scope>provided</scope>
234 235 236 237 238 239
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-ml_2.10</artifactId>
			<version>${project.version}</version>
240
			<scope>provided</scope>
241 242
		</dependency>
		<!-- end optional Flink libraries -->
S
sewen 已提交
243 244
	</dependencies>

245
	<profiles>
246 247 248 249 250 251 252 253 254 255 256 257 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
		<profile>
			<!-- Creates/Removes the 'build-target' symlink in the root directory (only Unix systems) -->
			<id>symlink-build-target</id>
			<activation>
				<os>
					<family>unix</family>
				</os>
			</activation>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>exec-maven-plugin</artifactId>
						<version>1.5.0</version>
						<executions>
							<execution>
								<id>remove-build-target-link</id>
								<phase>clean</phase>
								<goals>
									<goal>exec</goal>
								</goals>
								<configuration>
									<executable>rm</executable>
									<arguments>
										<argument>-f</argument>
										<argument>${project.basedir}/../build-target</argument>
									</arguments>
								</configuration>
							</execution>
							<execution>
								<id>create-build-target-link</id>
								<phase>package</phase>
								<goals>
									<goal>exec</goal>
								</goals>
								<configuration>
									<executable>ln</executable>
									<arguments>
284
										<argument>-sfn</argument>
285 286 287 288 289 290 291 292 293 294 295
										<argument>${project.basedir}/target/flink-${project.version}-bin/flink-${project.version}</argument>
										<argument>${project.basedir}/../build-target</argument>
									</arguments>
								</configuration>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>

296
	</profiles>
297

S
sewen 已提交
298 299
	<build>
		<plugins>
300 301

			<!-- binary compatibility checks -->
302 303 304 305 306 307 308
			<plugin>
				<groupId>com.github.siom79.japicmp</groupId>
				<artifactId>japicmp-maven-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
309 310

			<!--Build uber jar-->
311 312 313 314 315 316 317 318 319 320 321 322 323
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-shade-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>shade</goal>
						</goals>
						<configuration combine.self="override">
							<createDependencyReducedPom>false</createDependencyReducedPom>
							<shadedArtifactAttached>false</shadedArtifactAttached>
							<finalName>${project.artifactId}-${project.version}</finalName>
324 325 326 327 328 329 330
							<filters>
								<!-- Globally exclude log4j.properties from our JAR files. -->
								<filter>
									<artifact>*</artifact>
									<excludes>
										<exclude>log4j.properties</exclude>
										<exclude>log4j-test.properties</exclude>
331 332 333
										<exclude>META-INF/*.SF</exclude>
										<exclude>META-INF/*.DSA</exclude>
										<exclude>META-INF/*.RSA</exclude>
334 335 336
									</excludes>
								</filter>
							</filters>
337 338
							<artifactSet>
								<excludes>
339 340
									<exclude>org.apache.flink:flink-examples-batch</exclude>
									<exclude>org.apache.flink:flink-examples-streaming</exclude>
341
									<exclude>org.apache.flink:flink-examples-table</exclude>
342
									<exclude>org.apache.flink:flink-python</exclude>
343 344
									<exclude>org.slf4j:slf4j-log4j12</exclude>
									<exclude>log4j:log4j</exclude>
345 346 347 348 349 350 351 352
								</excludes>
							</artifactSet>
							<transformers>
								<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
									<resource>reference.conf</resource>
								</transformer>
								<!-- The service transformer is needed to merge META-INF/services files -->
								<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
353
								<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
354 355 356
							</transformers>
						</configuration>
					</execution>
357 358 359 360 361 362 363 364 365
					<execution>
						<!--
						Disable inherited shade-flink to prevent the Shade plugin from changing the project.basedir. The basedir
						is changed by the Shade plugin when dependencyReducedPomLocation is set to a different location than the
						original basedir. We do that in the root pom.xml.
						-->
						<id>shade-flink</id>
						<phase>none</phase>
					</execution>
366 367 368
				</executions>
			</plugin>

S
sewen 已提交
369 370 371 372
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
373
						<id>bin</id>
S
sewen 已提交
374 375 376 377
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
378 379 380 381
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/bin.xml</descriptor>
							</descriptors>
382 383
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
384
						</configuration>
S
sewen 已提交
385
					</execution>
386 387 388 389 390 391 392 393 394 395 396 397 398 399
					<execution>
						<id>opt</id>
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/opt.xml</descriptor>
							</descriptors>
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
						</configuration>
					</execution>
S
sewen 已提交
400 401
				</executions>
			</plugin>
402

403 404 405
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
406
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
407 408 409 410
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
411

412 413 414 415 416 417 418 419 420 421 422 423 424 425 426
			<plugin>
				<!-- Description: https://github.com/ktoso/maven-git-commit-id-plugin -->
				<groupId>pl.project13.maven</groupId>
				<artifactId>git-commit-id-plugin</artifactId>
				<version>2.1.5</version>
				<executions>
					<execution>
						<goals>
							<goal>revision</goal>
						 </goals>
					</execution>
				</executions>
				<configuration>
					<dotGitDirectory>${project.basedir}/../.git</dotGitDirectory>
					<generateGitPropertiesFile>true</generateGitPropertiesFile>
427
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
428
					<skipPoms>false</skipPoms>
429
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
430 431 432 433
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
434 435
				</configuration>
			</plugin>
436

S
sewen 已提交
437 438
		</plugins>
	</build>
439

S
sewen 已提交
440
</project>