pom.xml 7.9 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 37 38
	<dependencies>
		<!-- BINARIES -->
		<dependency>
39 40
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-core</artifactId>
41 42
			<version>${project.version}</version>
		</dependency>
43

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

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

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

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

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

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

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

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

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

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

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

S
sewen 已提交
110 111
	</dependencies>

112 113 114
	<!-- See main pom.xml for explanation of profiles -->
	<profiles>
		<profile>
115
			<id>include-yarn</id>
116
			<activation>
117
				<property>
118 119
					<!-- Please do not remove the 'hadoop2' comment. See ./tools/generate_specific_pom.sh -->
					<!--hadoop2--><name>!hadoop.profile</name>
120
				</property>
121
			</activation>
122
			<dependencies>
123
				<dependency>
124
					<groupId>org.apache.flink</groupId>
125
					<artifactId>flink-yarn_2.10</artifactId>
126 127
					<version>${project.version}</version>
				</dependency>
128
			</dependencies>
129
		</profile>
130
	</profiles>
131

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

S
sewen 已提交
183 184 185 186
			<plugin>
				<artifactId>maven-assembly-plugin</artifactId>
				<executions>
					<execution>
187
						<id>bin</id>
S
sewen 已提交
188 189 190 191
						<phase>package</phase>
						<goals>
							<goal>single</goal>
						</goals>
192 193 194 195
						<configuration>
							<descriptors>
								<descriptor>src/main/assemblies/bin.xml</descriptor>
							</descriptors>
196 197
							<finalName>flink-${project.version}-bin</finalName>
							<appendAssemblyId>false</appendAssemblyId>
198
						</configuration>
S
sewen 已提交
199 200 201
					</execution>
				</executions>
			</plugin>
202 203 204
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
205
				<version>2.4</version><!--$NO-MVN-MAN-VER$-->
206 207 208 209
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
210

211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
			<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>
226
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
227
					<skipPoms>false</skipPoms>
228
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
229 230 231 232
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
233 234
				</configuration>
			</plugin>
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265

			<!-- 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 已提交
266 267
		</plugins>
	</build>
S
sewen 已提交
268
</project>