|
157 | 157 | </plugin> |
158 | 158 | </plugins> |
159 | 159 | </build> |
160 | | - <profiles> |
161 | | - <profile> |
162 | | - <!-- A profile that does everything correctly: We set the Flink dependencies |
163 | | - to provided --> |
164 | | - <id>build-jar</id> |
165 | | - <activation> |
166 | | - <activeByDefault>false</activeByDefault> |
167 | | - </activation> |
168 | | - <dependencies> |
169 | | - <dependency> |
170 | | - <groupId>org.apache.flink</groupId> |
171 | | - <artifactId>flink-scala_${scala.binary.version}</artifactId> |
172 | | - <scope>provided</scope> |
173 | | - </dependency> |
174 | | - <dependency> |
175 | | - <groupId>org.apache.flink</groupId> |
176 | | - <artifactId>flink-streaming-scala_${scala.binary.version}</artifactId> |
177 | | - <scope>provided</scope> |
178 | | - </dependency> |
179 | | - <dependency> |
180 | | - <groupId>org.apache.flink</groupId> |
181 | | - <artifactId>flink-clients_${scala.binary.version}</artifactId> |
182 | | - <scope>provided</scope> |
183 | | - </dependency> |
184 | | - </dependencies> |
185 | | - </profile> |
186 | | - <profile> |
187 | | - <id>dist</id> |
188 | | - <activation> |
189 | | - <property> |
190 | | - <name>dist</name> |
191 | | - </property> |
192 | | - </activation> |
193 | | - <!-- This profile uses the assembly plugin to create a special "dist" |
194 | | - package for BigTop that contains Spark but not the Hadoop JARs it depends |
195 | | - on. --> |
196 | | - <build> |
197 | | - <plugins> |
198 | | - <!-- We use the maven-shade plugin to create a fat jar that contains |
199 | | - all dependencies except flink and it's transitive dependencies. The resulting |
200 | | - fat-jar can be executed on a cluster. Change the value of Program-Class if |
201 | | - your program entry point changes. --> |
202 | | - <plugin> |
203 | | - <groupId>org.apache.maven.plugins</groupId> |
204 | | - <artifactId>maven-shade-plugin</artifactId> |
205 | | - <version>2.4.1</version> |
206 | | - <executions> |
207 | | - <!-- Run shade goal on package phase --> |
208 | | - <execution> |
209 | | - <phase>package</phase> |
210 | | - <goals> |
211 | | - <goal>shade</goal> |
212 | | - </goals> |
213 | | - <configuration> |
214 | | - <minimizeJar>true</minimizeJar> |
215 | | - <artifactSet> |
216 | | - <excludes> |
217 | | - <!-- This list contains all dependencies of flink-dist Everything |
218 | | - else will be packaged into the fat-jar --> |
219 | | - <exclude>org.apache.flink:flink-shaded-*_2.11</exclude> |
220 | | - <exclude>org.apache.flink:flink-core_2.11</exclude> |
221 | | - <exclude>org.apache.flink:flink-java*</exclude> |
222 | | - <exclude>org.apache.flink:flink-java_2.11</exclude> |
223 | | - <exclude>org.apache.flink:flink-scala_2.11</exclude> |
224 | | - <exclude>org.apache.flink:flink-runtime_2.11</exclude> |
225 | | - <exclude>org.apache.flink:flink-optimizer_2.11</exclude> |
226 | | - <exclude>org.apache.flink:flink-clients_2.11</exclude> |
227 | | - <exclude>org.apache.flink:flink-avro_2.11</exclude> |
228 | | - <exclude>org.apache.flink:flink-java-examples_2.11</exclude> |
229 | | - <exclude>org.apache.flink:flink-scala-examples_2.11</exclude> |
230 | | - <exclude>org.apache.flink:flink-streaming-examples_2.11</exclude> |
231 | | - <exclude>org.apache.flink:flink-streaming-java_2.11</exclude> |
232 | | - |
233 | | - <!-- Also exclude very big transitive dependencies of Flink WARNING: |
234 | | - You have to remove these excludes if your code relies on other versions of |
235 | | - these dependencies. --> |
236 | | - |
237 | | - <exclude>org.scala-lang:scala-library</exclude> |
238 | | - <exclude>org.scala-lang:scala-compiler</exclude> |
239 | | - <exclude>org.scala-lang:scala-reflect</exclude> |
240 | | - <exclude>com.amazonaws:aws-java-sdk</exclude> |
241 | | - <exclude>com.typesafe.akka:akka-actor_*</exclude> |
242 | | - <exclude>com.typesafe.akka:akka-remote_*</exclude> |
243 | | - <exclude>com.typesafe.akka:akka-slf4j_*</exclude> |
244 | | - <exclude>io.netty:netty-all</exclude> |
245 | | - <exclude>io.netty:netty</exclude> |
246 | | - <exclude>org.eclipse.jetty:jetty-server</exclude> |
247 | | - <exclude>org.eclipse.jetty:jetty-continuation</exclude> |
248 | | - <exclude>org.eclipse.jetty:jetty-http</exclude> |
249 | | - <exclude>org.eclipse.jetty:jetty-io</exclude> |
250 | | - <exclude>org.eclipse.jetty:jetty-util</exclude> |
251 | | - <exclude>org.eclipse.jetty:jetty-security</exclude> |
252 | | - <exclude>org.eclipse.jetty:jetty-servlet</exclude> |
253 | | - <exclude>org.gephi:*</exclude> |
254 | | - <exclude>org.netbeans.api:*</exclude> |
255 | | - |
256 | | - <exclude>commons-fileupload:commons-fileupload</exclude> |
257 | | - <exclude>org.apache.avro:avro</exclude> |
258 | | - <exclude>commons-collections:commons-collections</exclude> |
259 | | - <exclude>org.codehaus.jackson:jackson-core-asl</exclude> |
260 | | - <exclude>org.codehaus.jackson:jackson-mapper-asl</exclude> |
261 | | - <exclude>com.thoughtworks.paranamer:paranamer</exclude> |
262 | | - <exclude>org.xerial.snappy:snappy-java</exclude> |
263 | | - <exclude>org.apache.commons:commons-compress</exclude> |
264 | | - <exclude>org.tukaani:xz</exclude> |
265 | | - <exclude>com.esotericsoftware.kryo:kryo</exclude> |
266 | | - <exclude>com.esotericsoftware.minlog:minlog</exclude> |
267 | | - <exclude>org.objenesis:objenesis</exclude> |
268 | | - <exclude>com.twitter:chill_*</exclude> |
269 | | - <exclude>com.twitter:chill-java</exclude> |
270 | | - <exclude>com.twitter:chill-avro_*</exclude> |
271 | | - <exclude>com.twitter:chill-bijection_*</exclude> |
272 | | - <exclude>com.twitter:bijection-core_*</exclude> |
273 | | - <exclude>com.twitter:bijection-avro_*</exclude> |
274 | | - <exclude>commons-lang:commons-lang</exclude> |
275 | | - <exclude>junit:junit</exclude> |
276 | | - <exclude>de.javakaffee:kryo-serializers</exclude> |
277 | | - <exclude>joda-time:joda-time</exclude> |
278 | | - <exclude>org.apache.commons:commons-lang3</exclude> |
279 | | - <exclude>org.slf4j:slf4j-api</exclude> |
280 | | - <exclude>org.slf4j:slf4j-log4j12</exclude> |
281 | | - <exclude>log4j:log4j</exclude> |
282 | | - <exclude>org.apache.commons:commons-math</exclude> |
283 | | - <exclude>org.apache.sling:org.apache.sling.commons.json</exclude> |
284 | | - <exclude>commons-logging:commons-logging</exclude> |
285 | | - <exclude>org.apache.httpcomponents:httpclient</exclude> |
286 | | - <exclude>org.apache.httpcomponents:httpcore</exclude> |
287 | | - <exclude>commons-codec:commons-codec</exclude> |
288 | | - <exclude>com.fasterxml.jackson.core:jackson-core</exclude> |
289 | | - <exclude>com.fasterxml.jackson.core:jackson-databind</exclude> |
290 | | - <exclude>com.fasterxml.jackson.core:jackson-annotations</exclude> |
291 | | - <exclude>org.codehaus.jettison:jettison</exclude> |
292 | | - <exclude>stax:stax-api</exclude> |
293 | | - <exclude>com.typesafe:config</exclude> |
294 | | - <exclude>org.uncommons.maths:uncommons-maths</exclude> |
295 | | - <!--<exclude>com.github.scopt:scopt_*</exclude> --> |
296 | | - <exclude>org.mortbay.jetty:servlet-api</exclude> |
297 | | - <exclude>commons-io:commons-io</exclude> |
298 | | - <exclude>commons-cli:commons-cli</exclude> |
299 | | - |
300 | | - <exclude>sqlite:*</exclude> |
301 | | - <exclude>netbeans:*</exclude> |
302 | | - <exclude>org.apache.xmlgraphics:*</exclude> |
303 | | - <exclude>mysql:*</exclude> |
304 | | - </excludes> |
305 | | - </artifactSet> |
306 | | - <filters> |
307 | | - <filter> |
308 | | - <artifact>org.apache.flink:*</artifact> |
309 | | - <excludes> |
310 | | - <exclude>org/apache/flink/shaded/**</exclude> |
311 | | - <exclude>web-docs/**</exclude> |
312 | | - </excludes> |
313 | | - </filter> |
314 | | - <filter> |
315 | | - <!-- Do not copy the signatures in the META-INF folder. Otherwise, |
316 | | - this might cause SecurityExceptions when using the JAR. --> |
317 | | - <artifact>*:*</artifact> |
318 | | - <excludes> |
319 | | - <exclude>META-INF/*.SF</exclude> |
320 | | - <exclude>META-INF/*.DSA</exclude> |
321 | | - <exclude>META-INF/*.RSA</exclude> |
322 | | - </excludes> |
323 | | - </filter> |
324 | | - </filters> |
325 | | - <finalName>dist-${project.artifactId}-${project.version}</finalName> |
326 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
327 | | - <relocations> |
328 | | - <relocation> |
329 | | - <pattern>scopt</pattern> |
330 | | - <shadedPattern>scopt.shaded</shadedPattern> |
331 | | - </relocation> |
332 | | - </relocations> |
333 | | - </configuration> |
334 | | - </execution> |
335 | | - </executions> |
336 | | - </plugin> |
337 | | - </plugins> |
338 | | - </build> |
339 | | - </profile> |
340 | | - </profiles> |
| 160 | + |
341 | 161 | <repositories> |
342 | 162 | <repository> |
343 | 163 | <id>maven.aksw.snapshots</id> |
|
0 commit comments