pom.xml 9.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  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/maven-v4_0_0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <groupId>org.apache.ambari.contrib.views</groupId>
  19. <artifactId>hueambarimigration</artifactId>
  20. <version>1.0.0.0-SNAPSHOT</version>
  21. <name>hueambarimigration</name>
  22. <parent>
  23. <groupId>org.apache.ambari.contrib.views</groupId>
  24. <artifactId>ambari-contrib-views</artifactId>
  25. <version>2.5.0.0.0</version>
  26. </parent>
  27. <properties>
  28. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  29. </properties>
  30. <dependencies>
  31. <dependency>
  32. <groupId>com.google.code.gson</groupId>
  33. <artifactId>gson</artifactId>
  34. <version>2.6.2</version>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.jayway.jsonpath</groupId>
  38. <artifactId>json-path</artifactId>
  39. <version>2.0.0</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.easymock</groupId>
  43. <artifactId>easymock</artifactId>
  44. <version>3.1</version>
  45. <scope>test</scope>
  46. </dependency>
  47. <dependency>
  48. <groupId>org.apache.ambari</groupId>
  49. <artifactId>ambari-views</artifactId>
  50. <version>2.5.0.0.0</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>javax.servlet</groupId>
  54. <artifactId>servlet-api</artifactId>
  55. <version>2.5</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>org.apache.hadoop</groupId>
  59. <artifactId>hadoop-client</artifactId>
  60. <version>2.3.0</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.xerial</groupId>
  64. <artifactId>sqlite-jdbc</artifactId>
  65. <version>3.7.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>junit</groupId>
  69. <artifactId>junit</artifactId>
  70. <version>3.8.1</version>
  71. <scope>test</scope>
  72. </dependency>
  73. <dependency>
  74. <groupId>postgresql</groupId>
  75. <artifactId>postgresql</artifactId>
  76. <version>8.4-701.jdbc3</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>com.googlecode.json-simple</groupId>
  80. <artifactId>json-simple</artifactId>
  81. <version>1.1.1</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.json</groupId>
  85. <artifactId>json</artifactId>
  86. <version>20151123</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>jdom</groupId>
  90. <artifactId>jdom</artifactId>
  91. <version>1.1</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>commons-configuration</groupId>
  95. <artifactId>commons-configuration</artifactId>
  96. <version>1.6</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>log4j</groupId>
  100. <artifactId>log4j</artifactId>
  101. <version>1.2.17</version>
  102. </dependency>
  103. <dependency>
  104. <groupId>c3p0</groupId>
  105. <artifactId>c3p0</artifactId>
  106. <version>0.9.1.2</version>
  107. </dependency>
  108. <dependency>
  109. <groupId>com.jayway.jsonpath</groupId>
  110. <artifactId>json-path</artifactId>
  111. <version>2.0.0</version>
  112. </dependency>
  113. <dependency>
  114. <groupId>com.google.inject</groupId>
  115. <artifactId>guice</artifactId>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.sun.jersey.contribs</groupId>
  119. <artifactId>jersey-multipart</artifactId>
  120. <version>1.18</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>com.sun.jersey</groupId>
  124. <artifactId>jersey-client</artifactId>
  125. <version>1.8</version>
  126. </dependency>
  127. <dependency>
  128. <groupId>com.sun.jersey</groupId>
  129. <artifactId>jersey-core</artifactId>
  130. <version>1.18.1</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>com.sun.jersey</groupId>
  134. <artifactId>jersey-json</artifactId>
  135. <version>1.9</version>
  136. </dependency>
  137. <dependency>
  138. <groupId>com.googlecode.json-simple</groupId>
  139. <artifactId>json-simple</artifactId>
  140. <version>1.1.1</version>
  141. </dependency>
  142. </dependencies>
  143. <build>
  144. <pluginManagement>
  145. <plugins>
  146. <plugin>
  147. <groupId>org.apache.maven.plugins</groupId>
  148. <artifactId>maven-surefire-plugin</artifactId>
  149. </plugin>
  150. </plugins>
  151. </pluginManagement>
  152. <plugins>
  153. <plugin>
  154. <groupId>com.github.eirslett</groupId>
  155. <artifactId>frontend-maven-plugin</artifactId>
  156. <version>1.4</version>
  157. <configuration>
  158. <nodeVersion>v4.5.0</nodeVersion>
  159. <yarnVersion>v0.23.2</yarnVersion>
  160. <workingDirectory>${project.basedir}/src/main/resources/ui/hueambarimigration-view/</workingDirectory>
  161. <npmInheritsProxyConfigFromMaven>false</npmInheritsProxyConfigFromMaven>
  162. <!-- setting npm_config_tmp environment variable is a workaround for
  163. https://github.com/Medium/phantomjs/issues/673 -->
  164. <environmentVariables>
  165. <npm_config_tmp>/tmp/npm_config_tmp</npm_config_tmp>
  166. </environmentVariables>
  167. </configuration>
  168. <executions>
  169. <execution>
  170. <id>install node and yarn</id>
  171. <phase>generate-sources</phase>
  172. <goals>
  173. <goal>install-node-and-yarn</goal>
  174. </goals>
  175. </execution>
  176. <execution>
  177. <id>yarn install --pure-lockfile</id>
  178. <phase>generate-sources</phase>
  179. <goals>
  180. <goal>yarn</goal>
  181. </goals>
  182. <configuration>
  183. <arguments>install --python="${project.basedir}/../src/main/unix/ambari-python-wrap" --unsafe-perm
  184. </arguments>
  185. <arguments>--ignore-engines</arguments>
  186. </configuration>
  187. </execution>
  188. </executions>
  189. </plugin>
  190. <plugin>
  191. <artifactId>exec-maven-plugin</artifactId>
  192. <groupId>org.codehaus.mojo</groupId>
  193. <version>1.3.2</version>
  194. <executions>
  195. <execution>
  196. <id>Hueambarimigration-build</id>
  197. <phase>generate-sources</phase>
  198. <goals>
  199. <goal>exec</goal>
  200. </goals>
  201. <configuration>
  202. <workingDirectory>${basedir}/src/main/resources/ui/hueambarimigration-view</workingDirectory>
  203. <executable>node/node</executable>
  204. <arguments>
  205. <argument>node_modules/.bin/ember</argument>
  206. <argument>build</argument>
  207. </arguments>
  208. </configuration>
  209. </execution>
  210. </executions>
  211. </plugin>
  212. <plugin>
  213. <artifactId>maven-dependency-plugin</artifactId>
  214. <executions>
  215. <execution>
  216. <phase>generate-resources</phase>
  217. <goals>
  218. <goal>copy-dependencies</goal>
  219. </goals>
  220. <configuration>
  221. <outputDirectory>${project.build.outputDirectory}/WEB-INF/lib</outputDirectory>
  222. <includeScope>runtime</includeScope>
  223. </configuration>
  224. </execution>
  225. <execution>
  226. <id>copy-artifact</id>
  227. <phase>package</phase>
  228. <goals>
  229. <goal>copy</goal>
  230. </goals>
  231. <configuration>
  232. <artifactItems>
  233. <artifactItem>
  234. <groupId>${project.groupId}</groupId>
  235. <artifactId>${project.artifactId}</artifactId>
  236. <version>${project.version}</version>
  237. <type>${project.packaging}</type>
  238. </artifactItem>
  239. </artifactItems>
  240. <outputDirectory>${views.jars.dir.rel}</outputDirectory>
  241. </configuration>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. </plugins>
  246. <resources>
  247. <resource>
  248. <directory>src/main/resources</directory>
  249. <filtering>false</filtering>
  250. <includes>
  251. <include>META-INF/**/*</include>
  252. <include>view.xml</include>
  253. <include>view.log4j.properties</include>
  254. </includes>
  255. </resource>
  256. <resource>
  257. <directory>src/main/resources/ui/hueambarimigration-view/dist</directory>
  258. <filtering>false</filtering>
  259. </resource>
  260. <resource>
  261. <targetPath>WEB-INF/lib</targetPath>
  262. <filtering>false</filtering>
  263. <directory>target/lib</directory>
  264. </resource>
  265. </resources>
  266. </build>
  267. </project>