Support generating assembling JAR for store-sdk module
[carbondata.git] / integration / spark2 / 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-spark2</artifactId>
30 <name>Apache CarbonData :: Spark2</name>
31
32 <properties>
33 <dev.path>${basedir}/../../dev</dev.path>
34 </properties>
35
36 <dependencies>
37 <dependency>
38 <groupId>org.apache.carbondata</groupId>
39 <artifactId>carbondata-streaming</artifactId>
40 <version>${project.version}</version>
41 </dependency>
42 <dependency>
43 <groupId>org.apache.spark</groupId>
44 <artifactId>spark-hive-thriftserver_${scala.binary.version}</artifactId>
45 </dependency>
46 <dependency>
47 <groupId>org.apache.spark</groupId>
48 <artifactId>spark-repl_${scala.binary.version}</artifactId>
49 </dependency>
50 <dependency>
51 <groupId>junit</groupId>
52 <artifactId>junit</artifactId>
53 <scope>test</scope>
54 </dependency>
55 <dependency>
56 <groupId>org.scalatest</groupId>
57 <artifactId>scalatest_${scala.binary.version}</artifactId>
58 <scope>test</scope>
59 </dependency>
60 <dependency>
61 <groupId>org.apache.hadoop</groupId>
62 <artifactId>hadoop-aws</artifactId>
63 <version>${hadoop.version}</version>
64 <exclusions>
65 <exclusion>
66 <groupId>com.fasterxml.jackson.core</groupId>
67 <artifactId>jackson-core</artifactId>
68 </exclusion>
69 <exclusion>
70 <groupId>com.fasterxml.jackson.core</groupId>
71 <artifactId>jackson-annotations</artifactId>
72 </exclusion>
73 <exclusion>
74 <groupId>com.fasterxml.jackson.core</groupId>
75 <artifactId>jackson-databind</artifactId>
76 </exclusion>
77 </exclusions>
78 </dependency>
79 <dependency>
80 <groupId>com.amazonaws</groupId>
81 <artifactId>aws-java-sdk</artifactId>
82 <version>1.7.4</version>
83 <exclusions>
84 <exclusion>
85 <groupId>com.fasterxml.jackson.core</groupId>
86 <artifactId>jackson-core</artifactId>
87 </exclusion>
88 <exclusion>
89 <groupId>com.fasterxml.jackson.core</groupId>
90 <artifactId>jackson-annotations</artifactId>
91 </exclusion>
92 <exclusion>
93 <groupId>com.fasterxml.jackson.core</groupId>
94 <artifactId>jackson-databind</artifactId>
95 </exclusion>
96 </exclusions>
97 </dependency>
98 <dependency>
99 <groupId>net.java.dev.jets3t</groupId>
100 <artifactId>jets3t</artifactId>
101 <version>0.9.0</version>
102 </dependency>
103 </dependencies>
104
105 <build>
106 <testSourceDirectory>src/test/scala</testSourceDirectory>
107 <resources>
108 <resource>
109 <directory>src/resources</directory>
110 </resource>
111 <resource>
112 <directory>.</directory>
113 <includes>
114 <include>CARBON_SPARK_INTERFACELogResource.properties</include>
115 </includes>
116 </resource>
117 </resources>
118 <plugins>
119 <plugin>
120 <groupId>org.scala-tools</groupId>
121 <artifactId>maven-scala-plugin</artifactId>
122 <version>2.15.2</version>
123 <executions>
124 <execution>
125 <id>compile</id>
126 <goals>
127 <goal>compile</goal>
128 </goals>
129 <phase>compile</phase>
130 </execution>
131 <execution>
132 <id>testCompile</id>
133 <goals>
134 <goal>testCompile</goal>
135 </goals>
136 <phase>test</phase>
137 </execution>
138 <execution>
139 <phase>process-resources</phase>
140 <goals>
141 <goal>compile</goal>
142 </goals>
143 </execution>
144 </executions>
145 </plugin>
146 <plugin>
147 <artifactId>maven-compiler-plugin</artifactId>
148 <configuration>
149 <source>1.7</source>
150 <target>1.7</target>
151 </configuration>
152 </plugin>
153 <plugin>
154 <groupId>org.apache.maven.plugins</groupId>
155 <artifactId>maven-surefire-plugin</artifactId>
156 <version>2.18</version>
157 <!-- Note config is repeated in scalatest config -->
158 <configuration>
159 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
160 <argLine>-Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m</argLine>
161 <systemProperties>
162 <java.awt.headless>true</java.awt.headless>
163 <spark.carbon.hive.schema.store>${carbon.hive.based.metastore}</spark.carbon.hive.schema.store>
164 </systemProperties>
165 <failIfNoTests>false</failIfNoTests>
166 </configuration>
167 </plugin>
168 <plugin>
169 <groupId>org.scalatest</groupId>
170 <artifactId>scalatest-maven-plugin</artifactId>
171 <version>1.0</version>
172 <!-- Note config is repeated in surefire config -->
173 <configuration>
174 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
175 <junitxml>.</junitxml>
176 <filereports>CarbonTestSuite.txt</filereports>
177 <argLine> ${argLine} -ea -Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m
178 </argLine>
179 <stderr />
180 <environmentVariables>
181 </environmentVariables>
182 <systemProperties>
183 <java.awt.headless>true</java.awt.headless>
184 <spark.carbon.hive.schema.store>${carbon.hive.based.metastore}</spark.carbon.hive.schema.store>
185 </systemProperties>
186 </configuration>
187 <executions>
188 <execution>
189 <id>test</id>
190 <goals>
191 <goal>test</goal>
192 </goals>
193 </execution>
194 </executions>
195 </plugin>
196 </plugins>
197 </build>
198 <profiles>
199 <profile>
200 <id>build-all</id>
201 <properties>
202 <spark.version>2.2.1</spark.version>
203 <scala.binary.version>2.11</scala.binary.version>
204 <scala.version>2.11.8</scala.version>
205 </properties>
206 </profile>
207 <profile>
208 <id>sdvtest</id>
209 <properties>
210 <maven.test.skip>true</maven.test.skip>
211 </properties>
212 </profile>
213 <profile>
214 <id>spark-2.1</id>
215 <properties>
216 <spark.version>2.1.0</spark.version>
217 <scala.binary.version>2.11</scala.binary.version>
218 <scala.version>2.11.8</scala.version>
219 </properties>
220 <build>
221 <plugins>
222 <plugin>
223 <groupId>org.apache.maven.plugins</groupId>
224 <artifactId>maven-compiler-plugin</artifactId>
225 <configuration>
226 <excludes>
227 <exclude>src/main/spark2.2</exclude>
228 </excludes>
229 </configuration>
230 </plugin>
231 <plugin>
232 <groupId>org.codehaus.mojo</groupId>
233 <artifactId>build-helper-maven-plugin</artifactId>
234 <version>3.0.0</version>
235 <executions>
236 <execution>
237 <id>add-source</id>
238 <phase>generate-sources</phase>
239 <goals>
240 <goal>add-source</goal>
241 </goals>
242 <configuration>
243 <sources>
244 <source>src/main/spark2.1</source>
245 </sources>
246 </configuration>
247 </execution>
248 </executions>
249 </plugin>
250 </plugins>
251 </build>
252 </profile>
253 <profile>
254 <id>spark-2.2</id>
255 <properties>
256 <spark.version>2.2.1</spark.version>
257 <scala.binary.version>2.11</scala.binary.version>
258 <scala.version>2.11.8</scala.version>
259 </properties>
260 <build>
261 <plugins>
262 <plugin>
263 <groupId>org.apache.maven.plugins</groupId>
264 <artifactId>maven-compiler-plugin</artifactId>
265 <configuration>
266 <excludes>
267 <exclude>src/main/spark2.1</exclude>
268 </excludes>
269 </configuration>
270 </plugin>
271 <plugin>
272 <groupId>org.codehaus.mojo</groupId>
273 <artifactId>build-helper-maven-plugin</artifactId>
274 <version>3.0.0</version>
275 <executions>
276 <execution>
277 <id>add-source</id>
278 <phase>generate-sources</phase>
279 <goals>
280 <goal>add-source</goal>
281 </goals>
282 <configuration>
283 <sources>
284 <source>src/main/spark2.2</source>
285 </sources>
286 </configuration>
287 </execution>
288 </executions>
289 </plugin>
290 </plugins>
291 </build>
292 </profile>
293 </profiles>
294 </project>