pom.xml 8.8 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.2-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

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

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

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

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

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

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

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

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

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

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

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

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

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

117 118 119 120 121 122 123
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-jmx</artifactId>
			<version>${project.version}</version>
		</dependency>
		

S
sewen 已提交
124 125
	</dependencies>

126 127 128
	<!-- See main pom.xml for explanation of profiles -->
	<profiles>
		<profile>
129
			<id>include-yarn</id>
130
			<activation>
131
				<property>
132 133
					<!-- Please do not remove the 'hadoop2' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop2--><name>!hadoop.profile</name>
134
				</property>
135
			</activation>
136
			<dependencies>
137
				<dependency>
138
					<groupId>org.apache.flink</groupId>
139
					<artifactId>flink-yarn_2.10</artifactId>
140 141
					<version>${project.version}</version>
				</dependency>
142
			</dependencies>
143
		</profile>
144
	</profiles>
145

S
sewen 已提交
146 147
	<build>
		<plugins>
148 149 150 151 152 153 154
			<plugin>
				<groupId>com.github.siom79.japicmp</groupId>
				<artifactId>japicmp-maven-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
155 156 157 158 159 160 161 162 163 164 165 166 167 168
			<plugin>
				<!--Build uber jar-->
				<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>
169 170 171 172 173 174 175
							<filters>
								<!-- Globally exclude log4j.properties from our JAR files. -->
								<filter>
									<artifact>*</artifact>
									<excludes>
										<exclude>log4j.properties</exclude>
										<exclude>log4j-test.properties</exclude>
176 177 178
										<exclude>META-INF/*.SF</exclude>
										<exclude>META-INF/*.DSA</exclude>
										<exclude>META-INF/*.RSA</exclude>
179 180 181
									</excludes>
								</filter>
							</filters>
182 183
							<artifactSet>
								<excludes>
184 185
									<exclude>org.apache.flink:flink-examples-batch</exclude>
									<exclude>org.apache.flink:flink-examples-streaming</exclude>
186
									<exclude>org.apache.flink:flink-python</exclude>
187 188
									<exclude>org.slf4j:slf4j-log4j12</exclude>
									<exclude>log4j:log4j</exclude>
189 190 191 192 193 194 195 196
								</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"/>
197
								<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
198 199 200
							</transformers>
						</configuration>
					</execution>
201 202 203 204 205 206 207 208 209
					<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>
210 211 212
				</executions>
			</plugin>

S
sewen 已提交
213 214 215 216
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
217
						<id>bin</id>
S
sewen 已提交
218 219 220 221
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
222 223 224 225
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/bin.xml</descriptor>
							</descriptors>
226 227
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
228
						</configuration>
S
sewen 已提交
229 230 231
					</execution>
				</executions>
			</plugin>
232 233 234
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
235
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
236 237 238 239
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
240

241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
			<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>
256
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
257
					<skipPoms>false</skipPoms>
258
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
259 260 261 262
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
263 264
				</configuration>
			</plugin>
265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294

			<!-- create a symbolic link to the build target in the root directory -->
			<plugin>
				<groupId>com.pyx4j</groupId>
				<artifactId>maven-junction-plugin</artifactId>
				<version>1.0.3</version>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>link</goal>
						</goals>
					</execution>
					<execution>
						<id>unlink</id>
						<phase>pre-clean</phase>
						<goals>
							<goal>unlink</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<links>
						<link>
							<dst>${project.basedir}/../build-target</dst>
							<src>${project.basedir}/target/flink-${project.version}-bin/flink-${project.version}</src>
						</link>
					</links>
				</configuration>
			</plugin>
S
sewen 已提交
295 296
		</plugins>
	</build>
S
sewen 已提交
297
</project>