pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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.5.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. <exclusion>
  114. <groupId>tomcat</groupId>
  115. <artifactId>jasper-compiler</artifactId>
  116. </exclusion>
  117. </exclusions>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.hadoop</groupId>
  121. <artifactId>hadoop-mapreduce-client-common</artifactId>
  122. <version>${hadoop.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-mapreduce-client-core</artifactId>
  127. <version>${hadoop.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.hadoop</groupId>
  131. <artifactId>hadoop-yarn-client</artifactId>
  132. <version>${hadoop.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>javax.ws.rs</groupId>
  136. <artifactId>javax.ws.rs-api</artifactId>
  137. <version>2.0</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.hive</groupId>
  141. <artifactId>hive-service</artifactId>
  142. <version>${hive-version}</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.hive</groupId>
  146. <artifactId>hive-common</artifactId>
  147. <version>${hive-version}</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.apache.hive</groupId>
  151. <artifactId>hive-shims</artifactId>
  152. <version>${hive-version}</version>
  153. </dependency>
  154. <dependency>
  155. <groupId>org.apache.hive</groupId>
  156. <artifactId>hive-metastore</artifactId>
  157. <version>${hive-version}</version>
  158. </dependency>
  159. <dependency>
  160. <groupId>org.apache.hive</groupId>
  161. <artifactId>hive-exec</artifactId>
  162. <version>${hive-version}</version>
  163. </dependency>
  164. <dependency>
  165. <groupId>commons-cli</groupId>
  166. <artifactId>commons-cli</artifactId>
  167. <version>1.2</version>
  168. </dependency>
  169. <dependency>
  170. <groupId>commons-lang</groupId>
  171. <artifactId>commons-lang</artifactId>
  172. <version>2.2</version>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.apache.thrift</groupId>
  176. <artifactId>libthrift</artifactId>
  177. <version>0.9.0</version>
  178. </dependency>
  179. <dependency>
  180. <groupId>junit</groupId>
  181. <artifactId>junit</artifactId>
  182. <scope>test</scope>
  183. </dependency>
  184. <dependency>
  185. <groupId>org.easymock</groupId>
  186. <artifactId>easymock</artifactId>
  187. <scope>test</scope>
  188. </dependency>
  189. <dependency>
  190. <groupId>org.apache.hadoop</groupId>
  191. <artifactId>hadoop-minicluster</artifactId>
  192. <version>${hadoop.version}</version>
  193. <scope>test</scope>
  194. </dependency>
  195. <dependency>
  196. <groupId>org.apache.ambari.contrib.views</groupId>
  197. <artifactId>ambari-views-utils</artifactId>
  198. <version>2.5.0.0.0</version>
  199. </dependency>
  200. <dependency>
  201. <groupId>commons-validator</groupId>
  202. <artifactId>commons-validator</artifactId>
  203. <version>1.4.0</version>
  204. </dependency>
  205. <dependency>
  206. <groupId>commons-io</groupId>
  207. <artifactId>commons-io</artifactId>
  208. <version>2.4</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.httpcomponents</groupId>
  212. <artifactId>httpclient</artifactId>
  213. <version>4.5.2</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.apache.httpcomponents</groupId>
  217. <artifactId>httpcore</artifactId>
  218. <version>4.4.3</version>
  219. </dependency>
  220. <dependency>
  221. <groupId>org.apache.commons</groupId>
  222. <artifactId>commons-csv</artifactId>
  223. <version>1.1</version>
  224. </dependency>
  225. <dependency>
  226. <groupId>org.apache.ambari.contrib.views</groupId>
  227. <artifactId>ambari-views-commons</artifactId>
  228. <version>2.5.0.0.0</version>
  229. </dependency>
  230. </dependencies>
  231. <properties>
  232. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  233. <hive-version>1.0.0</hive-version>
  234. <ambari.version>2.5.0.0.0</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>v4.5.0</nodeVersion>
  245. <npmVersion>2.15.0</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. <execution>
  313. <id>copy-artifact</id>
  314. <phase>package</phase>
  315. <goals>
  316. <goal>copy</goal>
  317. </goals>
  318. <configuration>
  319. <artifactItems>
  320. <artifactItem>
  321. <groupId>${project.groupId}</groupId>
  322. <artifactId>${project.artifactId}</artifactId>
  323. <version>${project.version}</version>
  324. <type>${project.packaging}</type>
  325. </artifactItem>
  326. </artifactItems>
  327. <outputDirectory>${views.jars.dir.rel}</outputDirectory>
  328. </configuration>
  329. </execution>
  330. </executions>
  331. </plugin>
  332. <plugin>
  333. <groupId>org.vafer</groupId>
  334. <artifactId>jdeb</artifactId>
  335. <version>1.0.1</version>
  336. <executions>
  337. <execution>
  338. <phase>none</phase>
  339. <goals>
  340. <goal>jdeb</goal>
  341. </goals>
  342. </execution>
  343. </executions>
  344. <configuration>
  345. <submodules>false</submodules>
  346. </configuration>
  347. </plugin>
  348. </plugins>
  349. <resources>
  350. <resource>
  351. <directory>src/main/resources</directory>
  352. <filtering>false</filtering>
  353. <includes>
  354. <include>META-INF/**/*</include>
  355. <include>view.xml</include>
  356. <include>view.log4j.properties</include>
  357. </includes>
  358. </resource>
  359. <resource>
  360. <directory>src/main/resources/ui/hive-web/dist</directory>
  361. <filtering>false</filtering>
  362. </resource>
  363. <resource>
  364. <directory>src/main/resources/ui/hive-web/bower_components/polestar</directory>
  365. <filtering>false</filtering>
  366. <targetPath>polestar</targetPath>
  367. </resource>
  368. <resource>
  369. <directory>src/main/resources/ui/hive-web/bower_components/voyager</directory>
  370. <filtering>false</filtering>
  371. <targetPath>voyager</targetPath>
  372. </resource>
  373. <resource>
  374. <targetPath>WEB-INF/lib</targetPath>
  375. <filtering>false</filtering>
  376. <directory>target/lib</directory>
  377. </resource>
  378. </resources>
  379. </build>
  380. </project>