pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317
  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.contrib.views</groupId>
  19. <artifactId>capacity-scheduler</artifactId>
  20. <version>1.0.0-SNAPSHOT</version>
  21. <name>Capacity Scheduler</name>
  22. <parent>
  23. <groupId>org.apache.ambari.contrib.views</groupId>
  24. <artifactId>ambari-contrib-views</artifactId>
  25. <version>2.0.0-SNAPSHOT</version>
  26. </parent>
  27. <dependencies>
  28. <dependency>
  29. <groupId>com.google.inject</groupId>
  30. <artifactId>guice</artifactId>
  31. <version>4.0-beta</version> <!-- version -->
  32. </dependency>
  33. <dependency>
  34. <groupId>org.glassfish.jersey.containers</groupId>
  35. <artifactId>jersey-container-servlet</artifactId>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.apache.hadoop</groupId>
  39. <artifactId>hadoop-common</artifactId>
  40. <version>${hadoop-version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>commons-io</groupId>
  44. <artifactId>commons-io</artifactId>
  45. <version>2.4</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>commons-lang</groupId>
  49. <artifactId>commons-lang</artifactId>
  50. <version>2.2</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.googlecode.json-simple</groupId>
  54. <artifactId>json-simple</artifactId>
  55. </dependency>
  56. <dependency>
  57. <groupId>commons-codec</groupId>
  58. <artifactId>commons-codec</artifactId>
  59. <version>1.9</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>org.apache.ambari.contrib.views</groupId>
  68. <artifactId>ambari-views-utils</artifactId>
  69. <version>0.0.1-SNAPSHOT</version>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.easymock</groupId>
  73. <artifactId>easymock</artifactId>
  74. <version>3.2</version>
  75. <scope>test</scope>
  76. </dependency>
  77. </dependencies>
  78. <properties>
  79. <hadoop-version>2.6.0</hadoop-version>
  80. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  81. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  82. </properties>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-clean-plugin</artifactId>
  88. <version>2.5</version>
  89. <configuration>
  90. <filesets>
  91. <fileset>
  92. <directory>${ui.directory}</directory>
  93. <followSymlinks>false</followSymlinks>
  94. <includes>
  95. <include>public/**</include>
  96. <include>node_modules/**</include>
  97. <include>bower_components/**</include>
  98. <include>node/**</include>
  99. </includes>
  100. </fileset>
  101. </filesets>
  102. </configuration>
  103. </plugin>
  104. <plugin>
  105. <groupId>com.github.eirslett</groupId>
  106. <artifactId>frontend-maven-plugin</artifactId>
  107. <version>0.0.14</version>
  108. <configuration>
  109. <workingDirectory>${ui.directory}</workingDirectory>
  110. </configuration>
  111. <executions>
  112. <execution>
  113. <id>install node and npm</id>
  114. <goals>
  115. <goal>install-node-and-npm</goal>
  116. </goals>
  117. <!-- optional: default phase is "generate-resources" -->
  118. <phase>initialize</phase>
  119. <configuration>
  120. <nodeVersion>v0.10.26</nodeVersion>
  121. <npmVersion>1.4.3</npmVersion>
  122. </configuration>
  123. </execution>
  124. <execution>
  125. <id>npm install</id>
  126. <goals>
  127. <goal>npm</goal>
  128. </goals>
  129. <phase>generate-resources</phase>
  130. <configuration>
  131. <arguments>install --unsafe-perm --registry=http://registry.npmjs.eu</arguments>
  132. </configuration>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <artifactId>exec-maven-plugin</artifactId>
  138. <groupId>org.codehaus.mojo</groupId>
  139. <version>1.2.1</version>
  140. <executions>
  141. <execution>
  142. <id>node gyp executable</id>
  143. <phase>initialize</phase>
  144. <goals>
  145. <goal>exec</goal>
  146. </goals>
  147. <configuration>
  148. <skip>${skip.nodegyp.chmod}</skip>
  149. <workingDirectory>${ui.directory}</workingDirectory>
  150. <executable>chmod</executable>
  151. <arguments>
  152. <argument>+x</argument>
  153. <argument>${ui.directory}/node/npm/bin/node-gyp-bin/node-gyp</argument>
  154. </arguments>
  155. </configuration>
  156. </execution>
  157. <execution>
  158. <id>Brunch build</id>
  159. <phase>generate-resources</phase>
  160. <goals>
  161. <goal>exec</goal>
  162. </goals>
  163. <configuration>
  164. <workingDirectory>${ui.directory}</workingDirectory>
  165. <executable>${ui.directory}/node/${node.executable}</executable>
  166. <arguments>
  167. <argument>node_modules/brunch/bin/brunch</argument>
  168. <argument>build</argument>
  169. <argument>--production</argument>
  170. </arguments>
  171. </configuration>
  172. </execution>
  173. </executions>
  174. </plugin>
  175. <plugin>
  176. <artifactId>maven-dependency-plugin</artifactId>
  177. <executions>
  178. <execution>
  179. <phase>generate-resources</phase>
  180. <goals>
  181. <goal>copy-dependencies</goal>
  182. </goals>
  183. <configuration>
  184. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  185. <includeScope>runtime</includeScope>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <groupId>org.vafer</groupId>
  192. <artifactId>jdeb</artifactId>
  193. <version>1.0.1</version>
  194. <executions>
  195. <execution>
  196. <phase>none</phase>
  197. <goals>
  198. <goal>jdeb</goal>
  199. </goals>
  200. </execution>
  201. </executions>
  202. <configuration>
  203. <skip>true</skip>
  204. <submodules>false</submodules>
  205. </configuration>
  206. </plugin>
  207. </plugins>
  208. <resources>
  209. <resource>
  210. <directory>src/main/resources/ui/public</directory>
  211. <filtering>false</filtering>
  212. </resource>
  213. <resource>
  214. <directory>src/main/resources/</directory>
  215. <filtering>false</filtering>
  216. <includes>
  217. <include>view.xml</include>
  218. </includes>
  219. </resource>
  220. <resource>
  221. <targetPath>WEB-INF/lib</targetPath>
  222. <filtering>false</filtering>
  223. <directory>target/lib</directory>
  224. </resource>
  225. </resources>
  226. <pluginManagement>
  227. <plugins>
  228. <!--This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself.-->
  229. <plugin>
  230. <groupId>org.eclipse.m2e</groupId>
  231. <artifactId>lifecycle-mapping</artifactId>
  232. <version>1.0.0</version>
  233. <configuration>
  234. <lifecycleMappingMetadata>
  235. <pluginExecutions>
  236. <pluginExecution>
  237. <pluginExecutionFilter>
  238. <groupId>
  239. org.codehaus.mojo
  240. </groupId>
  241. <artifactId>
  242. exec-maven-plugin
  243. </artifactId>
  244. <versionRange>
  245. [1.2.1,)
  246. </versionRange>
  247. <goals>
  248. <goal>exec</goal>
  249. </goals>
  250. </pluginExecutionFilter>
  251. <action>
  252. <ignore></ignore>
  253. </action>
  254. </pluginExecution>
  255. <pluginExecution>
  256. <pluginExecutionFilter>
  257. <groupId>
  258. com.github.eirslett
  259. </groupId>
  260. <artifactId>
  261. frontend-maven-plugin
  262. </artifactId>
  263. <versionRange>
  264. [0.0.14,)
  265. </versionRange>
  266. <goals>
  267. <goal>
  268. install-node-and-npm
  269. </goal>
  270. <goal>npm</goal>
  271. </goals>
  272. </pluginExecutionFilter>
  273. <action>
  274. <ignore></ignore>
  275. </action>
  276. </pluginExecution>
  277. </pluginExecutions>
  278. </lifecycleMappingMetadata>
  279. </configuration>
  280. </plugin>
  281. </plugins>
  282. </pluginManagement>
  283. </build>
  284. <profiles>
  285. <profile>
  286. <id>windows</id>
  287. <activation>
  288. <os>
  289. <family>win</family>
  290. </os>
  291. </activation>
  292. <properties>
  293. <node.executable>node.exe</node.executable>
  294. <skip.nodegyp.chmod>true</skip.nodegyp.chmod>
  295. </properties>
  296. </profile>
  297. <profile>
  298. <id>linux</id>
  299. <activation>
  300. <os>
  301. <family>unix</family>
  302. </os>
  303. </activation>
  304. <properties>
  305. <node.executable>node</node.executable>
  306. <skip.nodegyp.chmod>false</skip.nodegyp.chmod>
  307. </properties>
  308. </profile>
  309. </profiles>
  310. </project>