pom.xml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  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.view</groupId>
  19. <artifactId>pig</artifactId>
  20. <version>0.1.0-SNAPSHOT</version>
  21. <name>Pig</name>
  22. <parent>
  23. <groupId>org.apache.ambari.views</groupId>
  24. <artifactId>ambari-contrib-views</artifactId>
  25. <version>0.1.0-SNAPSHOT</version>
  26. </parent>
  27. <dependencies>
  28. <dependency>
  29. <groupId>com.google.inject</groupId>
  30. <artifactId>guice</artifactId>
  31. </dependency>
  32. <dependency>
  33. <groupId>com.sun.jersey.contribs</groupId>
  34. <artifactId>jersey-multipart</artifactId>
  35. <version>1.18</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.sun.jersey</groupId>
  39. <artifactId>jersey-client</artifactId>
  40. <version>1.8</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.sun.jersey</groupId>
  44. <artifactId>jersey-core</artifactId>
  45. <version>1.18.1</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.sun.jersey</groupId>
  49. <artifactId>jersey-json</artifactId>
  50. <version>1.9</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.googlecode.json-simple</groupId>
  54. <artifactId>json-simple</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-configuration</groupId>
  58. <artifactId>commons-configuration</artifactId>
  59. <version>1.6</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>org.apache.ambari</groupId>
  63. <artifactId>ambari-views</artifactId>
  64. <scope>provided</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.google.code.gson</groupId>
  68. <artifactId>gson</artifactId>
  69. <version>2.2.2</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>javax.servlet</groupId>
  73. <artifactId>javax.servlet-api</artifactId>
  74. <version>3.0.1</version>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.slf4j</groupId>
  78. <artifactId>slf4j-api</artifactId>
  79. <version>1.7.5</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-hdfs</artifactId>
  84. <version>${hadoop-version}</version>
  85. </dependency>
  86. <dependency>
  87. <groupId>org.apache.hadoop</groupId>
  88. <artifactId>hadoop-common</artifactId>
  89. <version>${hadoop-version}</version>
  90. </dependency>
  91. <dependency>
  92. <groupId>javax.ws.rs</groupId>
  93. <artifactId>javax.ws.rs-api</artifactId>
  94. <version>2.0</version>
  95. </dependency>
  96. <dependency>
  97. <groupId>junit</groupId>
  98. <artifactId>junit</artifactId>
  99. <scope>test</scope>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.easymock</groupId>
  103. <artifactId>easymock</artifactId>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.hadoop</groupId>
  108. <artifactId>hadoop-minicluster</artifactId>
  109. <version>${hadoop-version}</version>
  110. <scope>test</scope>
  111. </dependency>
  112. </dependencies>
  113. <properties>
  114. <hadoop-version>2.2.0</hadoop-version>
  115. <ambari.version>1.3.0-SNAPSHOT</ambari.version>
  116. </properties>
  117. <build>
  118. <plugins>
  119. <!-- Building frontend -->
  120. <plugin>
  121. <groupId>com.github.eirslett</groupId>
  122. <artifactId>frontend-maven-plugin</artifactId>
  123. <version>0.0.14</version>
  124. <configuration>
  125. <nodeVersion>v0.10.26</nodeVersion>
  126. <npmVersion>1.4.3</npmVersion>
  127. <workingDirectory>src/main/resources/ui/pig-web/</workingDirectory>
  128. </configuration>
  129. <executions>
  130. <execution>
  131. <id>install node and npm</id>
  132. <phase>generate-sources</phase>
  133. <goals>
  134. <goal>install-node-and-npm</goal>
  135. </goals>
  136. </execution>
  137. <execution>
  138. <id>npm install</id>
  139. <phase>generate-sources</phase>
  140. <goals>
  141. <goal>npm</goal>
  142. </goals>
  143. <configuration>
  144. <arguments>install --python=python2.6 --unsafe-perm</arguments>
  145. </configuration>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. <plugin>
  150. <artifactId>exec-maven-plugin</artifactId>
  151. <groupId>org.codehaus.mojo</groupId>
  152. <executions>
  153. <execution>
  154. <id>Brunch build</id>
  155. <phase>generate-sources</phase>
  156. <goals>
  157. <goal>exec</goal>
  158. </goals>
  159. <configuration>
  160. <workingDirectory>${basedir}/src/main/resources/ui/pig-web</workingDirectory>
  161. <executable>node/node</executable>
  162. <arguments>
  163. <argument>node_modules/.bin/brunch</argument>
  164. <argument>build</argument>
  165. <argument>--production</argument>
  166. </arguments>
  167. </configuration>
  168. </execution>
  169. </executions>
  170. </plugin>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-compiler-plugin</artifactId>
  174. <version>3.1</version>
  175. <configuration>
  176. <source>1.6</source>
  177. <target>1.6</target>
  178. </configuration>
  179. </plugin>
  180. <plugin>
  181. <artifactId>maven-dependency-plugin</artifactId>
  182. <executions>
  183. <execution>
  184. <phase>generate-resources</phase>
  185. <goals>
  186. <goal>copy-dependencies</goal>
  187. </goals>
  188. <configuration>
  189. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  190. <includeScope>runtime</includeScope>
  191. </configuration>
  192. </execution>
  193. </executions>
  194. </plugin>
  195. </plugins>
  196. <resources>
  197. <resource>
  198. <directory>src/main/resources</directory>
  199. <filtering>false</filtering>
  200. <includes>
  201. <include>META-INF/**/*</include>
  202. <include>view.xml</include>
  203. </includes>
  204. </resource>
  205. <resource>
  206. <directory>src/main/resources/ui/pig-web/public</directory>
  207. <filtering>false</filtering>
  208. </resource>
  209. <resource>
  210. <targetPath>WEB-INF/lib</targetPath>
  211. <filtering>false</filtering>
  212. <directory>target/lib</directory>
  213. </resource>
  214. </resources>
  215. </build>
  216. </project>