[SPARK-24529][BUILD][TEST-MAVEN] Add spotbugs into maven build process
[spark.git] / resource-managers / kubernetes / integration-tests / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3 ~ Licensed to the Apache Software Foundation (ASF) under one or more
4 ~ contributor license agreements. See the NOTICE file distributed with
5 ~ this work for additional information regarding copyright ownership.
6 ~ The ASF licenses this file to You under the Apache License, Version 2.0
7 ~ (the "License"); you may not use this file except in compliance with
8 ~ the License. You may obtain a copy of the License at
9 ~
10 ~ http://www.apache.org/licenses/LICENSE-2.0
11 ~
12 ~ Unless required by applicable law or agreed to in writing, software
13 ~ distributed under the License is distributed on an "AS IS" BASIS,
14 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 ~ See the License for the specific language governing permissions and
16 ~ limitations under the License.
17 -->
18 <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/xsd/maven-4.0.0.xsd">
19 <modelVersion>4.0.0</modelVersion>
20 <parent>
21 <groupId>org.apache.spark</groupId>
22 <artifactId>spark-parent_2.11</artifactId>
23 <version>2.4.0-SNAPSHOT</version>
24 <relativePath>../../../pom.xml</relativePath>
25 </parent>
26
27 <artifactId>spark-kubernetes-integration-tests_2.11</artifactId>
28 <groupId>spark-kubernetes-integration-tests</groupId>
29 <properties>
30 <download-maven-plugin.version>1.3.0</download-maven-plugin.version>
31 <exec-maven-plugin.version>1.4.0</exec-maven-plugin.version>
32 <extraScalaTestArgs></extraScalaTestArgs>
33 <kubernetes-client.version>3.0.0</kubernetes-client.version>
34 <scala-maven-plugin.version>3.2.2</scala-maven-plugin.version>
35 <scalatest-maven-plugin.version>1.0</scalatest-maven-plugin.version>
36 <sbt.project.name>kubernetes-integration-tests</sbt.project.name>
37 <spark.kubernetes.test.unpackSparkDir>${project.build.directory}/spark-dist-unpacked</spark.kubernetes.test.unpackSparkDir>
38 <spark.kubernetes.test.imageTag>N/A</spark.kubernetes.test.imageTag>
39 <spark.kubernetes.test.imageTagFile>${project.build.directory}/imageTag.txt</spark.kubernetes.test.imageTagFile>
40 <spark.kubernetes.test.deployMode>minikube</spark.kubernetes.test.deployMode>
41 <spark.kubernetes.test.imageRepo>docker.io/kubespark</spark.kubernetes.test.imageRepo>
42 <test.exclude.tags></test.exclude.tags>
43 <test.include.tags></test.include.tags>
44 </properties>
45 <packaging>jar</packaging>
46 <name>Spark Project Kubernetes Integration Tests</name>
47
48 <dependencies>
49 <dependency>
50 <groupId>org.apache.spark</groupId>
51 <artifactId>spark-core_${scala.binary.version}</artifactId>
52 <version>${project.version}</version>
53 </dependency>
54 <dependency>
55 <groupId>org.apache.spark</groupId>
56 <artifactId>spark-core_${scala.binary.version}</artifactId>
57 <version>${project.version}</version>
58 <type>test-jar</type>
59 <scope>test</scope>
60 </dependency>
61 <dependency>
62 <groupId>io.fabric8</groupId>
63 <artifactId>kubernetes-client</artifactId>
64 <version>${kubernetes-client.version}</version>
65 </dependency>
66 <dependency>
67 <groupId>org.apache.spark</groupId>
68 <artifactId>spark-tags_${scala.binary.version}</artifactId>
69 <type>test-jar</type>
70 </dependency>
71 </dependencies>
72
73 <build>
74 <plugins>
75 <plugin>
76 <groupId>org.codehaus.mojo</groupId>
77 <artifactId>exec-maven-plugin</artifactId>
78 <version>${exec-maven-plugin.version}</version>
79 <executions>
80 <execution>
81 <id>setup-integration-test-env</id>
82 <phase>pre-integration-test</phase>
83 <goals>
84 <goal>exec</goal>
85 </goals>
86 <configuration>
87 <executable>scripts/setup-integration-test-env.sh</executable>
88 <arguments>
89 <argument>--unpacked-spark-tgz</argument>
90 <argument>${spark.kubernetes.test.unpackSparkDir}</argument>
91
92 <argument>--image-repo</argument>
93 <argument>${spark.kubernetes.test.imageRepo}</argument>
94
95 <argument>--image-tag</argument>
96 <argument>${spark.kubernetes.test.imageTag}</argument>
97
98 <argument>--image-tag-output-file</argument>
99 <argument>${spark.kubernetes.test.imageTagFile}</argument>
100
101 <argument>--deploy-mode</argument>
102 <argument>${spark.kubernetes.test.deployMode}</argument>
103
104 <argument>--spark-tgz</argument>
105 <argument>${spark.kubernetes.test.sparkTgz}</argument>
106 </arguments>
107 </configuration>
108 </execution>
109 </executions>
110 </plugin>
111
112 <plugin>
113 <groupId>org.apache.maven.plugins</groupId>
114 <artifactId>maven-surefire-plugin</artifactId>
115 <configuration>
116 <skipTests>true</skipTests>
117 </configuration>
118 </plugin>
119
120 <plugin>
121 <!-- Triggers scalatest plugin in the integration-test phase instead of
122 the test phase. -->
123 <groupId>org.scalatest</groupId>
124 <artifactId>scalatest-maven-plugin</artifactId>
125 <version>${scalatest-maven-plugin.version}</version>
126 <configuration>
127 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
128 <junitxml>.</junitxml>
129 <filereports>SparkTestSuite.txt</filereports>
130 <argLine>-ea -Xmx3g -XX:ReservedCodeCacheSize=512m ${extraScalaTestArgs}</argLine>
131 <stderr/>
132 <systemProperties>
133 <log4j.configuration>file:src/test/resources/log4j.properties</log4j.configuration>
134 <java.awt.headless>true</java.awt.headless>
135 <spark.kubernetes.test.imageTagFile>${spark.kubernetes.test.imageTagFile}</spark.kubernetes.test.imageTagFile>
136 <spark.kubernetes.test.unpackSparkDir>${spark.kubernetes.test.unpackSparkDir}</spark.kubernetes.test.unpackSparkDir>
137 <spark.kubernetes.test.imageRepo>${spark.kubernetes.test.imageRepo}</spark.kubernetes.test.imageRepo>
138 <spark.kubernetes.test.deployMode>${spark.kubernetes.test.deployMode}</spark.kubernetes.test.deployMode>
139 <spark.kubernetes.test.master>${spark.kubernetes.test.master}</spark.kubernetes.test.master>
140 <spark.kubernetes.test.namespace>${spark.kubernetes.test.namespace}</spark.kubernetes.test.namespace>
141 <spark.kubernetes.test.serviceAccountName>${spark.kubernetes.test.serviceAccountName}</spark.kubernetes.test.serviceAccountName>
142 </systemProperties>
143 <tagsToExclude>${test.exclude.tags}</tagsToExclude>
144 <tagsToInclude>${test.include.tags}</tagsToInclude>
145 </configuration>
146 <executions>
147 <execution>
148 <id>test</id>
149 <goals>
150 <goal>test</goal>
151 </goals>
152 <configuration>
153 <!-- The negative pattern below prevents integration tests such as
154 KubernetesSuite from running in the test phase. -->
155 <suffixes>(?&lt;!Suite)</suffixes>
156 </configuration>
157 </execution>
158 <execution>
159 <id>integration-test</id>
160 <phase>integration-test</phase>
161 <goals>
162 <goal>test</goal>
163 </goals>
164 </execution>
165 </executions>
166 </plugin>
167 </plugins>
168
169 </build>
170
171 </project>