pom.xml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304
  1. <!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
  2. license agreements. See the NOTICE file distributed with this work for additional
  3. information regarding copyright ownership. The ASF licenses this file to
  4. You under the Apache License, Version 2.0 (the "License"); you may not use
  5. this file except in compliance with the License. You may obtain a copy of
  6. the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
  7. by applicable law or agreed to in writing, software distributed under the
  8. License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
  9. OF ANY KIND, either express or implied. See the License for the specific
  10. language governing permissions and limitations under the License. -->
  11. <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xmlns="http://maven.apache.org/POM/4.0.0"
  13. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <artifactId>wfmanager</artifactId>
  16. <groupId>org.apache.ambari.contrib.views</groupId>
  17. <version>0.1.0.0-SNAPSHOT</version>
  18. <name>WF Manager View</name>
  19. <parent>
  20. <groupId>org.apache.ambari.contrib.views</groupId>
  21. <artifactId>ambari-contrib-views</artifactId>
  22. <version>2.4.0.0.0</version>
  23. </parent>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.apache.ambari.contrib.views</groupId>
  27. <artifactId>ambari-views-utils</artifactId>
  28. <version>2.4.0.0.0</version>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.apache.ambari</groupId>
  32. <artifactId>ambari-views</artifactId>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.ambari.contrib.views</groupId>
  36. <artifactId>ambari-views-commons</artifactId>
  37. <version>2.4.0.0.0</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>com.sun.jersey</groupId>
  41. <artifactId>jersey-core</artifactId>
  42. </dependency>
  43. <!-- <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId>
  44. <version>2.2.2</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId>
  45. <artifactId>jaxb-impl</artifactId> <version>2.1.2</version> </dependency> -->
  46. <dependency>
  47. <groupId>com.sun.jersey</groupId>
  48. <artifactId>jersey-client</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.sun.jersey</groupId>
  52. <artifactId>jersey-json</artifactId>
  53. </dependency>
  54. <dependency>
  55. <groupId>javax.servlet</groupId>
  56. <artifactId>javax.servlet-api</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>junit</groupId>
  60. <artifactId>junit</artifactId>
  61. <scope>test</scope>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.google.code.gson</groupId>
  65. <artifactId>gson</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>commons-io</groupId>
  69. <artifactId>commons-io</artifactId>
  70. <version>2.4</version>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.slf4j</groupId>
  74. <artifactId>slf4j-api</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>javax.inject</groupId>
  78. <artifactId>javax.inject</artifactId>
  79. <version>1</version>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.apache.hadoop</groupId>
  83. <artifactId>hadoop-common</artifactId>
  84. <version>${hadoop.version}</version>
  85. <exclusions>
  86. <exclusion>
  87. <groupId>tomcat</groupId>
  88. <artifactId>jasper-runtime</artifactId>
  89. </exclusion>
  90. </exclusions>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.apache.hadoop</groupId>
  94. <artifactId>hadoop-hdfs</artifactId>
  95. <version>${hadoop.version}</version>
  96. <exclusions>
  97. <exclusion>
  98. <groupId>tomcat</groupId>
  99. <artifactId>jasper-runtime</artifactId>
  100. </exclusion>
  101. </exclusions>
  102. </dependency>
  103. </dependencies>
  104. <properties>
  105. <uicode.dir>../</uicode.dir>
  106. <checkstyle.skip>true</checkstyle.skip>
  107. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  108. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  109. </properties>
  110. <build>
  111. <plugins>
  112. <plugin>
  113. <groupId>org.apache.maven.plugins</groupId>
  114. <artifactId>maven-clean-plugin</artifactId>
  115. <version>2.5</version>
  116. <configuration>
  117. <filesets>
  118. <fileset>
  119. <directory>${ui.directory}</directory>
  120. <followSymlinks>false</followSymlinks>
  121. <includes>
  122. <include>tmp/**</include>
  123. <!--
  124. <include>node_modules/**</include>
  125. <include>bower_components/**</include>
  126. -->
  127. <include>node/**</include>
  128. </includes>
  129. </fileset>
  130. </filesets>
  131. </configuration>
  132. </plugin>
  133. <plugin>
  134. <groupId>org.apache.maven.plugins</groupId>
  135. <artifactId>maven-clean-plugin</artifactId>
  136. <version>2.5</version>
  137. <configuration>
  138. <filesets>
  139. <fileset>
  140. <directory>${ui.directory}</directory>
  141. <followSymlinks>false</followSymlinks>
  142. <includes>
  143. <include>tmp/**</include>
  144. <!--
  145. <include>node_modules/**</include>
  146. <include>bower_components/**</include>
  147. -->
  148. <include>node/**</include>
  149. </includes>
  150. </fileset>
  151. </filesets>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>com.github.eirslett</groupId>
  156. <artifactId>frontend-maven-plugin</artifactId>
  157. <version>1.0</version>
  158. <configuration>
  159. <nodeVersion>v0.12.2</nodeVersion>
  160. <npmVersion>1.4.8</npmVersion>
  161. <workingDirectory>src/main/resources/ui/</workingDirectory>
  162. </configuration>
  163. <executions>
  164. <execution>
  165. <id>install node and npm</id>
  166. <phase>generate-sources</phase>
  167. <goals>
  168. <goal>install-node-and-npm</goal>
  169. </goals>
  170. </execution>
  171. <execution>
  172. <id>npm install</id>
  173. <phase>generate-sources</phase>
  174. <goals>
  175. <goal>npm</goal>
  176. </goals>
  177. <configuration>
  178. <arguments>install
  179. --python="${project.basedir}/../src/main/unix/ambari-python-wrap"
  180. --unsafe-perm</arguments>
  181. </configuration>
  182. </execution>
  183. </executions>
  184. </plugin>
  185. <plugin>
  186. <artifactId>exec-maven-plugin</artifactId>
  187. <groupId>org.codehaus.mojo</groupId>
  188. <version>1.3.2</version>
  189. <executions>
  190. <execution>
  191. <id>Bower install</id>
  192. <phase>generate-sources</phase>
  193. <goals>
  194. <goal>exec</goal>
  195. </goals>
  196. <configuration>
  197. <workingDirectory>${ui.directory}</workingDirectory>
  198. <executable>${ui.directory}/node/${node.executable}</executable>
  199. <arguments>
  200. <argument>${ui.directory}/node_modules/bower/bin/bower</argument>
  201. <argument>install</argument>
  202. <argument>--allow-root</argument>
  203. </arguments>
  204. </configuration>
  205. </execution>
  206. <execution>
  207. <id>Files build</id>
  208. <phase>generate-sources</phase>
  209. <goals>
  210. <goal>exec</goal>
  211. </goals>
  212. <configuration>
  213. <workingDirectory>${basedir}/src/main/resources/ui</workingDirectory>
  214. <executable>node/node</executable>
  215. <arguments>
  216. <argument>node_modules/.bin/ember</argument>
  217. <argument>build</argument>
  218. </arguments>
  219. </configuration>
  220. </execution>
  221. </executions>
  222. </plugin>
  223. <plugin>
  224. <groupId>org.apache.maven.plugins</groupId>
  225. <artifactId>maven-compiler-plugin</artifactId>
  226. <version>3.1</version>
  227. <configuration>
  228. <source>1.7</source>
  229. <target>1.7</target>
  230. </configuration>
  231. </plugin>
  232. <plugin>
  233. <artifactId>maven-dependency-plugin</artifactId>
  234. <executions>
  235. <execution>
  236. <phase>generate-resources</phase>
  237. <goals>
  238. <goal>copy-dependencies</goal>
  239. </goals>
  240. <configuration>
  241. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  242. <includeScope>runtime</includeScope>
  243. </configuration>
  244. </execution>
  245. </executions>
  246. </plugin>
  247. </plugins>
  248. <resources>
  249. <resource>
  250. <directory>src/main/resources</directory>
  251. <filtering>false</filtering>
  252. <includes>
  253. <include>META-INF/**/*</include>
  254. <include>view.xml</include>
  255. </includes>
  256. </resource>
  257. <resource>
  258. <directory>src/main/resources/ui/dist</directory>
  259. <filtering>false</filtering>
  260. </resource>
  261. <!-- <resource> <directory>src/main/resources/ui/</directory> <filtering>false</filtering>
  262. </resource> -->
  263. <resource>
  264. <directory>${uicode.dir}/dist</directory>
  265. <filtering>false</filtering>
  266. </resource>
  267. <resource>
  268. <targetPath>WEB-INF/lib</targetPath>
  269. <filtering>false</filtering>
  270. <directory>target/lib</directory>
  271. </resource>
  272. </resources>
  273. </build>
  274. <profiles>
  275. <profile>
  276. <id>windows</id>
  277. <activation>
  278. <os>
  279. <family>win</family>
  280. </os>
  281. </activation>
  282. <properties>
  283. <node.executable>node.exe</node.executable>
  284. <skip.nodegyp.chmod>true</skip.nodegyp.chmod>
  285. </properties>
  286. </profile>
  287. <profile>
  288. <id>linux</id>
  289. <activation>
  290. <os>
  291. <family>unix</family>
  292. </os>
  293. </activation>
  294. <properties>
  295. <node.executable>node</node.executable>
  296. <skip.nodegyp.chmod>false</skip.nodegyp.chmod>
  297. </properties>
  298. </profile>
  299. </profiles>
  300. </project>