pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  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</artifactId>
  20. <version>1.0.0.0-SNAPSHOT</version>
  21. <name>Hive</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. <dependencies>
  28. <dependency>
  29. <groupId>com.jayway.jsonpath</groupId>
  30. <artifactId>json-path</artifactId>
  31. <version>2.0.0</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>com.google.inject</groupId>
  35. <artifactId>guice</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.sun.jersey.contribs</groupId>
  39. <artifactId>jersey-multipart</artifactId>
  40. </dependency>
  41. <dependency>
  42. <groupId>com.sun.jersey</groupId>
  43. <artifactId>jersey-client</artifactId>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.sun.jersey</groupId>
  47. <artifactId>jersey-core</artifactId>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.sun.jersey</groupId>
  51. <artifactId>jersey-json</artifactId>
  52. </dependency>
  53. <dependency>
  54. <groupId>com.googlecode.json-simple</groupId>
  55. <artifactId>json-simple</artifactId>
  56. <version>1.1.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>commons-configuration</groupId>
  60. <artifactId>commons-configuration</artifactId>
  61. <version>1.6</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.opencsv</groupId>
  65. <artifactId>opencsv</artifactId>
  66. <version>3.8</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.commons</groupId>
  70. <artifactId>commons-collections4</artifactId>
  71. <version>4.0</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.ambari</groupId>
  75. <artifactId>ambari-views</artifactId>
  76. <scope>provided</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.google.code.gson</groupId>
  80. <artifactId>gson</artifactId>
  81. <version>2.2.2</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>javax.servlet</groupId>
  85. <artifactId>javax.servlet-api</artifactId>
  86. <version>3.0.1</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.slf4j</groupId>
  90. <artifactId>slf4j-api</artifactId>
  91. <version>1.7.5</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-hdfs</artifactId>
  96. <version>${hadoop.version}</version>
  97. <exclusions>
  98. <exclusion>
  99. <groupId>tomcat</groupId>
  100. <artifactId>jasper-runtime</artifactId>
  101. </exclusion>
  102. </exclusions>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.hadoop</groupId>
  106. <artifactId>hadoop-common</artifactId>
  107. <version>${hadoop.version}</version>
  108. <exclusions>
  109. <exclusion>
  110. <groupId>tomcat</groupId>
  111. <artifactId>jasper-runtime</artifactId>
  112. </exclusion>
  113. </exclusions>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.apache.hadoop</groupId>
  117. <artifactId>hadoop-mapreduce-client-common</artifactId>
  118. <version>${hadoop.version}</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.hadoop</groupId>
  122. <artifactId>hadoop-mapreduce-client-core</artifactId>
  123. <version>${hadoop.version}</version>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-yarn-client</artifactId>
  128. <version>${hadoop.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>javax.ws.rs</groupId>
  132. <artifactId>javax.ws.rs-api</artifactId>
  133. <version>2.0</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.hive</groupId>
  137. <artifactId>hive-service</artifactId>
  138. <version>${hive-version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.hive</groupId>
  142. <artifactId>hive-common</artifactId>
  143. <version>${hive-version}</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.hive</groupId>
  147. <artifactId>hive-shims</artifactId>
  148. <version>${hive-version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.apache.hive</groupId>
  152. <artifactId>hive-metastore</artifactId>
  153. <version>${hive-version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.apache.hive</groupId>
  157. <artifactId>hive-exec</artifactId>
  158. <version>${hive-version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>commons-cli</groupId>
  162. <artifactId>commons-cli</artifactId>
  163. <version>1.2</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>commons-lang</groupId>
  167. <artifactId>commons-lang</artifactId>
  168. <version>2.2</version>
  169. </dependency>
  170. <dependency>
  171. <groupId>org.apache.thrift</groupId>
  172. <artifactId>libthrift</artifactId>
  173. <version>0.9.0</version>
  174. </dependency>
  175. <dependency>
  176. <groupId>junit</groupId>
  177. <artifactId>junit</artifactId>
  178. <scope>test</scope>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.easymock</groupId>
  182. <artifactId>easymock</artifactId>
  183. <scope>test</scope>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.hadoop</groupId>
  187. <artifactId>hadoop-minicluster</artifactId>
  188. <version>${hadoop.version}</version>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.ambari.contrib.views</groupId>
  193. <artifactId>ambari-views-utils</artifactId>
  194. <version>2.4.0.0.0</version>
  195. </dependency>
  196. <dependency>
  197. <groupId>commons-validator</groupId>
  198. <artifactId>commons-validator</artifactId>
  199. <version>1.4.0</version>
  200. </dependency>
  201. <dependency>
  202. <groupId>commons-io</groupId>
  203. <artifactId>commons-io</artifactId>
  204. <version>2.4</version>
  205. </dependency>
  206. <dependency>
  207. <groupId>org.apache.httpcomponents</groupId>
  208. <artifactId>httpclient</artifactId>
  209. <version>4.5.1</version>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.apache.httpcomponents</groupId>
  213. <artifactId>httpcore</artifactId>
  214. <version>4.4.3</version>
  215. </dependency>
  216. <dependency>
  217. <groupId>org.apache.commons</groupId>
  218. <artifactId>commons-csv</artifactId>
  219. <version>1.1</version>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.ambari.contrib.views</groupId>
  223. <artifactId>ambari-views-commons</artifactId>
  224. <version>2.4.0.0.0</version>
  225. </dependency>
  226. </dependencies>
  227. <properties>
  228. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  229. <hive-version>1.0.0</hive-version>
  230. <ambari.version>2.4.0.0.0</ambari.version>
  231. </properties>
  232. <build>
  233. <plugins>
  234. <!-- Building frontend -->
  235. <plugin>
  236. <groupId>com.github.eirslett</groupId>
  237. <artifactId>frontend-maven-plugin</artifactId>
  238. <version>0.0.16</version>
  239. <configuration>
  240. <nodeVersion>v0.12.2</nodeVersion>
  241. <npmVersion>1.4.8</npmVersion>
  242. <workingDirectory>src/main/resources/ui/hive-web/</workingDirectory>
  243. </configuration>
  244. <executions>
  245. <execution>
  246. <id>install node and npm</id>
  247. <phase>generate-sources</phase>
  248. <goals>
  249. <goal>install-node-and-npm</goal>
  250. </goals>
  251. </execution>
  252. <execution>
  253. <id>npm install</id>
  254. <phase>generate-sources</phase>
  255. <goals>
  256. <goal>npm</goal>
  257. </goals>
  258. <configuration>
  259. <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm</arguments>
  260. </configuration>
  261. </execution>
  262. </executions>
  263. </plugin>
  264. <plugin>
  265. <artifactId>exec-maven-plugin</artifactId>
  266. <groupId>org.codehaus.mojo</groupId>
  267. <version>1.3.2</version>
  268. <executions>
  269. <execution>
  270. <id>Hive build</id>
  271. <phase>generate-sources</phase>
  272. <goals>
  273. <goal>exec</goal>
  274. </goals>
  275. <configuration>
  276. <workingDirectory>${basedir}/src/main/resources/ui/hive-web</workingDirectory>
  277. <executable>node/node</executable>
  278. <arguments>
  279. <argument>node_modules/.bin/ember</argument>
  280. <argument>build</argument>
  281. </arguments>
  282. </configuration>
  283. </execution>
  284. </executions>
  285. </plugin>
  286. <plugin>
  287. <groupId>org.apache.maven.plugins</groupId>
  288. <artifactId>maven-compiler-plugin</artifactId>
  289. <version>3.1</version>
  290. <configuration>
  291. <source>1.7</source>
  292. <target>1.7</target>
  293. </configuration>
  294. </plugin>
  295. <plugin>
  296. <artifactId>maven-dependency-plugin</artifactId>
  297. <executions>
  298. <execution>
  299. <phase>generate-resources</phase>
  300. <goals>
  301. <goal>copy-dependencies</goal>
  302. </goals>
  303. <configuration>
  304. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  305. <includeScope>runtime</includeScope>
  306. </configuration>
  307. </execution>
  308. </executions>
  309. </plugin>
  310. <plugin>
  311. <groupId>org.vafer</groupId>
  312. <artifactId>jdeb</artifactId>
  313. <version>1.0.1</version>
  314. <executions>
  315. <execution>
  316. <phase>none</phase>
  317. <goals>
  318. <goal>jdeb</goal>
  319. </goals>
  320. </execution>
  321. </executions>
  322. <configuration>
  323. <submodules>false</submodules>
  324. </configuration>
  325. </plugin>
  326. </plugins>
  327. <resources>
  328. <resource>
  329. <directory>src/main/resources</directory>
  330. <filtering>false</filtering>
  331. <includes>
  332. <include>META-INF/**/*</include>
  333. <include>view.xml</include>
  334. <include>view.log4j.properties</include>
  335. </includes>
  336. </resource>
  337. <resource>
  338. <directory>src/main/resources/ui/hive-web/dist</directory>
  339. <filtering>false</filtering>
  340. </resource>
  341. <resource>
  342. <directory>src/main/resources/ui/hive-web/bower_components/polestar</directory>
  343. <filtering>false</filtering>
  344. <targetPath>polestar</targetPath>
  345. </resource>
  346. <resource>
  347. <directory>src/main/resources/ui/hive-web/bower_components/voyager</directory>
  348. <filtering>false</filtering>
  349. <targetPath>voyager</targetPath>
  350. </resource>
  351. <resource>
  352. <targetPath>WEB-INF/lib</targetPath>
  353. <filtering>false</filtering>
  354. <directory>target/lib</directory>
  355. </resource>
  356. </resources>
  357. </build>
  358. </project>