pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391
  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.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.slf4j</groupId>
  95. <artifactId>slf4j-simple</artifactId>
  96. <version>1.7.5</version>
  97. <scope>test</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.apache.hadoop</groupId>
  101. <artifactId>hadoop-hdfs</artifactId>
  102. <version>${hadoop.version}</version>
  103. <exclusions>
  104. <exclusion>
  105. <groupId>tomcat</groupId>
  106. <artifactId>jasper-runtime</artifactId>
  107. </exclusion>
  108. </exclusions>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.apache.hadoop</groupId>
  112. <artifactId>hadoop-common</artifactId>
  113. <version>${hadoop.version}</version>
  114. <exclusions>
  115. <exclusion>
  116. <groupId>tomcat</groupId>
  117. <artifactId>jasper-runtime</artifactId>
  118. </exclusion>
  119. <exclusion>
  120. <groupId>tomcat</groupId>
  121. <artifactId>jasper-compiler</artifactId>
  122. </exclusion>
  123. </exclusions>
  124. </dependency>
  125. <dependency>
  126. <groupId>org.apache.hadoop</groupId>
  127. <artifactId>hadoop-mapreduce-client-common</artifactId>
  128. <version>${hadoop.version}</version>
  129. </dependency>
  130. <dependency>
  131. <groupId>org.apache.hadoop</groupId>
  132. <artifactId>hadoop-mapreduce-client-core</artifactId>
  133. <version>${hadoop.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.apache.hadoop</groupId>
  137. <artifactId>hadoop-yarn-client</artifactId>
  138. <version>${hadoop.version}</version>
  139. </dependency>
  140. <dependency>
  141. <groupId>javax.ws.rs</groupId>
  142. <artifactId>javax.ws.rs-api</artifactId>
  143. <version>2.0</version>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.hive</groupId>
  147. <artifactId>hive-jdbc</artifactId>
  148. <version>${hive-version}</version>
  149. <exclusions>
  150. <exclusion>
  151. <groupId>tomcat</groupId>
  152. <artifactId>jasper-runtime</artifactId>
  153. </exclusion>
  154. <exclusion>
  155. <groupId>tomcat</groupId>
  156. <artifactId>jasper-compiler</artifactId>
  157. </exclusion>
  158. </exclusions>
  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>com.typesafe.akka</groupId>
  187. <artifactId>akka-testkit_2.11</artifactId>
  188. <version>2.3.15</version>
  189. <scope>test</scope>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.hadoop</groupId>
  193. <artifactId>hadoop-minicluster</artifactId>
  194. <version>${hadoop.version}</version>
  195. <scope>test</scope>
  196. </dependency>
  197. <dependency>
  198. <groupId>org.apache.ambari.contrib.views</groupId>
  199. <artifactId>ambari-views-utils</artifactId>
  200. <version>2.5.0.0.0</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>commons-validator</groupId>
  204. <artifactId>commons-validator</artifactId>
  205. <version>1.4.0</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>commons-io</groupId>
  209. <artifactId>commons-io</artifactId>
  210. <version>2.4</version>
  211. </dependency>
  212. <dependency>
  213. <groupId>org.apache.commons</groupId>
  214. <artifactId>commons-csv</artifactId>
  215. <version>1.1</version>
  216. </dependency>
  217. <dependency>
  218. <groupId>com.typesafe.akka</groupId>
  219. <artifactId>akka-actor_2.11</artifactId>
  220. <version>2.3.15</version>
  221. </dependency>
  222. <dependency>
  223. <groupId>org.apache.ambari.contrib.views</groupId>
  224. <artifactId>ambari-views-commons</artifactId>
  225. <version>2.5.0.0.0</version>
  226. </dependency>
  227. </dependencies>
  228. <properties>
  229. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  230. <hive-version>2.1.0</hive-version>
  231. <ambari.version>2.5.0.0.0</ambari.version>
  232. </properties>
  233. <build>
  234. <plugins>
  235. <!-- Building frontend -->
  236. <plugin>
  237. <groupId>com.github.eirslett</groupId>
  238. <artifactId>frontend-maven-plugin</artifactId>
  239. <version>1.4</version>
  240. <configuration>
  241. <nodeVersion>v4.5.0</nodeVersion>
  242. <yarnVersion>v0.23.2</yarnVersion>
  243. <workingDirectory>src/main/resources/ui/hive-web/</workingDirectory>
  244. <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  245. <!-- setting npm_config_tmp environment variable is a workaround for
  246. https://github.com/Medium/phantomjs/issues/673 -->
  247. <environmentVariables>
  248. <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp>
  249. </environmentVariables>
  250. </configuration>
  251. <executions>
  252. <execution>
  253. <id>install node and yarn</id>
  254. <phase>generate-sources</phase>
  255. <goals>
  256. <goal>install-node-and-yarn</goal>
  257. </goals>
  258. </execution>
  259. <execution>
  260. <id>yarn install</id>
  261. <phase>generate-sources</phase>
  262. <goals>
  263. <goal>yarn</goal>
  264. </goals>
  265. <configuration>
  266. <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm</arguments>
  267. <arguments>--ignore-engines</arguments>
  268. </configuration>
  269. </execution>
  270. </executions>
  271. </plugin>
  272. <plugin>
  273. <artifactId>exec-maven-plugin</artifactId>
  274. <groupId>org.codehaus.mojo</groupId>
  275. <version>1.3.2</version>
  276. <executions>
  277. <execution>
  278. <id>Hive build</id>
  279. <phase>generate-sources</phase>
  280. <goals>
  281. <goal>exec</goal>
  282. </goals>
  283. <configuration>
  284. <workingDirectory>${basedir}/src/main/resources/ui/hive-web</workingDirectory>
  285. <executable>node/node</executable>
  286. <arguments>
  287. <argument>node_modules/.bin/ember</argument>
  288. <argument>build</argument>
  289. </arguments>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.apache.maven.plugins</groupId>
  296. <artifactId>maven-compiler-plugin</artifactId>
  297. <version>3.1</version>
  298. <configuration>
  299. <source>1.7</source>
  300. <target>1.7</target>
  301. </configuration>
  302. </plugin>
  303. <plugin>
  304. <artifactId>maven-dependency-plugin</artifactId>
  305. <executions>
  306. <execution>
  307. <phase>generate-resources</phase>
  308. <goals>
  309. <goal>copy-dependencies</goal>
  310. </goals>
  311. <configuration>
  312. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  313. <includeScope>runtime</includeScope>
  314. </configuration>
  315. </execution>
  316. <execution>
  317. <id>copy-artifact</id>
  318. <phase>package</phase>
  319. <goals>
  320. <goal>copy</goal>
  321. </goals>
  322. <configuration>
  323. <artifactItems>
  324. <artifactItem>
  325. <groupId>${project.groupId}</groupId>
  326. <artifactId>${project.artifactId}</artifactId>
  327. <version>${project.version}</version>
  328. <type>${project.packaging}</type>
  329. </artifactItem>
  330. </artifactItems>
  331. <outputDirectory>${views.jars.dir.rel}</outputDirectory>
  332. </configuration>
  333. </execution>
  334. </executions>
  335. </plugin>
  336. <plugin>
  337. <groupId>org.vafer</groupId>
  338. <artifactId>jdeb</artifactId>
  339. <version>1.0.1</version>
  340. <executions>
  341. <execution>
  342. <phase>none</phase>
  343. <goals>
  344. <goal>jdeb</goal>
  345. </goals>
  346. </execution>
  347. </executions>
  348. <configuration>
  349. <submodules>false</submodules>
  350. </configuration>
  351. </plugin>
  352. </plugins>
  353. <resources>
  354. <resource>
  355. <directory>src/main/resources</directory>
  356. <filtering>false</filtering>
  357. <includes>
  358. <include>META-INF/**/*</include>
  359. <include>view.xml</include>
  360. <include>view.log4j.properties</include>
  361. <include>application.conf</include>
  362. </includes>
  363. </resource>
  364. <resource>
  365. <directory>src/main/resources/ui/hive-web/dist</directory>
  366. <filtering>false</filtering>
  367. </resource>
  368. <resource>
  369. <directory>src/main/resources/ui/hive-web/bower_components/polestar</directory>
  370. <filtering>false</filtering>
  371. <targetPath>polestar</targetPath>
  372. </resource>
  373. <resource>
  374. <directory>src/main/resources/ui/hive-web/bower_components/voyager</directory>
  375. <filtering>false</filtering>
  376. <targetPath>voyager</targetPath>
  377. </resource>
  378. <resource>
  379. <targetPath>WEB-INF/lib</targetPath>
  380. <filtering>false</filtering>
  381. <directory>target/lib</directory>
  382. </resource>
  383. </resources>
  384. </build>
  385. </project>