pom.xml 12 KB

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