pom.xml 8.1 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>
R
Robert Metzger 已提交
28
		<version>1.1-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 40 41 42 43 44 45

		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>force-shading</artifactId>
			<version>1.0.0</version>
			<!-- This is necessary to prevent shading of this module -->
			<scope>provided</scope>
		</dependency>

S
sewen 已提交
46 47
		<!-- BINARIES -->
		<dependency>
48 49
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-core</artifactId>
50 51
			<version>${project.version}</version>
		</dependency>
52

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

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

		<dependency>
66
			<groupId>org.apache.flink</groupId>
67
			<artifactId>flink-runtime_2.10</artifactId>
68 69 70
			<version>${project.version}</version>
		</dependency>

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

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

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

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

95 96
		<dependency>
			<groupId>org.apache.flink</groupId>
97
			<artifactId>flink-streaming-java_2.10</artifactId>
98 99 100 101 102
			<version>${project.version}</version>
		</dependency>

		<dependency>
			<groupId>org.apache.flink</groupId>
103
			<artifactId>flink-streaming-scala_2.10</artifactId>
104 105
			<version>${project.version}</version>
		</dependency>
106

Z
zentol 已提交
107 108
		<dependency>
			<groupId>org.apache.flink</groupId>
109
			<artifactId>flink-python_2.10</artifactId>
Z
zentol 已提交
110 111
			<version>${project.version}</version>
		</dependency>
112

113 114
		<dependency>
			<groupId>org.apache.flink</groupId>
115
			<artifactId>flink-scala-shell_2.10</artifactId>
116 117 118
			<version>${project.version}</version>
		</dependency>

S
sewen 已提交
119 120
	</dependencies>

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

S
sewen 已提交
141 142
	<build>
		<plugins>
143 144 145 146 147 148 149 150 151 152 153 154 155 156
			<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>
157 158 159 160 161 162 163
							<filters>
								<!-- Globally exclude log4j.properties from our JAR files. -->
								<filter>
									<artifact>*</artifact>
									<excludes>
										<exclude>log4j.properties</exclude>
										<exclude>log4j-test.properties</exclude>
164 165 166
										<exclude>META-INF/*.SF</exclude>
										<exclude>META-INF/*.DSA</exclude>
										<exclude>META-INF/*.RSA</exclude>
167 168 169
									</excludes>
								</filter>
							</filters>
170 171
							<artifactSet>
								<excludes>
172 173
									<exclude>org.apache.flink:flink-examples-batch</exclude>
									<exclude>org.apache.flink:flink-examples-streaming</exclude>
174
									<exclude>org.apache.flink:flink-python</exclude>
175 176
									<exclude>org.slf4j:slf4j-log4j12</exclude>
									<exclude>log4j:log4j</exclude>
177 178 179 180 181 182 183 184
								</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"/>
185
								<transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer"/>
186 187 188 189 190 191
							</transformers>
						</configuration>
					</execution>
				</executions>
			</plugin>

S
sewen 已提交
192 193 194 195
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
196
						<id>bin</id>
S
sewen 已提交
197 198 199 200
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
201 202 203 204
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/bin.xml</descriptor>
							</descriptors>
205 206
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
207
						</configuration>
S
sewen 已提交
208 209 210
					</execution>
				</executions>
			</plugin>
211 212 213
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
214
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
215 216 217 218
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
219

220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
			<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>
235
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
236
					<skipPoms>false</skipPoms>
237
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
238 239 240 241
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
242 243
				</configuration>
			</plugin>
244 245 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

			<!-- 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 已提交
275 276
		</plugins>
	</build>
S
sewen 已提交
277
</project>