pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433
  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="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  12. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  13. <modelVersion>4.0.0</modelVersion>
  14. <groupId>org.apache.ambari.contrib.views</groupId>
  15. <artifactId>slider</artifactId>
  16. <version>2.0.0-SNAPSHOT</version>
  17. <name>Slider</name>
  18. <parent>
  19. <groupId>org.apache.ambari.contrib.views</groupId>
  20. <artifactId>ambari-contrib-views</artifactId>
  21. <version>2.0.0-SNAPSHOT</version>
  22. </parent>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.apache.slider</groupId>
  26. <artifactId>slider-core</artifactId>
  27. <version>${slider.version}</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.slider</groupId>
  31. <artifactId>slider-agent</artifactId>
  32. <version>${slider.version}</version>
  33. <type>tar.gz</type>
  34. </dependency>
  35. <dependency>
  36. <groupId>junit</groupId>
  37. <artifactId>junit</artifactId>
  38. <scope>test</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.easymock</groupId>
  42. <artifactId>easymock</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>commons-configuration</groupId>
  47. <artifactId>commons-configuration</artifactId>
  48. <version>${commons-configuration.version}</version>
  49. <exclusions>
  50. <exclusion>
  51. <groupId>commons-logging</groupId>
  52. <artifactId>commons-logging</artifactId>
  53. </exclusion>
  54. <exclusion>
  55. <groupId>commons-lang</groupId>
  56. <artifactId>commons-lang</artifactId>
  57. </exclusion>
  58. <exclusion>
  59. <groupId>commons-logging</groupId>
  60. <artifactId>commons-logging</artifactId>
  61. </exclusion>
  62. </exclusions>
  63. </dependency>
  64. <dependency>
  65. <groupId>commons-lang</groupId>
  66. <artifactId>commons-lang</artifactId>
  67. <version>${commons-lang.version}</version>
  68. <exclusions>
  69. </exclusions>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.httpcomponents</groupId>
  73. <artifactId>httpclient</artifactId>
  74. <version>${httpclient.version}</version>
  75. <exclusions>
  76. </exclusions>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.ambari</groupId>
  80. <artifactId>ambari-views</artifactId>
  81. <scope>provided</scope>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.commons</groupId>
  85. <artifactId>commons-compress</artifactId>
  86. <version>${commons-compress.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>com.google.inject</groupId>
  90. <artifactId>guice</artifactId>
  91. <version>${guice.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>com.googlecode.json-simple</groupId>
  95. <artifactId>json-simple</artifactId>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.sun.jersey</groupId>
  99. <artifactId>jersey-core</artifactId>
  100. <version>${jersey.version}</version>
  101. </dependency>
  102. <dependency>
  103. <groupId>com.sun.jersey</groupId>
  104. <artifactId>jersey-client</artifactId>
  105. <version>${jersey.version}</version>
  106. </dependency>
  107. <dependency>
  108. <groupId>com.sun.jersey.contribs</groupId>
  109. <artifactId>jersey-guice</artifactId>
  110. <version>${jersey.version}</version>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.sun.jersey</groupId>
  114. <artifactId>jersey-json</artifactId>
  115. <version>${jersey.version}</version>
  116. </dependency>
  117. <dependency>
  118. <groupId>com.sun.jersey</groupId>
  119. <artifactId>jersey-server</artifactId>
  120. <version>${jersey.version}</version>
  121. </dependency>
  122. <dependency>
  123. <groupId>commons-io</groupId>
  124. <artifactId>commons-io</artifactId>
  125. <version>${commons-io.version}</version>
  126. </dependency>
  127. </dependencies>
  128. <properties>
  129. <ambari.dir>${project.parent.parent.parent.basedir}</ambari.dir>
  130. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  131. <npm.version>1.4.3</npm.version>
  132. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  133. <commons-configuration.version>1.6</commons-configuration.version>
  134. <commons-lang.version>2.6</commons-lang.version>
  135. <commons-compress.version>1.9</commons-compress.version>
  136. <httpclient.version>4.2.5</httpclient.version>
  137. <slider.version>0.72.0-incubating-SNAPSHOT</slider.version>
  138. <guice.version>3.0</guice.version>
  139. <jackson.version>1.9.13</jackson.version>
  140. <jersey.version>1.9</jersey.version>
  141. <commons-io.version>2.4</commons-io.version>
  142. </properties>
  143. <build>
  144. <plugins>
  145. <plugin>
  146. <groupId>org.codehaus.mojo</groupId>
  147. <artifactId>exec-maven-plugin</artifactId>
  148. <version>1.2.1</version>
  149. <executions>
  150. <execution>
  151. <id>clean-rmdir</id>
  152. <phase>clean</phase>
  153. <goals>
  154. <goal>exec</goal>
  155. </goals>
  156. <configuration>
  157. <executable>${executable.rmdir}</executable>
  158. <workingDirectory>${ui.directory}</workingDirectory>
  159. <commandlineArgs>${args.rm.clean} public node_modules</commandlineArgs>
  160. <successCodes>
  161. <successCode>0</successCode>
  162. <successCode>1</successCode>
  163. <successCode>2</successCode>
  164. </successCodes>
  165. </configuration>
  166. </execution>
  167. <execution>
  168. <id>clean-mkdir</id>
  169. <phase>clean</phase>
  170. <goals>
  171. <goal>exec</goal>
  172. </goals>
  173. <configuration>
  174. <executable>${executable.mkdir}</executable>
  175. <workingDirectory>${ui.directory}</workingDirectory>
  176. <commandlineArgs>${args.mkdir} public</commandlineArgs>
  177. </configuration>
  178. </execution>
  179. <execution>
  180. <id>slider-ui-compile-npm</id>
  181. <phase>generate-resources</phase>
  182. <goals>
  183. <goal>exec</goal>
  184. </goals>
  185. <configuration>
  186. <executable>${executable.npm}</executable>
  187. <workingDirectory>${ui.directory}</workingDirectory>
  188. <commandlineArgs>${args.npm} install</commandlineArgs>
  189. </configuration>
  190. </execution>
  191. <execution>
  192. <id>slider-ui-compile-brunch</id>
  193. <phase>generate-resources</phase>
  194. <goals>
  195. <goal>exec</goal>
  196. </goals>
  197. <configuration>
  198. <executable>${executable.brunch}</executable>
  199. <workingDirectory>${ui.directory}</workingDirectory>
  200. <commandlineArgs>${args.brunch} build</commandlineArgs>
  201. </configuration>
  202. </execution>
  203. <execution>
  204. <id>slider-ui-test</id>
  205. <phase>test</phase>
  206. <goals>
  207. <goal>exec</goal>
  208. </goals>
  209. <configuration>
  210. <skip>${skipTests}</skip>
  211. <executable>${executable.npm}</executable>
  212. <workingDirectory>${ui.directory}</workingDirectory>
  213. <commandlineArgs>${args.npm} test</commandlineArgs>
  214. <environmentVariables>
  215. <PYTHON>${executable.python}</PYTHON>
  216. </environmentVariables>
  217. </configuration>
  218. </execution>
  219. <execution>
  220. <id>gzip ambari-web content</id>
  221. <phase>prepare-package</phase>
  222. <goals>
  223. <goal>exec</goal>
  224. </goals>
  225. <configuration>
  226. <executable>${executable.gzip}</executable>
  227. <workingDirectory>${ui.directory}</workingDirectory>
  228. <arguments>
  229. <argument>-f</argument>
  230. <argument>public/javascripts/app.js</argument>
  231. <argument>public/javascripts/vendor.js</argument>
  232. <argument>public/stylesheets/app.css</argument>
  233. </arguments>
  234. </configuration>
  235. </execution>
  236. </executions>
  237. </plugin>
  238. <!--
  239. <plugin>
  240. <groupId>org.apache.maven.plugins</groupId>
  241. <artifactId>maven-antrun-plugin</artifactId>
  242. <version>1.7</version>
  243. <executions>
  244. <execution>
  245. <id>prepare-package</id>
  246. <phase>prepare-package</phase>
  247. <goals>
  248. <goal>run</goal>
  249. </goals>
  250. <configuration>
  251. <target name="slider-ui-prepare-package">
  252. <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
  253. <fileset dir="${ui.directory}/../ambari-web/public"/> </copy>
  254. </target>
  255. </configuration>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. -->
  260. <plugin>
  261. <groupId>org.apache.maven.plugins</groupId>
  262. <artifactId>maven-compiler-plugin</artifactId>
  263. <version>3.1</version>
  264. <configuration>
  265. <source>1.6</source>
  266. <target>1.6</target>
  267. </configuration>
  268. </plugin>
  269. <plugin>
  270. <artifactId>maven-dependency-plugin</artifactId>
  271. <executions>
  272. <execution>
  273. <id>copy-dependencies</id>
  274. <phase>generate-resources</phase>
  275. <goals>
  276. <goal>copy-dependencies</goal>
  277. </goals>
  278. <configuration>
  279. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  280. <includeScope>runtime</includeScope>
  281. <excludeArtifactIds>slider-agent</excludeArtifactIds>
  282. </configuration>
  283. </execution>
  284. <execution>
  285. <id>copy-slider-agent-with-rename</id>
  286. <phase>generate-resources</phase>
  287. <goals>
  288. <goal>copy-dependencies</goal>
  289. </goals>
  290. <configuration>
  291. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  292. <includeScope>runtime</includeScope>
  293. <stripVersion>true</stripVersion>
  294. <includeArtifactIds>slider-agent</includeArtifactIds>
  295. </configuration>
  296. </execution>
  297. </executions>
  298. </plugin>
  299. <plugin>
  300. <groupId>org.vafer</groupId>
  301. <artifactId>jdeb</artifactId>
  302. <version>1.0.1</version>
  303. <executions>
  304. <execution>
  305. <phase>none</phase>
  306. <goals>
  307. <goal>jdeb</goal>
  308. </goals>
  309. </execution>
  310. </executions>
  311. <configuration>
  312. <skip>true</skip>
  313. <submodules>false</submodules>
  314. </configuration>
  315. </plugin>
  316. </plugins>
  317. <resources>
  318. <resource>
  319. <directory>src/main/resources</directory>
  320. <filtering>true</filtering>
  321. <includes>
  322. <include>slider.properties</include>
  323. </includes>
  324. </resource>
  325. <resource>
  326. <directory>src/main/resources/</directory>
  327. <filtering>false</filtering>
  328. <includes>
  329. <include>view.xml</include>
  330. </includes>
  331. </resource>
  332. <resource>
  333. <directory>src/main/resources/ui/public</directory>
  334. <filtering>false</filtering>
  335. </resource>
  336. <resource>
  337. <targetPath>WEB-INF/lib</targetPath>
  338. <filtering>false</filtering>
  339. <directory>target/lib</directory>
  340. </resource>
  341. </resources>
  342. <pluginManagement>
  343. <plugins>
  344. <!--This plugin's configuration is used to store Eclipse m2e settings
  345. only. It has no influence on the Maven build itself. -->
  346. <plugin>
  347. <groupId>org.eclipse.m2e</groupId>
  348. <artifactId>lifecycle-mapping</artifactId>
  349. <version>1.0.0</version>
  350. <configuration>
  351. <lifecycleMappingMetadata>
  352. <pluginExecutions>
  353. <pluginExecution>
  354. <pluginExecutionFilter>
  355. <groupId>
  356. org.codehaus.mojo
  357. </groupId>
  358. <artifactId>
  359. exec-maven-plugin
  360. </artifactId>
  361. <versionRange>
  362. [1.2.1,)
  363. </versionRange>
  364. <goals>
  365. <goal>exec</goal>
  366. </goals>
  367. </pluginExecutionFilter>
  368. <action>
  369. <ignore></ignore>
  370. </action>
  371. </pluginExecution>
  372. </pluginExecutions>
  373. </lifecycleMappingMetadata>
  374. </configuration>
  375. </plugin>
  376. </plugins>
  377. </pluginManagement>
  378. </build>
  379. <profiles>
  380. <profile>
  381. <id>windows</id>
  382. <activation>
  383. <os>
  384. <family>win</family>
  385. </os>
  386. </activation>
  387. <properties>
  388. <envClassifier>win</envClassifier>
  389. <dirsep>\</dirsep>
  390. <executable.python>python</executable.python>
  391. <executable.brunch>cmd</executable.brunch>
  392. <args.brunch>/C brunch</args.brunch>
  393. <executable.gzip>gzip-content.cmd</executable.gzip>
  394. <executable.mkdir>cmd</executable.mkdir>
  395. <args.mkdir>/C mkdir</args.mkdir>
  396. <executable.npm>cmd</executable.npm>
  397. <args.npm>/C npm</args.npm>
  398. <executable.rmdir>cmd</executable.rmdir>
  399. <args.rm.clean>/C rmdir /S /Q</args.rm.clean>
  400. <executable.shell>cmd</executable.shell>
  401. <fileextension.shell>cmd</fileextension.shell>
  402. </properties>
  403. </profile>
  404. <profile>
  405. <id>linux</id>
  406. <activation>
  407. <os>
  408. <family>unix</family>
  409. </os>
  410. </activation>
  411. <properties>
  412. <envClassifier>linux</envClassifier>
  413. <dirsep>/</dirsep>
  414. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  415. <executable.brunch>brunch</executable.brunch>
  416. <args.brunch></args.brunch>
  417. <executable.gzip>gzip</executable.gzip>
  418. <executable.mkdir>mkdir</executable.mkdir>
  419. <args.mkdir></args.mkdir>
  420. <executable.npm>npm</executable.npm>
  421. <args.npm></args.npm>
  422. <executable.rmdir>rm</executable.rmdir>
  423. <args.rm.clean>-rf</args.rm.clean>
  424. <executable.shell>sh</executable.shell>
  425. <fileextension.shell>sh</fileextension.shell>
  426. </properties>
  427. </profile>
  428. </profiles>
  429. </project>