|
36 | 36 | </properties> |
37 | 37 |
|
38 | 38 | <dependencies> |
| 39 | + <dependency> |
| 40 | + <groupId>com.twitter</groupId> |
| 41 | + <artifactId>parquet-hive-bundle</artifactId> |
| 42 | + <version>1.5.0</version> |
| 43 | + </dependency> |
39 | 44 | <dependency> |
40 | 45 | <groupId>org.apache.spark</groupId> |
41 | 46 | <artifactId>spark-core_${scala.binary.version}</artifactId> |
|
46 | 51 | <artifactId>spark-sql_${scala.binary.version}</artifactId> |
47 | 52 | <version>${project.version}</version> |
48 | 53 | </dependency> |
| 54 | + <dependency> |
| 55 | + <groupId>org.spark-project.hive</groupId> |
| 56 | + <artifactId>hive-metastore</artifactId> |
| 57 | + <version>${hive.version}</version> |
| 58 | + </dependency> |
49 | 59 | <dependency> |
50 | 60 | <groupId>commons-httpclient</groupId> |
51 | 61 | <artifactId>commons-httpclient</artifactId> |
52 | 62 | <version>3.1</version> |
53 | 63 | </dependency> |
| 64 | + <dependency> |
| 65 | + <groupId>org.spark-project.hive</groupId> |
| 66 | + <artifactId>hive-exec</artifactId> |
| 67 | + <version>${hive.version}</version> |
| 68 | + <exclusions> |
| 69 | + <exclusion> |
| 70 | + <groupId>commons-logging</groupId> |
| 71 | + <artifactId>commons-logging</artifactId> |
| 72 | + </exclusion> |
| 73 | + </exclusions> |
| 74 | + </dependency> |
54 | 75 | <dependency> |
55 | 76 | <groupId>org.codehaus.jackson</groupId> |
56 | 77 | <artifactId>jackson-mapper-asl</artifactId> |
57 | 78 | </dependency> |
| 79 | + <dependency> |
| 80 | + <groupId>org.spark-project.hive</groupId> |
| 81 | + <artifactId>hive-serde</artifactId> |
| 82 | + <version>${hive.version}</version> |
| 83 | + <exclusions> |
| 84 | + <exclusion> |
| 85 | + <groupId>commons-logging</groupId> |
| 86 | + <artifactId>commons-logging</artifactId> |
| 87 | + </exclusion> |
| 88 | + <exclusion> |
| 89 | + <groupId>commons-logging</groupId> |
| 90 | + <artifactId>commons-logging-api</artifactId> |
| 91 | + </exclusion> |
| 92 | + </exclusions> |
| 93 | + </dependency> |
58 | 94 | <!-- hive-serde already depends on avro, but this brings in customized config of avro deps from parent --> |
59 | 95 | <dependency> |
60 | 96 | <groupId>org.apache.avro</groupId> |
|
80 | 116 | <scope>test</scope> |
81 | 117 | </dependency> |
82 | 118 | </dependencies> |
83 | | - |
84 | 119 | <profiles> |
85 | | - <profile> |
86 | | - <id>hive-default</id> |
87 | | - <activation> |
88 | | - <property> |
89 | | - <name>!hive.version</name> |
90 | | - </property> |
91 | | - </activation> |
92 | | - <dependencies> |
93 | | - <dependency> |
94 | | - <groupId>com.twitter</groupId> |
95 | | - <artifactId>parquet-hive-bundle</artifactId> |
96 | | - <version>1.5.0</version> |
97 | | - </dependency> |
98 | | - <dependency> |
99 | | - <groupId>org.spark-project.hive</groupId> |
100 | | - <artifactId>hive-metastore</artifactId> |
101 | | - <version>${hive.version}</version> |
102 | | - </dependency> |
103 | | - <dependency> |
104 | | - <groupId>org.spark-project.hive</groupId> |
105 | | - <artifactId>hive-exec</artifactId> |
106 | | - <version>${hive.version}</version> |
107 | | - <exclusions> |
108 | | - <exclusion> |
109 | | - <groupId>commons-logging</groupId> |
110 | | - <artifactId>commons-logging</artifactId> |
111 | | - </exclusion> |
112 | | - </exclusions> |
113 | | - </dependency> |
114 | | - <dependency> |
115 | | - <groupId>org.spark-project.hive</groupId> |
116 | | - <artifactId>hive-serde</artifactId> |
117 | | - <version>${hive.version}</version> |
118 | | - <exclusions> |
119 | | - <exclusion> |
120 | | - <groupId>commons-logging</groupId> |
121 | | - <artifactId>commons-logging</artifactId> |
122 | | - </exclusion> |
123 | | - <exclusion> |
124 | | - <groupId>commons-logging</groupId> |
125 | | - <artifactId>commons-logging-api</artifactId> |
126 | | - </exclusion> |
127 | | - </exclusions> |
128 | | - </dependency> |
129 | | - </dependencies> |
130 | | - <build> |
131 | | - <plugins> |
132 | | - <plugin> |
133 | | - <groupId>org.codehaus.mojo</groupId> |
134 | | - <artifactId>build-helper-maven-plugin</artifactId> |
135 | | - <executions> |
136 | | - <execution> |
137 | | - <id>add-default-sources</id> |
138 | | - <phase>generate-sources</phase> |
139 | | - <goals> |
140 | | - <goal>add-source</goal> |
141 | | - </goals> |
142 | | - <configuration> |
143 | | - <sources> |
144 | | - <source>v${hive.version}/src/main/scala</source> |
145 | | - </sources> |
146 | | - </configuration> |
147 | | - </execution> |
148 | | - </executions> |
149 | | - </plugin> |
150 | | - </plugins> |
151 | | - </build> |
152 | | - </profile> |
153 | 120 | <profile> |
154 | 121 | <id>hive</id> |
155 | 122 | <build> |
|
176 | 143 | </plugins> |
177 | 144 | </build> |
178 | 145 | </profile> |
179 | | - <profile> |
180 | | - <id>hive-versions</id> |
181 | | - <activation> |
182 | | - <property> |
183 | | - <name>hive.version</name> |
184 | | - </property> |
185 | | - </activation> |
186 | | - <dependencies> |
187 | | - <dependency> |
188 | | - <groupId>org.apache.hive</groupId> |
189 | | - <artifactId>hive-metastore</artifactId> |
190 | | - <version>${hive.version}</version> |
191 | | - </dependency> |
192 | | - <dependency> |
193 | | - <groupId>org.apache.hive</groupId> |
194 | | - <artifactId>hive-exec</artifactId> |
195 | | - <version>${hive.version}</version> |
196 | | - <exclusions> |
197 | | - <exclusion> |
198 | | - <groupId>commons-logging</groupId> |
199 | | - <artifactId>commons-logging</artifactId> |
200 | | - </exclusion> |
201 | | - </exclusions> |
202 | | - </dependency> |
203 | | - <dependency> |
204 | | - <groupId>org.apache.hive</groupId> |
205 | | - <artifactId>hive-serde</artifactId> |
206 | | - <version>${hive.version}</version> |
207 | | - <exclusions> |
208 | | - <exclusion> |
209 | | - <groupId>commons-logging</groupId> |
210 | | - <artifactId>commons-logging</artifactId> |
211 | | - </exclusion> |
212 | | - <exclusion> |
213 | | - <groupId>commons-logging</groupId> |
214 | | - <artifactId>commons-logging-api</artifactId> |
215 | | - </exclusion> |
216 | | - </exclusions> |
217 | | - </dependency> |
218 | | - </dependencies> |
219 | | - <build> |
220 | | - <plugins> |
| 146 | + </profiles> |
| 147 | + |
| 148 | + <build> |
| 149 | + <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> |
| 150 | + <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> |
| 151 | + <plugins> |
| 152 | + <plugin> |
| 153 | + <groupId>org.scalatest</groupId> |
| 154 | + <artifactId>scalatest-maven-plugin</artifactId> |
| 155 | + </plugin> |
| 156 | + |
221 | 157 | <plugin> |
222 | 158 | <groupId>org.codehaus.mojo</groupId> |
223 | 159 | <artifactId>build-helper-maven-plugin</artifactId> |
224 | 160 | <executions> |
225 | 161 | <execution> |
226 | | - <id>add-v13-sources</id> |
| 162 | + <id>add-default-sources</id> |
227 | 163 | <phase>generate-sources</phase> |
228 | 164 | <goals> |
229 | 165 | <goal>add-source</goal> |
230 | 166 | </goals> |
231 | 167 | <configuration> |
232 | 168 | <sources> |
233 | | - <source>v${hive.version}/src/main/scala</source> |
234 | | - </sources> |
235 | | - </configuration> |
236 | | - </execution> |
237 | | - <execution> |
238 | | - <id>add-scala-test-sources</id> |
239 | | - <phase>generate-test-sources</phase> |
240 | | - <goals> |
241 | | - <goal>add-test-source</goal> |
242 | | - </goals> |
243 | | - <configuration> |
244 | | - <sources> |
245 | | - <source>src/test/scala</source> |
| 169 | + <source>v${hive.version.short}/src/main/scala</source> |
246 | 170 | </sources> |
247 | 171 | </configuration> |
248 | 172 | </execution> |
249 | 173 | </executions> |
250 | 174 | </plugin> |
251 | | - </plugins> |
252 | | - </build> |
253 | | - </profile> |
254 | | - </profiles> |
255 | | - |
256 | | - <build> |
257 | | - <outputDirectory>target/scala-${scala.binary.version}/classes</outputDirectory> |
258 | | - <testOutputDirectory>target/scala-${scala.binary.version}/test-classes</testOutputDirectory> |
259 | | - <plugins> |
260 | | - <plugin> |
261 | | - <groupId>org.scalatest</groupId> |
262 | | - <artifactId>scalatest-maven-plugin</artifactId> |
263 | | - </plugin> |
264 | 175 |
|
265 | 176 | <!-- Deploy datanucleus jars to the spark/lib_managed/jars directory --> |
266 | 177 | <plugin> |
|
0 commit comments