pom.xml 9.4 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
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-metrics-jmx</artifactId>
			<version>${project.version}</version>
		</dependency>
122 123 124 125
        
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-mesos_2.10</artifactId>
126 127 128 129 130 131
			<version>${project.version}</version>
		</dependency>

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

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-yarn_2.10</artifactId>
			<version>${project.version}</version>
		</dependency>
140
		
S
sewen 已提交
141 142
	</dependencies>

143
	<profiles>
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 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193
		<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>
										<argument>-sf</argument>
										<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>

194
	</profiles>
195

S
sewen 已提交
196 197
	<build>
		<plugins>
198 199 200 201 202 203 204
			<plugin>
				<groupId>com.github.siom79.japicmp</groupId>
				<artifactId>japicmp-maven-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
205 206 207 208 209 210 211 212 213 214 215 216 217 218
			<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>
219 220 221 222 223 224 225
							<filters>
								<!-- Globally exclude log4j.properties from our JAR files. -->
								<filter>
									<artifact>*</artifact>
									<excludes>
										<exclude>log4j.properties</exclude>
										<exclude>log4j-test.properties</exclude>
226 227 228
										<exclude>META-INF/*.SF</exclude>
										<exclude>META-INF/*.DSA</exclude>
										<exclude>META-INF/*.RSA</exclude>
229 230 231
									</excludes>
								</filter>
							</filters>
232 233
							<artifactSet>
								<excludes>
234 235
									<exclude>org.apache.flink:flink-examples-batch</exclude>
									<exclude>org.apache.flink:flink-examples-streaming</exclude>
236
									<exclude>org.apache.flink:flink-python</exclude>
237 238
									<exclude>org.slf4j:slf4j-log4j12</exclude>
									<exclude>log4j:log4j</exclude>
239 240 241 242 243 244 245 246
								</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"/>
247
								<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
248 249 250
							</transformers>
						</configuration>
					</execution>
251 252 253 254 255 256 257 258 259
					<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>
260 261 262
				</executions>
			</plugin>

S
sewen 已提交
263 264 265 266
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
267
						<id>bin</id>
S
sewen 已提交
268 269 270 271
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
272 273 274 275
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/bin.xml</descriptor>
							</descriptors>
276 277
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
278
						</configuration>
S
sewen 已提交
279 280 281
					</execution>
				</executions>
			</plugin>
282 283 284
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
285
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
286 287 288 289
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
290

291 292 293 294 295 296 297 298 299 300 301 302 303 304 305
			<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>
306
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
307
					<skipPoms>false</skipPoms>
308
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
309 310 311 312
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
313 314
				</configuration>
			</plugin>
315

S
sewen 已提交
316 317
		</plugins>
	</build>
318

S
sewen 已提交
319
</project>