Support generating assembling JAR for store-sdk module
[carbondata.git] / store / sdk / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0"
2 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4
5 <modelVersion>4.0.0</modelVersion>
6
7 <parent>
8 <groupId>org.apache.carbondata</groupId>
9 <artifactId>carbondata-parent</artifactId>
10 <version>1.3.0-SNAPSHOT</version>
11 <relativePath>../../pom.xml</relativePath>
12 </parent>
13
14 <artifactId>carbondata-store-sdk</artifactId>
15 <name>Apache CarbonData :: Store SDK</name>
16
17 <properties>
18 <dev.path>${basedir}/../../dev</dev.path>
19 </properties>
20
21 <dependencies>
22 <dependency>
23 <groupId>org.apache.carbondata</groupId>
24 <artifactId>carbondata-hadoop</artifactId>
25 <version>${project.version}</version>
26 </dependency>
27 <dependency>
28 <groupId>junit</groupId>
29 <artifactId>junit</artifactId>
30 <scope>test</scope>
31 </dependency>
32 <dependency>
33 <groupId>org.scalatest</groupId>
34 <artifactId>scalatest_${scala.binary.version}</artifactId>
35 <scope>test</scope>
36 </dependency>
37 </dependencies>
38
39 <build>
40 <resources>
41 <resource>
42 <directory>src/resources</directory>
43 </resource>
44 <resource>
45 <directory>.</directory>
46 <includes>
47 <include>CARBON_SPARK_INTERFACELogResource.properties</include>
48 </includes>
49 </resource>
50 </resources>
51 <plugins>
52 <plugin>
53 <groupId>org.scala-tools</groupId>
54 <artifactId>maven-scala-plugin</artifactId>
55 <version>2.15.2</version>
56 <executions>
57 <execution>
58 <id>compile</id>
59 <goals>
60 <goal>compile</goal>
61 </goals>
62 <phase>compile</phase>
63 </execution>
64 <execution>
65 <id>testCompile</id>
66 <goals>
67 <goal>testCompile</goal>
68 </goals>
69 <phase>test</phase>
70 </execution>
71 <execution>
72 <phase>process-resources</phase>
73 <goals>
74 <goal>compile</goal>
75 </goals>
76 </execution>
77 </executions>
78 </plugin>
79 <plugin>
80 <artifactId>maven-compiler-plugin</artifactId>
81 <configuration>
82 <source>1.7</source>
83 <target>1.7</target>
84 </configuration>
85 </plugin>
86 <plugin>
87 <groupId>org.apache.maven.plugins</groupId>
88 <artifactId>maven-surefire-plugin</artifactId>
89 <version>2.18</version>
90 <!-- Note config is repeated in scalatest config -->
91 <configuration>
92 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
93 <argLine>-Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m</argLine>
94 <systemProperties>
95 <java.awt.headless>true</java.awt.headless>
96 </systemProperties>
97 <failIfNoTests>false</failIfNoTests>
98 </configuration>
99 </plugin>
100 <plugin>
101 <groupId>org.scalatest</groupId>
102 <artifactId>scalatest-maven-plugin</artifactId>
103 <version>1.0</version>
104 <!-- Note config is repeated in surefire config -->
105 <configuration>
106 <reportsDirectory>${project.build.directory}/surefire-reports</reportsDirectory>
107 <junitxml>.</junitxml>
108 <filereports>CarbonTestSuite.txt</filereports>
109 <argLine> ${argLine} -ea -Xmx3g -XX:MaxPermSize=512m -XX:ReservedCodeCacheSize=512m
110 </argLine>
111 <stderr />
112 <environmentVariables>
113 </environmentVariables>
114 <systemProperties>
115 <java.awt.headless>true</java.awt.headless>
116 </systemProperties>
117 </configuration>
118 <executions>
119 <execution>
120 <id>test</id>
121 <goals>
122 <goal>test</goal>
123 </goals>
124 </execution>
125 </executions>
126 </plugin>
127 <plugin>
128 <groupId>org.apache.maven.plugins</groupId>
129 <artifactId>maven-deploy-plugin</artifactId>
130 <configuration>
131 <skip>true</skip>
132 </configuration>
133 </plugin>
134 <plugin>
135 <groupId>org.apache.maven.plugins</groupId>
136 <artifactId>maven-install-plugin</artifactId>
137 <configuration>
138 <skip>true</skip>
139 </configuration>
140 </plugin>
141 <plugin>
142 <groupId>org.apache.maven.plugins</groupId>
143 <artifactId>maven-shade-plugin</artifactId>
144 <configuration>
145 <shadedArtifactAttached>false</shadedArtifactAttached>
146 <promoteTransitiveDependencies>true</promoteTransitiveDependencies>
147 <outputFile>carbondata-sdk.jar</outputFile>
148 <artifactSet>
149 <includes>
150 <include>*:*</include>
151 </includes>
152 </artifactSet>
153 <filters>
154 <filter>
155 <artifact>*:*</artifact>
156 <excludes>
157 <exclude>org/datanucleus/**</exclude>
158 <exclude>META-INF/*.SF</exclude>
159 <exclude>META-INF/*.DSA</exclude>
160 <exclude>META-INF/*.RSA</exclude>
161 <exclude>META-INF/vfs-providers.xml</exclude>
162 <exclude>io/netty/**</exclude>
163 </excludes>
164 </filter>
165 </filters>
166 </configuration>
167 <executions>
168 <execution>
169 <phase>package</phase>
170 <goals>
171 <goal>shade</goal>
172 </goals>
173 </execution>
174 </executions>
175 </plugin>
176 </plugins>
177 </build>
178 </project>