pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  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>hive20</artifactId>
  20. <version>2.0.0.0-SNAPSHOT</version>
  21. <name>Hive 2.0</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. <version>4.1.0</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.sun.jersey.contribs</groupId>
  40. <artifactId>jersey-multipart</artifactId>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.sun.jersey</groupId>
  44. <artifactId>jersey-client</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>com.sun.jersey</groupId>
  48. <artifactId>jersey-core</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.sun.jersey</groupId>
  52. <artifactId>jersey-json</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.googlecode.json-simple</groupId>
  56. <artifactId>json-simple</artifactId>
  57. <version>1.1.1</version>
  58. </dependency>
  59. <dependency>
  60. <groupId>commons-configuration</groupId>
  61. <artifactId>commons-configuration</artifactId>
  62. <version>1.6</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.opencsv</groupId>
  66. <artifactId>opencsv</artifactId>
  67. <version>3.8</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.commons</groupId>
  71. <artifactId>commons-collections4</artifactId>
  72. <version>4.0</version>
  73. </dependency>
  74. <dependency>
  75. <groupId>org.apache.ambari</groupId>
  76. <artifactId>ambari-views</artifactId>
  77. <scope>provided</scope>
  78. </dependency>
  79. <dependency>
  80. <groupId>com.google.code.gson</groupId>
  81. <artifactId>gson</artifactId>
  82. <version>2.2.2</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>javax.servlet</groupId>
  86. <artifactId>javax.servlet-api</artifactId>
  87. <version>3.0.1</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.slf4j</groupId>
  91. <artifactId>slf4j-api</artifactId>
  92. <version>1.7.5</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.slf4j</groupId>
  96. <artifactId>slf4j-simple</artifactId>
  97. <version>1.7.5</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.hadoop</groupId>
  102. <artifactId>hadoop-hdfs</artifactId>
  103. <version>${hadoop.version}</version>
  104. <exclusions>
  105. <exclusion>
  106. <groupId>tomcat</groupId>
  107. <artifactId>jasper-runtime</artifactId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.hadoop</groupId>
  113. <artifactId>hadoop-common</artifactId>
  114. <version>${hadoop.version}</version>
  115. <exclusions>
  116. <exclusion>
  117. <groupId>tomcat</groupId>
  118. <artifactId>jasper-runtime</artifactId>
  119. </exclusion>
  120. <exclusion>
  121. <groupId>tomcat</groupId>
  122. <artifactId>jasper-compiler</artifactId>
  123. </exclusion>
  124. </exclusions>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.hadoop</groupId>
  128. <artifactId>hadoop-mapreduce-client-common</artifactId>
  129. <version>${hadoop.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.hadoop</groupId>
  133. <artifactId>hadoop-mapreduce-client-core</artifactId>
  134. <version>${hadoop.version}</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.apache.hadoop</groupId>
  138. <artifactId>hadoop-yarn-client</artifactId>
  139. <version>${hadoop.version}</version>
  140. </dependency>
  141. <dependency>
  142. <groupId>javax.ws.rs</groupId>
  143. <artifactId>javax.ws.rs-api</artifactId>
  144. <version>2.0</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hive</groupId>
  148. <artifactId>hive-jdbc</artifactId>
  149. <version>${hive-version}</version>
  150. <exclusions>
  151. <exclusion>
  152. <groupId>tomcat</groupId>
  153. <artifactId>jasper-runtime</artifactId>
  154. </exclusion>
  155. <exclusion>
  156. <groupId>tomcat</groupId>
  157. <artifactId>jasper-compiler</artifactId>
  158. </exclusion>
  159. </exclusions>
  160. </dependency>
  161. <dependency>
  162. <groupId>commons-cli</groupId>
  163. <artifactId>commons-cli</artifactId>
  164. <version>1.2</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>commons-lang</groupId>
  168. <artifactId>commons-lang</artifactId>
  169. <version>2.2</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.apache.thrift</groupId>
  173. <artifactId>libthrift</artifactId>
  174. <version>0.9.0</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>junit</groupId>
  178. <artifactId>junit</artifactId>
  179. <scope>test</scope>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.easymock</groupId>
  183. <artifactId>easymock</artifactId>
  184. <scope>test</scope>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.typesafe.akka</groupId>
  188. <artifactId>akka-testkit_2.11</artifactId>
  189. <version>2.3.15</version>
  190. <scope>test</scope>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.apache.hadoop</groupId>
  194. <artifactId>hadoop-minicluster</artifactId>
  195. <version>${hadoop.version}</version>
  196. <scope>test</scope>
  197. </dependency>
  198. <dependency>
  199. <groupId>org.apache.ambari.contrib.views</groupId>
  200. <artifactId>ambari-views-utils</artifactId>
  201. <version>2.5.0.0.0</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>commons-validator</groupId>
  205. <artifactId>commons-validator</artifactId>
  206. <version>1.4.0</version>
  207. </dependency>
  208. <dependency>
  209. <groupId>commons-io</groupId>
  210. <artifactId>commons-io</artifactId>
  211. <version>2.4</version>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.commons</groupId>
  215. <artifactId>commons-csv</artifactId>
  216. <version>1.1</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>com.typesafe.akka</groupId>
  220. <artifactId>akka-actor_2.11</artifactId>
  221. <version>2.3.15</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.apache.ambari.contrib.views</groupId>
  225. <artifactId>ambari-views-commons</artifactId>
  226. <version>2.5.0.0.0</version>
  227. </dependency>
  228. <dependency>
  229. <groupId>org.codehaus.groovy</groupId>
  230. <artifactId>groovy-all</artifactId>
  231. <version>2.4.4</version>
  232. <scope>test</scope>
  233. </dependency>
  234. <dependency>
  235. <groupId>org.spockframework</groupId>
  236. <artifactId>spock-core</artifactId>
  237. <version>1.0-groovy-2.4</version>
  238. <scope>test</scope>
  239. </dependency>
  240. </dependencies>
  241. <properties>
  242. <ambari.dir>../../..</ambari.dir>
  243. <hive-version>2.1.0</hive-version>
  244. <ambari.version>2.5.0.0.0</ambari.version>
  245. </properties>
  246. <build>
  247. <plugins>
  248. <plugin>
  249. <groupId>org.codehaus.gmavenplus</groupId>
  250. <artifactId>gmavenplus-plugin</artifactId>
  251. <version>1.4</version>
  252. <executions>
  253. <execution>
  254. <goals>
  255. <goal>generateStubs</goal>
  256. <goal>compile</goal>
  257. <goal>testGenerateStubs</goal>
  258. <goal>testCompile</goal>
  259. </goals>
  260. </execution>
  261. </executions>
  262. <dependencies>
  263. <dependency>
  264. <groupId>org.codehaus.groovy</groupId>
  265. <artifactId>groovy-all</artifactId>
  266. <version>2.4.4</version>
  267. <scope>runtime</scope>
  268. </dependency>
  269. </dependencies>
  270. </plugin>
  271. <!-- Building frontend -->
  272. <plugin>
  273. <groupId>com.github.eirslett</groupId>
  274. <artifactId>frontend-maven-plugin</artifactId>
  275. <version>1.4</version>
  276. <configuration>
  277. <nodeVersion>v4.5.0</nodeVersion>
  278. <yarnVersion>v0.23.2</yarnVersion>
  279. <workingDirectory>src/main/resources/ui/</workingDirectory>
  280. <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  281. <!-- setting npm_config_tmp environment variable is a workaround for
  282. https://github.com/Medium/phantomjs/issues/673 -->
  283. <environmentVariables>
  284. <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp>
  285. </environmentVariables>
  286. </configuration>
  287. <executions>
  288. <execution>
  289. <id>install node and yarn</id>
  290. <phase>generate-sources</phase>
  291. <goals>
  292. <goal>install-node-and-yarn</goal>
  293. </goals>
  294. </execution>
  295. <execution>
  296. <id>yarn install</id>
  297. <phase>generate-sources</phase>
  298. <goals>
  299. <goal>yarn</goal>
  300. </goals>
  301. <configuration>
  302. <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm</arguments>
  303. <arguments>--ignore-engines</arguments>
  304. </configuration>
  305. </execution>
  306. </executions>
  307. </plugin>
  308. <plugin>
  309. <artifactId>exec-maven-plugin</artifactId>
  310. <groupId>org.codehaus.mojo</groupId>
  311. <version>1.3.2</version>
  312. <executions>
  313. <execution>
  314. <id>Hive build</id>
  315. <phase>generate-sources</phase>
  316. <goals>
  317. <goal>exec</goal>
  318. </goals>
  319. <configuration>
  320. <workingDirectory>${basedir}/src/main/resources/ui</workingDirectory>
  321. <executable>node/node</executable>
  322. <arguments>
  323. <argument>node_modules/.bin/ember</argument>
  324. <argument>build</argument>
  325. <argument>--environment=production</argument>
  326. </arguments>
  327. </configuration>
  328. </execution>
  329. </executions>
  330. </plugin>
  331. <plugin>
  332. <groupId>org.apache.maven.plugins</groupId>
  333. <artifactId>maven-compiler-plugin</artifactId>
  334. <version>3.1</version>
  335. <configuration>
  336. <source>1.7</source>
  337. <target>1.7</target>
  338. </configuration>
  339. </plugin>
  340. <plugin>
  341. <artifactId>maven-dependency-plugin</artifactId>
  342. <executions>
  343. <execution>
  344. <phase>generate-resources</phase>
  345. <goals>
  346. <goal>copy-dependencies</goal>
  347. </goals>
  348. <configuration>
  349. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  350. <includeScope>runtime</includeScope>
  351. </configuration>
  352. </execution>
  353. <execution>
  354. <id>copy-artifact</id>
  355. <phase>package</phase>
  356. <goals>
  357. <goal>copy</goal>
  358. </goals>
  359. <configuration>
  360. <artifactItems>
  361. <artifactItem>
  362. <groupId>${project.groupId}</groupId>
  363. <artifactId>${project.artifactId}</artifactId>
  364. <version>${project.version}</version>
  365. <type>${project.packaging}</type>
  366. </artifactItem>
  367. </artifactItems>
  368. <outputDirectory>${views.jars.dir.rel}</outputDirectory>
  369. </configuration>
  370. </execution>
  371. </executions>
  372. </plugin>
  373. <plugin>
  374. <groupId>org.vafer</groupId>
  375. <artifactId>jdeb</artifactId>
  376. <version>1.0.1</version>
  377. <executions>
  378. <execution>
  379. <phase>none</phase>
  380. <goals>
  381. <goal>jdeb</goal>
  382. </goals>
  383. </execution>
  384. </executions>
  385. <configuration>
  386. <submodules>false</submodules>
  387. </configuration>
  388. </plugin>
  389. </plugins>
  390. <resources>
  391. <resource>
  392. <directory>src/main/resources</directory>
  393. <filtering>false</filtering>
  394. <includes>
  395. <include>META-INF/**/*</include>
  396. <include>view.xml</include>
  397. <include>view.log4j.properties</include>
  398. <include>application.conf</include>
  399. </includes>
  400. </resource>
  401. <resource>
  402. <directory>src/main/resources/ui/dist</directory>
  403. <filtering>false</filtering>
  404. </resource>
  405. <resource>
  406. <directory>src/main/resources/ui/bower_components/polestar</directory>
  407. <filtering>false</filtering>
  408. <targetPath>polestar</targetPath>
  409. </resource>
  410. <resource>
  411. <directory>src/main/resources/ui/bower_components/voyager</directory>
  412. <filtering>false</filtering>
  413. <targetPath>voyager</targetPath>
  414. </resource>
  415. <resource>
  416. <targetPath>WEB-INF/lib</targetPath>
  417. <filtering>false</filtering>
  418. <directory>target/lib</directory>
  419. </resource>
  420. </resources>
  421. </build>
  422. </project>