mirror of https://github.com/apache/flink.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
163 lines
5.1 KiB
XML
163 lines
5.1 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
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
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
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.
|
|
-->
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
<parent>
|
|
<groupId>org.apache.flink</groupId>
|
|
<artifactId>flink-parent</artifactId>
|
|
<version>1.11-SNAPSHOT</version>
|
|
<relativePath>..</relativePath>
|
|
</parent>
|
|
|
|
<artifactId>flink-container_${scala.binary.version}</artifactId>
|
|
<name>flink-container</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<dependencies>
|
|
|
|
<!-- set all Flink dependencies to provided, so they and their transitive -->
|
|
<!-- dependencies do not get promoted to direct dependencies during shading -->
|
|
|
|
<dependency>
|
|
<groupId>org.apache.flink</groupId>
|
|
<artifactId>flink-runtime_${scala.binary.version}</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.flink</groupId>
|
|
<artifactId>flink-clients_${scala.binary.version}</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
|
|
<!-- test dependencies -->
|
|
|
|
<dependency>
|
|
<groupId>org.apache.flink</groupId>
|
|
<artifactId>flink-test-utils-junit</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>org.apache.flink</groupId>
|
|
<artifactId>flink-streaming-java_${scala.binary.version}</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<!-- Assemble a test jar for EntryClassParserTest. More information on this:
|
|
http://stackoverflow.com/questions/1401857/using-maven-to-build-separate-jar-files-for-unit-testing-a-custom-class-loader
|
|
-->
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<version>2.4</version><!--$NO-MVN-MAN-VER$-->
|
|
<executions>
|
|
<execution>
|
|
<id>create-test-dependency</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>org.apache.flink.container.entrypoint.TestJob</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
<finalName>maven</finalName>
|
|
<attach>false</attach>
|
|
<descriptors>
|
|
<descriptor>src/test/assembly/test-assembly.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>create-test-dependency-user-jar</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<archive>
|
|
<manifest>
|
|
<mainClass>org.apache.flink.container.entrypoint.testjar.TestUserClassLoaderJob</mainClass>
|
|
</manifest>
|
|
</archive>
|
|
<finalName>maven</finalName>
|
|
<attach>false</attach>
|
|
<descriptors>
|
|
<descriptor>src/test/assembly/test-assembly-test-user-classloader-job-jar.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
<execution>
|
|
<id>create-test-dependency-user-jar-depend</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
<configuration>
|
|
<finalName>maven</finalName>
|
|
<attach>false</attach>
|
|
<descriptors>
|
|
<descriptor>src/test/assembly/test-assembly-test-user-classloader-job-lib-jar.xml</descriptor>
|
|
</descriptors>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
<!--Remove the external jar test code from the test-classes directory since it mustn't be in the
|
|
classpath when running the tests to actually test whether the user code class loader
|
|
is properly used.-->
|
|
<plugin>
|
|
<artifactId>maven-clean-plugin</artifactId>
|
|
<version>2.5</version><!--$NO-MVN-MAN-VER$-->
|
|
<executions>
|
|
<execution>
|
|
<id>remove-externaltestclasses</id>
|
|
<phase>process-test-classes</phase>
|
|
<goals>
|
|
<goal>clean</goal>
|
|
</goals>
|
|
<configuration>
|
|
<excludeDefaultDirectories>true</excludeDefaultDirectories>
|
|
<filesets>
|
|
<fileset>
|
|
<directory>${project.build.testOutputDirectory}</directory>
|
|
<includes>
|
|
<include>**/testjar/TestUser*.class</include>
|
|
</includes>
|
|
</fileset>
|
|
</filesets>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</project>
|