Support generating assembling JAR for store-sdk module
[carbondata.git] / integration / spark-common-test / 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
20 <modelVersion>4.0.0</modelVersion>
21
22 <parent>
23 <groupId>org.apache.carbondata</groupId>
24 <artifactId>carbondata-parent</artifactId>
25 <version>1.3.0-SNAPSHOT</version>
26 <relativePath>../../pom.xml</relativePath>
27 </parent>
28
29 <artifactId>carbondata-spark-common-test</artifactId>
30 <name>Apache CarbonData :: Spark Common Test</name>
31
32 <properties>
33 <dev.path>${basedir}/../../dev</dev.path>
34 <build.directory.projectCommon>../../common/target</build.directory.projectCommon>
35 <build.directory.projectCore>../../core/target</build.directory.projectCore>
36 <build.directory.projectProcessing>../../processing/target</build.directory.projectProcessing>
37 <build.directory.projectHadoop>../../hadoop/target</build.directory.projectHadoop>
38 <build.directory.projectFormat>../../format/target</build.directory.projectFormat>
39 <build.directory.projectSpark>../../integration/spark/target</build.directory.projectSpark>
40 <build.directory.projectSpark2>../../integration/spark2/target</build.directory.projectSpark2>
41 <build.directory.projectSparkCommon>../../integration/spark-common/target</build.directory.projectSparkCommon>
42 <build.directory.projectSparkCommonTest>../../integration/spark-common-test/target</build.directory.projectSparkCommonTest>
43 <build.directory.projectHive>../../integration/hive/target</build.directory.projectHive>
44 <build.directory.projectPresto>../../integration/presto/target</build.directory.projectPresto>
45
46 <classes.directory.projectCommon>../../common/target/classes</classes.directory.projectCommon>
47 <classes.directory.projectCore>../../core/target/classes</classes.directory.projectCore>
48 <classes.directory.projectProcessing>../../processing/target/classes</classes.directory.projectProcessing>
49 <classes.directory.projectHadoop>../../hadoop/target/classes</classes.directory.projectHadoop>
50 <classes.directory.projectFormat>../../format/target/classes</classes.directory.projectFormat>
51 <classes.directory.projectSpark>../../integration/spark/target/classes</classes.directory.projectSpark>
52 <classes.directory.projectSpark2>../../integration/spark2/target/classes</classes.directory.projectSpark2>
53 <classes.directory.projectSparkCommon>../../integration/spark-common/target/classes</classes.directory.projectSparkCommon>
54 <classes.directory.projectSparkCommonTest>../../integration/spark-common-test/target/classes</classes.directory.projectSparkCommonTest>
55 <classes.directory.projectHive>../../integration/hive/target/classes</classes.directory.projectHive>
56 <classes.directory.projectPresto>../../integration/presto/target/classes</classes.directory.projectPresto>
57
58 <sources.directory.projectCommon>../../common/src/main/java</sources.directory.projectCommon>
59 <sources.directory.projectCore>../../core/src/main/java</sources.directory.projectCore>
60 <sources.directory.projectProcessing>../../processing/src/main/java</sources.directory.projectProcessing>
61 <sources.directory.projectHadoop>../../hadoop/src/main/java</sources.directory.projectHadoop>
62 <sources.directory.projectFormat>../../format/src/main/thrift</sources.directory.projectFormat>
63 <sources.directory.projectSpark>../../integration/spark/src/main/scala</sources.directory.projectSpark>
64 <sources.directory.projectSpark>../../integration/spark/src/main/java</sources.directory.projectSpark>
65 <sources.directory.projectSpark2>../../integration/spark2/src/main/java</sources.directory.projectSpark2>
66 <sources.directory.projectSpark2>../../integration/spark2/src/main/scala</sources.directory.projectSpark2>
67 <sources.directory.projectSparkCommon>../../integration/spark-common/src/main/java</sources.directory.projectSparkCommon>
68 <sources.directory.projectSparkCommon>../../integration/spark-common/src/main/scala</sources.directory.projectSparkCommon>
69 <sources.directory.projectHive>../../integration/hive/src/main/java</sources.directory.projectHive>
70 <sources.directory.projectHive>../../integration/hive/src/main/scala</sources.directory.projectHive>
71 <sources.directory.projectPresto>../../integration/presto/src/main/java</sources.directory.projectPresto>
72 <sources.directory.projectPresto>../../integration/presto/src/main/scala</sources.directory.projectPresto>
73
74 <generated-sources.directory.projectCommon>../../common/target/generated-sources/annotations</generated-sources.directory.projectCommon>
75 <generated-sources.directory.projectCore>../../core/target/generated-sources/annotations</generated-sources.directory.projectCore>
76 <generated-sources.directory.projectProcessing>../../processing/target/generated-sources/annotations</generated-sources.directory.projectProcessing>
77 <generated-sources.directory.projectHadoop>../../hadoop/target/generated-sources/annotations</generated-sources.directory.projectHadoop>
78 <generated-sources.directory.projectFormat>../../format/target/generated-sources/annotations</generated-sources.directory.projectFormat>
79 <generated-sources.directory.projectSpark>../../integration/spark/target/generated-sources/annotations</generated-sources.directory.projectSpark>
80 <generated-sources.directory.projectSpark2>../../integration/spark2/target/generated-sources/annotations</generated-sources.directory.projectSpark2>
81 <generated-sources.directory.projectSparkCommon>../../integration/spark-common/target/generated-sources/annotations</generated-sources.directory.projectSparkCommon>
82 <generated-sources.directory.projectSparkCommonTest>../../integration/spark-common-test/target/generated-sources/annotations</generated-sources.directory.projectSparkCommonTest>
83 <generated-sources.directory.projectHive>../../integration/hive/target/generated-sources/annotations</generated-sources.directory.projectHive>
84 <generated-sources.directory.projectPresto>../../integration/presto/target/generated-sources/annotations</generated-sources.directory.projectPresto>
85 </properties>
86
87
88 <dependencies>
89 <dependency>
90 <groupId>org.apache.carbondata</groupId>
91 <artifactId>carbondata-spark-common</artifactId>
92 <version>${project.version}</version>
93 <scope>test</scope>
94 </dependency>
95 <dependency>
96 <groupId>org.apache.carbondata</groupId>
97 <artifactId>carbondata-spark2</artifactId>
98 <version>${project.version}</version>
99 <scope>test</scope>
100 </dependency>
101 <dependency>
102 <groupId>org.apache.spark</groupId>
103 <artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
104 <scope>test</scope>
105 </dependency>
106 <dependency>
107 <groupId>junit</groupId>
108 <artifactId>junit</artifactId>
109 <scope>test</scope>
110 </dependency>
111 <dependency>
112 <groupId>org.scalatest</groupId>
113 <artifactId>scalatest_${scala.binary.version}</artifactId>
114 <scope>test</scope>
115 </dependency>
116 <dependency>
117 <groupId>org.jmockit</groupId>
118 <artifactId>jmockit</artifactId>
119 <scope>test</scope>
120 </dependency>
121 </dependencies>
122
123 <build>
124 <testSourceDirectory>src/test/scala</testSourceDirectory>
125 <resources>
126 <resource>
127 <directory>src/resources</directory>
128 </resource>
129 <resource>
130 <directory>.</directory>
131 <includes>
132 <include>CARBON_SPARK_INTERFACELogResource.properties</include>
133 </includes>
134 </resource>
135 </resources>
136 <plugins>
137 <plugin>
138 <groupId>org.scala-tools</groupId>
139 <artifactId>maven-scala-plugin</artifactId>
140 <version>2.15.2</version>
141 <executions>
142 <execution>
143 <id>compile</id>
144 <goals>
145 <goal>compile</goal>
146 </goals>
147 <phase>compile</phase>
148 </execution>
149 <execution>
150 <id>testCompile</id>
151 <goals>
152 <goal>testCompile</goal>
153 </goals>
154 <phase>test</phase>
155 </execution>
156 <execution>
157 <phase>process-resources</phase>
158 <goals>
159 <goal>compile</goal>
160 </goals>
161 </execution>
162 </executions>
163 </plugin>
164 <plugin>
165 <artifactId>maven-compiler-plugin</artifactId>
166 <configuration>
167 <source>1.7</source>
168 <target>1.7</target>
169 </configuration>
170 </plugin>
171 <plugin>
172 <groupId>org.apache.maven.plugins</groupId>
173 <artifactId>maven-surefire-plugin</artifactId>
174 <version>2.18</version>
175 <!-- Note config is repeated in scalatest config -->
176 <configuration>
177 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
178 <argLine>-Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m</argLine>
179 <systemProperties>
180 <java.awt.headless>true</java.awt.headless>
181 <spark.carbon.hive.schema.store>${carbon.hive.based.metastore}</spark.carbon.hive.schema.store>
182 </systemProperties>
183 <failIfNoTests>false</failIfNoTests>
184 </configuration>
185 </plugin>
186 <plugin>
187 <groupId>org.scalatest</groupId>
188 <artifactId>scalatest-maven-plugin</artifactId>
189 <version>1.0</version>
190 <!-- Note config is repeated in surefire config -->
191 <configuration>
192 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
193 <junitxml>.</junitxml>
194 <filereports>CarbonTestSuite.txt</filereports>
195 <argLine> ${argLine} -ea -Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m
196 </argLine>
197 <stderr />
198 <environmentVariables>
199 </environmentVariables>
200 <systemProperties>
201 <java.awt.headless>true</java.awt.headless>
202 <spark.carbon.hive.schema.store>${carbon.hive.based.metastore}</spark.carbon.hive.schema.store>
203 </systemProperties>
204 </configuration>
205 <executions>
206 <execution>
207 <id>test</id>
208 <goals>
209 <goal>test</goal>
210 </goals>
211 </execution>
212 </executions>
213 </plugin>
214 <plugin>
215 <groupId>org.apache.maven.plugins</groupId>
216 <artifactId>maven-dependency-plugin</artifactId>
217 <executions>
218 <!-- Copy the ant tasks jar. Needed for ts.jacoco.report-ant . -->
219 <execution>
220 <id>jacoco-dependency-ant</id>
221 <goals>
222 <goal>copy</goal>
223 </goals>
224 <phase>process-test-resources</phase>
225 <inherited>false</inherited>
226 <configuration>
227 <artifactItems>
228 <artifactItem>
229 <groupId>org.jacoco</groupId>
230 <artifactId>org.jacoco.ant</artifactId>
231 <version>0.7.9</version>
232 </artifactItem>
233 </artifactItems>
234 <stripVersion>true</stripVersion>
235 <outputDirectory>${basedir}/target/jacoco-jars</outputDirectory>
236 </configuration>
237 </execution>
238 </executions>
239 </plugin>
240 <plugin>
241 <groupId>org.apache.maven.plugins</groupId>
242 <artifactId>maven-antrun-plugin</artifactId>
243 <version>1.6</version>
244 <executions>
245 <execution>
246 <phase>post-integration-test</phase>
247 <goals>
248 <goal>run</goal>
249 </goals>
250 <configuration>
251 <target>
252 <echo message="Generating JaCoCo Reports" />
253 <taskdef name="report" classname="org.jacoco.ant.ReportTask">
254 <classpath path="${basedir}/target/jacoco-jars/org.jacoco.ant.jar" />
255 </taskdef>
256 <mkdir dir="${basedir}/target/coverage-report" />
257 <report>
258 <executiondata>
259 <fileset dir="${build.directory.projectCommon}">
260 <include name="jacoco.exec" />
261 </fileset>
262 <fileset dir="${build.directory.projectCore}">
263 <include name="jacoco.exec" />
264 </fileset>
265 <fileset dir="${build.directory.projectProcessing}">
266 <include name="jacoco.exec" />
267 </fileset>
268 <fileset dir="${build.directory.projectHadoop}">
269 <include name="jacoco.exec" />
270 </fileset>
271 <fileset dir="${build.directory.projectFormat}" erroronmissingdir="false">
272 <include name="jacoco.exec" />
273 </fileset>
274 <fileset dir="${build.directory.projectSpark}" erroronmissingdir="false">
275 <include name="jacoco.exec" />
276 </fileset>
277 <fileset dir="${build.directory.projectSpark2}" erroronmissingdir="false">
278 <include name="jacoco.exec" />
279 </fileset>
280 <fileset dir="${build.directory.projectSparkCommon}">
281 <include name="jacoco.exec" />
282 </fileset>
283 <fileset dir="${build.directory.projectSparkCommonTest}">
284 <include name="jacoco.exec" />
285 </fileset>
286 <fileset dir="${build.directory.projectHive}" erroronmissingdir="false">
287 <include name="jacoco.exec" />
288 </fileset>
289 <fileset dir="${build.directory.projectPresto}" erroronmissingdir="false">
290 <include name="jacoco.exec" />
291 </fileset>
292
293 </executiondata>
294 <structure name="jacoco-CarbonData Coverage Project">
295 <group name="carbondata-coverage">
296 <classfiles>
297 <fileset dir="${classes.directory.projectCommon}" />
298 <fileset dir="${classes.directory.projectCore}" />
299 <fileset dir="${classes.directory.projectProcessing}" />
300 <fileset dir="${classes.directory.projectHadoop}" />
301 <fileset dir="${classes.directory.projectFormat}" erroronmissingdir="false"/>
302 <fileset dir="${classes.directory.projectSpark}" erroronmissingdir="false"/>
303 <fileset dir="${classes.directory.projectSpark2}" erroronmissingdir="false"/>
304 <fileset dir="${classes.directory.projectSparkCommon}" />
305 <fileset dir="${classes.directory.projectSparkCommonTest}" />
306 <fileset dir="${classes.directory.projectHive}" erroronmissingdir="false" />
307 <fileset dir="${classes.directory.projectPresto}" erroronmissingdir="false" />
308
309 </classfiles>
310 <sourcefiles encoding="UTF-8">
311 <fileset dir="${sources.directory.projectCommon}" />
312 <fileset dir="${sources.directory.projectCore}" />
313 <fileset dir="${sources.directory.projectProcessing}" />
314 <fileset dir="${sources.directory.projectHadoop}" />
315 <fileset dir="${sources.directory.projectFormat}" erroronmissingdir="false"/>
316 <fileset dir="${sources.directory.projectSpark}" erroronmissingdir="false"/>
317 <fileset dir="${sources.directory.projectSpark2}" erroronmissingdir="false"/>
318 <fileset dir="${sources.directory.projectSparkCommon}" />
319 <fileset dir="${sources.directory.projectHive}" erroronmissingdir="false" />
320 <fileset dir="${sources.directory.projectPresto}" erroronmissingdir="false" />
321 </sourcefiles>
322 </group>
323 </structure>
324 <html destdir="../../target/carbondata-coverage-report/html" />
325 <xml destfile="../../target/carbondata-coverage-report/carbondata-coverage-report.xml" />
326 <csv destfile="../../target/carbondata-coverage-report/carbondata-coverage-report.csv" />
327 </report>
328 </target>
329 </configuration>
330 </execution>
331 </executions>
332 <dependencies>
333 <dependency>
334 <groupId>org.jacoco</groupId>
335 <artifactId>org.jacoco.ant</artifactId>
336 <version>0.7.9</version>
337 </dependency>
338 </dependencies>
339 </plugin>
340 </plugins>
341 </build>
342 <profiles>
343 <profile>
344 <id>sdvtest</id>
345 <properties>
346 <maven.test.skip>true</maven.test.skip>
347 </properties>
348 </profile>
349 <profile>
350 <id>build-all</id>
351 <build>
352 <plugins>
353 <plugin>
354 <groupId>org.apache.maven.plugins</groupId>
355 <artifactId>maven-antrun-plugin</artifactId>
356 <configuration>
357 <skip>true</skip>
358 </configuration>
359 </plugin>
360 </plugins>
361 </build>
362 </profile>
363 </profiles>
364 </project>