pom.xml 8.2 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 126 127
        
		<dependency>
			<groupId>org.apache.flink</groupId>
			<artifactId>flink-mesos_2.10</artifactId>
			<version>${project.version}</version>
		</dependency>
128
		
S
sewen 已提交
129 130
	</dependencies>

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

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

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

246 247 248 249 250 251 252 253 254 255 256 257 258 259 260
			<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>
261
					<failOnNoGitDirectory>false</failOnNoGitDirectory>
262
					<skipPoms>false</skipPoms>
263
					<generateGitPropertiesFilename>src/main/flink-bin/.version.properties</generateGitPropertiesFilename>
264 265 266 267
					<gitDescribe>
						<!-- don't generate the describe property -->
						<skip>true</skip>
					</gitDescribe>
268 269
				</configuration>
			</plugin>
270

S
sewen 已提交
271 272
		</plugins>
	</build>
S
sewen 已提交
273
</project>