pom.xml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  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>files</artifactId>
  20. <version>0.1.0-SNAPSHOT</version>
  21. <name>Files</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>org.apache.hadoop</groupId>
  30. <artifactId>hadoop-hdfs</artifactId>
  31. <version>${hadoop-version}</version>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.apache.hadoop</groupId>
  35. <artifactId>hadoop-common</artifactId>
  36. <version>${hadoop-version}</version>
  37. </dependency>
  38. <dependency>
  39. <groupId>junit</groupId>
  40. <artifactId>junit</artifactId>
  41. <scope>test</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>org.easymock</groupId>
  45. <artifactId>easymock</artifactId>
  46. <scope>test</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>com.google.inject</groupId>
  50. <artifactId>guice</artifactId>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.glassfish.jersey.containers</groupId>
  54. <artifactId>jersey-container-servlet</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.sun.jersey.contribs</groupId>
  58. <artifactId>jersey-multipart</artifactId>
  59. <version>1.18</version>
  60. </dependency>
  61. <dependency>
  62. <groupId>com.googlecode.json-simple</groupId>
  63. <artifactId>json-simple</artifactId>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.apache.hadoop</groupId>
  67. <artifactId>hadoop-minicluster</artifactId>
  68. <version>${hadoop-version}</version>
  69. <scope>test</scope>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.glassfish.jersey.test-framework</groupId>
  73. <artifactId>jersey-test-framework-core</artifactId>
  74. <version>2.6</version>
  75. <scope>test</scope>
  76. </dependency>
  77. <dependency>
  78. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  79. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  80. <version>2.6</version>
  81. <scope>test</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>
  85. org.glassfish.jersey.test-framework.providers
  86. </groupId>
  87. <artifactId>
  88. jersey-test-framework-provider-bundle
  89. </artifactId>
  90. <version>2.6</version>
  91. <scope>test</scope>
  92. <type>pom</type>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.ambari</groupId>
  96. <artifactId>ambari-views</artifactId>
  97. <scope>provided</scope>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.google.code.gson</groupId>
  101. <artifactId>gson</artifactId>
  102. <version>2.2.2</version>
  103. </dependency>
  104. </dependencies>
  105. <properties>
  106. <hadoop-version>2.2.0</hadoop-version>
  107. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  108. <npm.version>1.4.3</npm.version>
  109. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  110. </properties>
  111. <build>
  112. <plugins>
  113. <plugin>
  114. <groupId>com.github.eirslett</groupId>
  115. <artifactId>frontend-maven-plugin</artifactId>
  116. <version>0.0.14</version>
  117. <!-- optional -->
  118. <configuration>
  119. <workingDirectory>src/main/resources/ui</workingDirectory>
  120. </configuration>
  121. <executions>
  122. <execution>
  123. <!-- optional: you don't really need execution ids, but it looks nice
  124. in your build log. -->
  125. <id>install node and npm</id>
  126. <goals>
  127. <goal>install-node-and-npm</goal>
  128. </goals>
  129. <!-- optional: default phase is "generate-resources" -->
  130. <phase>generate-resources</phase>
  131. <configuration>
  132. <nodeVersion>v0.10.26</nodeVersion>
  133. <npmVersion>1.4.3</npmVersion>
  134. </configuration>
  135. </execution>
  136. <execution>
  137. <id>npm install</id>
  138. <goals>
  139. <goal>npm</goal>
  140. </goals>
  141. <!-- optional: default phase is "generate-resources" -->
  142. <phase>generate-resources</phase>
  143. <configuration>
  144. <!-- optional: The default argument is actually "install", so unless
  145. you need to run some other npm command, you can remove this whole <configuration>
  146. section. -->
  147. <arguments>install --python=python2.6 --unsafe-perm --registry=http://registry.npmjs.eu</arguments>
  148. </configuration>
  149. </execution>
  150. </executions>
  151. </plugin>
  152. <plugin>
  153. <artifactId>exec-maven-plugin</artifactId>
  154. <groupId>org.codehaus.mojo</groupId>
  155. <version>1.2.1</version>
  156. <executions>
  157. <execution>
  158. <id>Brunch build</id>
  159. <phase>generate-resources</phase>
  160. <goals>
  161. <goal>exec</goal>
  162. </goals>
  163. <configuration>
  164. <workingDirectory>${basedir}/src/main/resources/ui</workingDirectory>
  165. <executable>node/node</executable>
  166. <arguments>
  167. <argument>node_modules/.bin/brunch</argument>
  168. <argument>build</argument>
  169. <argument>--production</argument>
  170. </arguments>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <groupId>org.apache.maven.plugins</groupId>
  177. <artifactId>maven-compiler-plugin</artifactId>
  178. <version>3.1</version>
  179. <configuration>
  180. <source>1.6</source>
  181. <target>1.6</target>
  182. </configuration>
  183. </plugin>
  184. <plugin>
  185. <artifactId>maven-dependency-plugin</artifactId>
  186. <executions>
  187. <execution>
  188. <phase>generate-resources</phase>
  189. <goals>
  190. <goal>copy-dependencies</goal>
  191. </goals>
  192. <configuration>
  193. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  194. <includeScope>runtime</includeScope>
  195. </configuration>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. </plugins>
  200. <resources>
  201. <resource>
  202. <directory>src/main/resources/ui/public</directory>
  203. <filtering>false</filtering>
  204. </resource>
  205. <resource>
  206. <directory>src/main/resources/</directory>
  207. <filtering>false</filtering>
  208. <includes>
  209. <include>view.xml</include>
  210. </includes>
  211. </resource>
  212. <resource>
  213. <targetPath>WEB-INF/lib</targetPath>
  214. <filtering>false</filtering>
  215. <directory>target/lib</directory>
  216. </resource>
  217. </resources>
  218. <pluginManagement>
  219. <plugins>
  220. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  221. <plugin>
  222. <groupId>org.eclipse.m2e</groupId>
  223. <artifactId>lifecycle-mapping</artifactId>
  224. <version>1.0.0</version>
  225. <configuration>
  226. <lifecycleMappingMetadata>
  227. <pluginExecutions>
  228. <pluginExecution>
  229. <pluginExecutionFilter>
  230. <groupId>
  231. org.codehaus.mojo
  232. </groupId>
  233. <artifactId>
  234. exec-maven-plugin
  235. </artifactId>
  236. <versionRange>
  237. [1.2.1,)
  238. </versionRange>
  239. <goals>
  240. <goal>exec</goal>
  241. </goals>
  242. </pluginExecutionFilter>
  243. <action>
  244. <ignore></ignore>
  245. </action>
  246. </pluginExecution>
  247. <pluginExecution>
  248. <pluginExecutionFilter>
  249. <groupId>
  250. com.github.eirslett
  251. </groupId>
  252. <artifactId>
  253. frontend-maven-plugin
  254. </artifactId>
  255. <versionRange>
  256. [0.0.14,)
  257. </versionRange>
  258. <goals>
  259. <goal>
  260. install-node-and-npm
  261. </goal>
  262. <goal>npm</goal>
  263. </goals>
  264. </pluginExecutionFilter>
  265. <action>
  266. <ignore></ignore>
  267. </action>
  268. </pluginExecution>
  269. </pluginExecutions>
  270. </lifecycleMappingMetadata>
  271. </configuration>
  272. </plugin>
  273. </plugins>
  274. </pluginManagement>
  275. </build>
  276. </project>