pom.xml 12 KB

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