pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370
  1. <!--
  2. Licensed to the Apache Software Foundation (ASF) under one or more
  3. contributor license agreements. See the NOTICE file distributed with
  4. this work for additional information regarding copyright ownership.
  5. The ASF licenses this file to You under the Apache License, Version 2.0
  6. (the "License"); you may not use this file except in compliance with
  7. the License. You may obtain a copy of the License at
  8. http://www.apache.org/licenses/LICENSE-2.0
  9. Unless required by applicable law or agreed to in writing, software
  10. distributed under the License is distributed on an "AS IS" BASIS,
  11. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. See the License for the specific language governing permissions and
  13. limitations under the License.
  14. -->
  15. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
  16. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <groupId>org.apache.ambari.contrib.views</groupId>
  19. <artifactId>hive-jdbc</artifactId>
  20. <version>2.0.0.0-SNAPSHOT</version>
  21. <name>Hive Jdbc</name>
  22. <parent>
  23. <groupId>org.apache.ambari.contrib.views</groupId>
  24. <artifactId>ambari-contrib-views</artifactId>
  25. <version>2.4.0.0.0</version>
  26. </parent>
  27. <repositories>
  28. <repository>
  29. <id>repository.apache.org</id>
  30. <name>Apache Snapshot repo</name>
  31. <url>https://repository.apache.org/content/groups/snapshots</url>
  32. </repository>
  33. </repositories>
  34. <dependencies>
  35. <dependency>
  36. <groupId>com.jayway.jsonpath</groupId>
  37. <artifactId>json-path</artifactId>
  38. <version>2.0.0</version>
  39. </dependency>
  40. <dependency>
  41. <groupId>com.google.inject</groupId>
  42. <artifactId>guice</artifactId>
  43. </dependency>
  44. <dependency>
  45. <groupId>com.sun.jersey.contribs</groupId>
  46. <artifactId>jersey-multipart</artifactId>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.sun.jersey</groupId>
  50. <artifactId>jersey-client</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.sun.jersey</groupId>
  54. <artifactId>jersey-core</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.sun.jersey</groupId>
  58. <artifactId>jersey-json</artifactId>
  59. </dependency>
  60. <dependency>
  61. <groupId>com.googlecode.json-simple</groupId>
  62. <artifactId>json-simple</artifactId>
  63. <version>1.1.1</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>commons-configuration</groupId>
  67. <artifactId>commons-configuration</artifactId>
  68. <version>1.6</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.opencsv</groupId>
  72. <artifactId>opencsv</artifactId>
  73. <version>3.8</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.commons</groupId>
  77. <artifactId>commons-collections4</artifactId>
  78. <version>4.0</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.apache.ambari</groupId>
  82. <artifactId>ambari-views</artifactId>
  83. <scope>provided</scope>
  84. </dependency>
  85. <dependency>
  86. <groupId>com.google.code.gson</groupId>
  87. <artifactId>gson</artifactId>
  88. <version>2.2.2</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>javax.servlet</groupId>
  92. <artifactId>javax.servlet-api</artifactId>
  93. <version>3.0.1</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.slf4j</groupId>
  97. <artifactId>slf4j-api</artifactId>
  98. <version>1.7.5</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.slf4j</groupId>
  102. <artifactId>slf4j-simple</artifactId>
  103. <version>1.7.5</version>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.hadoop</groupId>
  108. <artifactId>hadoop-hdfs</artifactId>
  109. <version>${hadoop.version}</version>
  110. <exclusions>
  111. <exclusion>
  112. <groupId>tomcat</groupId>
  113. <artifactId>jasper-runtime</artifactId>
  114. </exclusion>
  115. </exclusions>
  116. </dependency>
  117. <dependency>
  118. <groupId>org.apache.hadoop</groupId>
  119. <artifactId>hadoop-common</artifactId>
  120. <version>${hadoop.version}</version>
  121. <exclusions>
  122. <exclusion>
  123. <groupId>tomcat</groupId>
  124. <artifactId>jasper-runtime</artifactId>
  125. </exclusion>
  126. </exclusions>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.apache.hadoop</groupId>
  130. <artifactId>hadoop-mapreduce-client-common</artifactId>
  131. <version>${hadoop.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.hadoop</groupId>
  135. <artifactId>hadoop-mapreduce-client-core</artifactId>
  136. <version>${hadoop.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.hadoop</groupId>
  140. <artifactId>hadoop-yarn-client</artifactId>
  141. <version>${hadoop.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>javax.ws.rs</groupId>
  145. <artifactId>javax.ws.rs-api</artifactId>
  146. <version>2.0</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.hive</groupId>
  150. <artifactId>hive-jdbc</artifactId>
  151. <version>${hive-version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>commons-cli</groupId>
  155. <artifactId>commons-cli</artifactId>
  156. <version>1.2</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>commons-lang</groupId>
  160. <artifactId>commons-lang</artifactId>
  161. <version>2.2</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.thrift</groupId>
  165. <artifactId>libthrift</artifactId>
  166. <version>0.9.0</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>junit</groupId>
  170. <artifactId>junit</artifactId>
  171. <scope>test</scope>
  172. </dependency>
  173. <dependency>
  174. <groupId>org.easymock</groupId>
  175. <artifactId>easymock</artifactId>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>com.typesafe.akka</groupId>
  180. <artifactId>akka-testkit_2.11</artifactId>
  181. <version>2.3.15</version>
  182. <scope>test</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.apache.hadoop</groupId>
  186. <artifactId>hadoop-minicluster</artifactId>
  187. <version>${hadoop.version}</version>
  188. <scope>test</scope>
  189. </dependency>
  190. <dependency>
  191. <groupId>org.apache.ambari.contrib.views</groupId>
  192. <artifactId>ambari-views-utils</artifactId>
  193. <version>2.4.0.0.0</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>commons-validator</groupId>
  197. <artifactId>commons-validator</artifactId>
  198. <version>1.4.0</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-io</groupId>
  202. <artifactId>commons-io</artifactId>
  203. <version>2.4</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>org.apache.httpcomponents</groupId>
  207. <artifactId>httpclient</artifactId>
  208. <version>4.5.1</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.httpcomponents</groupId>
  212. <artifactId>httpcore</artifactId>
  213. <version>4.4.3</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.commons</groupId>
  217. <artifactId>commons-csv</artifactId>
  218. <version>1.1</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.typesafe.akka</groupId>
  222. <artifactId>akka-actor_2.11</artifactId>
  223. <version>2.3.15</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.apache.ambari.contrib.views</groupId>
  227. <artifactId>ambari-views-commons</artifactId>
  228. <version>2.4.0.0.0</version>
  229. </dependency>
  230. </dependencies>
  231. <properties>
  232. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  233. <hive-version>2.1.0-SNAPSHOT</hive-version>
  234. <ambari.version>1.3.0.0-SNAPSHOT</ambari.version>
  235. </properties>
  236. <build>
  237. <plugins>
  238. <!-- Building frontend -->
  239. <plugin>
  240. <groupId>com.github.eirslett</groupId>
  241. <artifactId>frontend-maven-plugin</artifactId>
  242. <version>0.0.16</version>
  243. <configuration>
  244. <nodeVersion>v0.12.2</nodeVersion>
  245. <npmVersion>1.4.8</npmVersion>
  246. <workingDirectory>src/main/resources/ui/hive-web/</workingDirectory>
  247. </configuration>
  248. <executions>
  249. <execution>
  250. <id>install node and npm</id>
  251. <phase>generate-sources</phase>
  252. <goals>
  253. <goal>install-node-and-npm</goal>
  254. </goals>
  255. </execution>
  256. <execution>
  257. <id>npm install</id>
  258. <phase>generate-sources</phase>
  259. <goals>
  260. <goal>npm</goal>
  261. </goals>
  262. <configuration>
  263. <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm</arguments>
  264. </configuration>
  265. </execution>
  266. </executions>
  267. </plugin>
  268. <plugin>
  269. <artifactId>exec-maven-plugin</artifactId>
  270. <groupId>org.codehaus.mojo</groupId>
  271. <version>1.3.2</version>
  272. <executions>
  273. <execution>
  274. <id>Hive build</id>
  275. <phase>generate-sources</phase>
  276. <goals>
  277. <goal>exec</goal>
  278. </goals>
  279. <configuration>
  280. <workingDirectory>${basedir}/src/main/resources/ui/hive-web</workingDirectory>
  281. <executable>node/node</executable>
  282. <arguments>
  283. <argument>node_modules/.bin/ember</argument>
  284. <argument>build</argument>
  285. </arguments>
  286. </configuration>
  287. </execution>
  288. </executions>
  289. </plugin>
  290. <plugin>
  291. <groupId>org.apache.maven.plugins</groupId>
  292. <artifactId>maven-compiler-plugin</artifactId>
  293. <version>3.1</version>
  294. <configuration>
  295. <source>1.7</source>
  296. <target>1.7</target>
  297. </configuration>
  298. </plugin>
  299. <plugin>
  300. <artifactId>maven-dependency-plugin</artifactId>
  301. <executions>
  302. <execution>
  303. <phase>generate-resources</phase>
  304. <goals>
  305. <goal>copy-dependencies</goal>
  306. </goals>
  307. <configuration>
  308. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  309. <includeScope>runtime</includeScope>
  310. </configuration>
  311. </execution>
  312. </executions>
  313. </plugin>
  314. <plugin>
  315. <groupId>org.vafer</groupId>
  316. <artifactId>jdeb</artifactId>
  317. <version>1.0.1</version>
  318. <executions>
  319. <execution>
  320. <phase>none</phase>
  321. <goals>
  322. <goal>jdeb</goal>
  323. </goals>
  324. </execution>
  325. </executions>
  326. <configuration>
  327. <submodules>false</submodules>
  328. </configuration>
  329. </plugin>
  330. </plugins>
  331. <resources>
  332. <resource>
  333. <directory>src/main/resources</directory>
  334. <filtering>false</filtering>
  335. <includes>
  336. <include>META-INF/**/*</include>
  337. <include>view.xml</include>
  338. <include>view.log4j.properties</include>
  339. <include>application.conf</include>
  340. </includes>
  341. </resource>
  342. <resource>
  343. <directory>src/main/resources/ui/hive-web/dist</directory>
  344. <filtering>false</filtering>
  345. </resource>
  346. <resource>
  347. <directory>src/main/resources/ui/hive-web/bower_components/polestar</directory>
  348. <filtering>false</filtering>
  349. <targetPath>polestar</targetPath>
  350. </resource>
  351. <resource>
  352. <directory>src/main/resources/ui/hive-web/bower_components/voyager</directory>
  353. <filtering>false</filtering>
  354. <targetPath>voyager</targetPath>
  355. </resource>
  356. <resource>
  357. <targetPath>WEB-INF/lib</targetPath>
  358. <filtering>false</filtering>
  359. <directory>target/lib</directory>
  360. </resource>
  361. </resources>
  362. </build>
  363. </project>