pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  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.view</groupId>
  15. <artifactId>slider</artifactId>
  16. <version>0.0.1-SNAPSHOT</version>
  17. <name>Slider</name>
  18. <parent>
  19. <groupId>org.apache.ambari.views</groupId>
  20. <artifactId>ambari-contrib-views</artifactId>
  21. <version>1.6.1.100</version>
  22. </parent>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.codehaus.jackson</groupId>
  26. <artifactId>jackson-mapper-asl</artifactId>
  27. <version>1.9.2</version>
  28. </dependency>
  29. <dependency>
  30. <groupId>org.apache.hadoop</groupId>
  31. <artifactId>hadoop-hdfs</artifactId>
  32. <version>${hadoop-version}</version>
  33. </dependency>
  34. <dependency>
  35. <groupId>org.apache.hadoop</groupId>
  36. <artifactId>hadoop-common</artifactId>
  37. <version>${hadoop-version}</version>
  38. </dependency>
  39. <dependency>
  40. <groupId>org.apache.slider</groupId>
  41. <artifactId>slider</artifactId>
  42. <version>0.30.0</version>
  43. </dependency>
  44. <dependency>
  45. <groupId>junit</groupId>
  46. <artifactId>junit</artifactId>
  47. <scope>test</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>org.easymock</groupId>
  51. <artifactId>easymock</artifactId>
  52. <scope>test</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.google.inject</groupId>
  56. <artifactId>guice</artifactId>
  57. </dependency>
  58. <dependency>
  59. <groupId>org.glassfish.jersey.containers</groupId>
  60. <artifactId>jersey-container-servlet</artifactId>
  61. </dependency>
  62. <dependency>
  63. <groupId>com.googlecode.json-simple</groupId>
  64. <artifactId>json-simple</artifactId>
  65. </dependency>
  66. <dependency>
  67. <groupId>org.apache.hadoop</groupId>
  68. <artifactId>hadoop-minicluster</artifactId>
  69. <version>${hadoop-version}</version>
  70. <scope>test</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.glassfish.jersey.test-framework</groupId>
  74. <artifactId>jersey-test-framework-core</artifactId>
  75. <version>2.6</version>
  76. <scope>test</scope>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.glassfish.jersey.test-framework.providers</groupId>
  80. <artifactId>jersey-test-framework-provider-grizzly2</artifactId>
  81. <version>2.6</version>
  82. <scope>test</scope>
  83. </dependency>
  84. <dependency>
  85. <groupId>
  86. org.glassfish.jersey.test-framework.providers
  87. </groupId>
  88. <artifactId>
  89. jersey-test-framework-provider-bundle
  90. </artifactId>
  91. <version>2.6</version>
  92. <scope>test</scope>
  93. <type>pom</type>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.ambari</groupId>
  97. <artifactId>ambari-views</artifactId>
  98. <scope>provided</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>com.google.code.gson</groupId>
  102. <artifactId>gson</artifactId>
  103. <version>2.2.2</version>
  104. </dependency>
  105. <dependency>
  106. <groupId>org.apache.ambari</groupId>
  107. <artifactId>ambari-server</artifactId>
  108. <version>${ambari.version}</version>
  109. <scope>provided</scope>
  110. </dependency>
  111. <!-- ==================================================================== -->
  112. <!-- Slider Dependencies (to be removed when Slider has Maven repository) -->
  113. <!-- ==================================================================== -->
  114. <dependency>
  115. <groupId>org.apache.curator</groupId>
  116. <artifactId>curator-client</artifactId>
  117. <version>${curator.version}</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.apache.curator</groupId>
  121. <artifactId>curator-framework</artifactId>
  122. <version>${curator.version}</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.apache.curator</groupId>
  126. <artifactId>curator-x-discovery</artifactId>
  127. <version>${curator.version}</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.curator</groupId>
  131. <artifactId>curator-x-discovery-server</artifactId>
  132. <version>${curator.version}</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.zookeeper</groupId>
  136. <artifactId>zookeeper</artifactId>
  137. <version>${zookeeper.version}</version>
  138. <exclusions>
  139. <exclusion>
  140. <groupId>org.junit</groupId>
  141. <artifactId>junit</artifactId>
  142. </exclusion>
  143. </exclusions>
  144. </dependency>
  145. <dependency>
  146. <groupId>org.apache.hadoop</groupId>
  147. <artifactId>hadoop-common</artifactId>
  148. <version>${hadoop.version}</version>
  149. <exclusions>
  150. <exclusion>
  151. <groupId>org.codehaus.jackson</groupId>
  152. <artifactId>jackson-core-asl</artifactId>
  153. </exclusion>
  154. <exclusion>
  155. <groupId>net.java.dev.jets3t</groupId>
  156. <artifactId>jets3t</artifactId>
  157. </exclusion>
  158. <exclusion>
  159. <groupId>commons-codec</groupId>
  160. <artifactId>commons-codec</artifactId>
  161. </exclusion>
  162. <exclusion>
  163. <groupId>com.google.guava</groupId>
  164. <artifactId>guava</artifactId>
  165. </exclusion>
  166. <exclusion>
  167. <groupId>commons-net</groupId>
  168. <artifactId>commons-net</artifactId>
  169. </exclusion>
  170. <exclusion>
  171. <groupId>tomcat</groupId>
  172. <artifactId>jasper-runtime</artifactId>
  173. </exclusion>
  174. <exclusion>
  175. <groupId>net.java.dev.jets3t</groupId>
  176. <artifactId>jets3t</artifactId>
  177. </exclusion>
  178. <exclusion>
  179. <groupId>org.apache.httpcomponents</groupId>
  180. <artifactId>httpclient</artifactId>
  181. </exclusion>
  182. <exclusion>
  183. <groupId>org.apache.httpcomponents</groupId>
  184. <artifactId>httpcore</artifactId>
  185. </exclusion>
  186. </exclusions>
  187. </dependency>
  188. <dependency>
  189. <groupId>org.apache.hadoop</groupId>
  190. <artifactId>hadoop-client</artifactId>
  191. <version>${hadoop.version}</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.hadoop</groupId>
  195. <artifactId>hadoop-client</artifactId>
  196. <version>${hadoop.version}</version>
  197. <type>pom</type>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.apache.hadoop</groupId>
  201. <artifactId>hadoop-minicluster</artifactId>
  202. <version>${hadoop.version}</version>
  203. <exclusions>
  204. <exclusion>
  205. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  206. <artifactId>jersey-test-framework-grizzly2</artifactId>
  207. </exclusion>
  208. </exclusions>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.apache.hadoop</groupId>
  212. <artifactId>hadoop-hdfs</artifactId>
  213. <version>${hadoop.version}</version>
  214. <exclusions>
  215. <exclusion>
  216. <groupId>tomcat</groupId>
  217. <artifactId>jasper-runtime</artifactId>
  218. </exclusion>
  219. </exclusions>
  220. </dependency>
  221. <dependency>
  222. <groupId>org.apache.hadoop</groupId>
  223. <artifactId>hadoop-common</artifactId>
  224. <version>${hadoop.version}</version>
  225. <type>test-jar</type>
  226. </dependency>
  227. <dependency>
  228. <groupId>org.apache.hadoop</groupId>
  229. <artifactId>hadoop-yarn-server-common</artifactId>
  230. <version>${hadoop.version}</version>
  231. <exclusions>
  232. <exclusion>
  233. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  234. <artifactId>jersey-test-framework-grizzly2</artifactId>
  235. </exclusion>
  236. </exclusions>
  237. </dependency>
  238. <dependency>
  239. <groupId>org.apache.hadoop</groupId>
  240. <artifactId>hadoop-yarn-client</artifactId>
  241. <version>${hadoop.version}</version>
  242. <exclusions>
  243. <exclusion>
  244. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  245. <artifactId>jersey-test-framework-grizzly2</artifactId>
  246. </exclusion>
  247. </exclusions>
  248. </dependency>
  249. <dependency>
  250. <groupId>org.apache.hadoop</groupId>
  251. <artifactId>hadoop-yarn-common</artifactId>
  252. <version>${hadoop.version}</version>
  253. </dependency>
  254. <dependency>
  255. <groupId>org.apache.hadoop</groupId>
  256. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  257. <version>${hadoop.version}</version>
  258. </dependency>
  259. <dependency>
  260. <groupId>org.apache.hadoop</groupId>
  261. <artifactId>hadoop-mapreduce-client</artifactId>
  262. <version>${hadoop.version}</version>
  263. <type>pom</type>
  264. <exclusions>
  265. </exclusions>
  266. </dependency>
  267. <dependency>
  268. <groupId>org.apache.avro</groupId>
  269. <artifactId>avro</artifactId>
  270. <version>${avro.version}</version>
  271. <exclusions>
  272. <exclusion>
  273. <groupId>org.mortbay.jetty</groupId>
  274. <artifactId>jetty</artifactId>
  275. </exclusion>
  276. <exclusion>
  277. <groupId>org.apache.ant</groupId>
  278. <artifactId>ant</artifactId>
  279. </exclusion>
  280. <exclusion>
  281. <groupId>org.jboss.netty</groupId>
  282. <artifactId>netty</artifactId>
  283. </exclusion>
  284. <exclusion>
  285. <groupId>org.apache.velocity</groupId>
  286. <artifactId>velocity</artifactId>
  287. </exclusion>
  288. <exclusion>
  289. <groupId>org.slf4j</groupId>
  290. <artifactId>slf4j-api</artifactId>
  291. </exclusion>
  292. <exclusion>
  293. <artifactId>paranamer-ant</artifactId>
  294. <groupId>com.thoughtworks.paranamer</groupId>
  295. </exclusion>
  296. </exclusions>
  297. </dependency>
  298. <dependency>
  299. <groupId>org.apache.bigtop.itest</groupId>
  300. <artifactId>itest-common</artifactId>
  301. <version>${bigtop.version}</version>
  302. <exclusions>
  303. <exclusion>
  304. <groupId>commons-logging</groupId>
  305. <artifactId>commons-logging</artifactId>
  306. </exclusion>
  307. </exclusions>
  308. </dependency>
  309. <dependency>
  310. <groupId>commons-configuration</groupId>
  311. <artifactId>commons-configuration</artifactId>
  312. <version>${commons-configuration.version}</version>
  313. <exclusions>
  314. <exclusion>
  315. <groupId>commons-logging</groupId>
  316. <artifactId>commons-logging</artifactId>
  317. </exclusion>
  318. <exclusion>
  319. <groupId>commons-lang</groupId>
  320. <artifactId>commons-lang</artifactId>
  321. </exclusion>
  322. <exclusion>
  323. <groupId>commons-logging</groupId>
  324. <artifactId>commons-logging</artifactId>
  325. </exclusion>
  326. </exclusions>
  327. </dependency>
  328. <dependency>
  329. <groupId>commons-lang</groupId>
  330. <artifactId>commons-lang</artifactId>
  331. <version>${commons-lang.version}</version>
  332. <exclusions>
  333. </exclusions>
  334. </dependency>
  335. <dependency>
  336. <groupId>org.apache.httpcomponents</groupId>
  337. <artifactId>httpclient</artifactId>
  338. <version>${httpclient.version}</version>
  339. <exclusions>
  340. </exclusions>
  341. </dependency>
  342. <dependency>
  343. <groupId>com.beust</groupId>
  344. <artifactId>jcommander</artifactId>
  345. <version>${jcommander.version}</version>
  346. <exclusions>
  347. <exclusion>
  348. <groupId>org.testng</groupId>
  349. <artifactId>testng</artifactId>
  350. </exclusion>
  351. </exclusions>
  352. </dependency>
  353. </dependencies>
  354. <repositories>
  355. <repository>
  356. <id>SliderAppsLibsRepo</id>
  357. <name>SliderAppsLibsRepo</name>
  358. <url>file://${project.basedir}/lib</url>
  359. </repository>
  360. </repositories>
  361. <properties>
  362. <hadoop-version>2.4.0</hadoop-version>
  363. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  364. <npm.version>1.4.3</npm.version>
  365. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  366. <ambari.version>1.3.0-SNAPSHOT</ambari.version>
  367. <hadoop.version>2.4.0</hadoop.version>
  368. <avro.version>1.7.4</avro.version>
  369. <bigtop.version>0.7.0</bigtop.version>
  370. <commons-configuration.version>1.6</commons-configuration.version>
  371. <commons-lang.version>2.6</commons-lang.version>
  372. <httpclient.version>4.2.5</httpclient.version>
  373. <jcommander.version>1.30</jcommander.version>
  374. <curator.version>2.4.1</curator.version>
  375. <zookeeper.version>3.4.5</zookeeper.version>
  376. </properties>
  377. <build>
  378. <plugins>
  379. <plugin>
  380. <groupId>org.apache.maven.plugins</groupId>
  381. <artifactId>maven-antrun-plugin</artifactId>
  382. <version>1.7</version>
  383. <executions>
  384. <execution>
  385. <id>clean</id>
  386. <phase>clean</phase>
  387. <goals>
  388. <goal>run</goal>
  389. </goals>
  390. <configuration>
  391. <target name="slider-ui-clean">
  392. <exec dir="${ui.directory}" executable="rm" failonerror="false">
  393. <arg value="-rf" />
  394. <arg value="public" />
  395. </exec>
  396. <exec dir="${ui.directory}" executable="mkdir" failonerror="false">
  397. <arg value="public" />
  398. </exec>
  399. </target>
  400. </configuration>
  401. </execution>
  402. <execution>
  403. <id>compile</id>
  404. <phase>generate-resources</phase>
  405. <goals>
  406. <goal>run</goal>
  407. </goals>
  408. <configuration>
  409. <target name="slider-ui-compile">
  410. <exec dir="${ui.directory}" executable="npm" failonerror="false">
  411. <env key="PYTHON" value="python2.6" />
  412. <arg value="install" />
  413. </exec>
  414. <exec dir="${ui.directory}" executable="brunch"
  415. failonerror="false">
  416. <arg value="build" />
  417. </exec>
  418. <exec dir="${ui.directory}" executable="gzip" failonerror="false">
  419. <arg value="public/javascripts/app.js" />
  420. <arg value="public/javascripts/vendor.js" />
  421. <arg value="public/stylesheets/app.css" />
  422. </exec>
  423. </target>
  424. </configuration>
  425. </execution>
  426. <execution>
  427. <id>test</id>
  428. <phase>test</phase>
  429. <goals>
  430. <goal>run</goal>
  431. </goals>
  432. <configuration>
  433. <target name="slider-ui-test">
  434. <!-- <exec dir="${ui.directory}" executable="brunch" failonerror="false">
  435. <arg value="test"/> </exec> -->
  436. </target>
  437. </configuration>
  438. </execution>
  439. <execution>
  440. <id>package</id>
  441. <phase>package</phase>
  442. <goals>
  443. <goal>run</goal>
  444. </goals>
  445. <configuration>
  446. <target name="slider-ui-package">
  447. <!-- <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
  448. <fileset dir="${ui.directory}/../ambari-web/public"/> </copy> -->
  449. </target>
  450. </configuration>
  451. </execution>
  452. </executions>
  453. </plugin>
  454. <plugin>
  455. <groupId>org.apache.maven.plugins</groupId>
  456. <artifactId>maven-compiler-plugin</artifactId>
  457. <version>3.1</version>
  458. <configuration>
  459. <source>1.6</source>
  460. <target>1.6</target>
  461. </configuration>
  462. </plugin>
  463. <plugin>
  464. <artifactId>maven-dependency-plugin</artifactId>
  465. <executions>
  466. <execution>
  467. <phase>generate-resources</phase>
  468. <goals>
  469. <goal>copy-dependencies</goal>
  470. </goals>
  471. <configuration>
  472. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  473. <includeScope>runtime</includeScope>
  474. </configuration>
  475. </execution>
  476. </executions>
  477. </plugin>
  478. </plugins>
  479. <resources>
  480. <resource>
  481. <directory>src/main/resources</directory>
  482. <filtering>true</filtering>
  483. <includes>
  484. <include>slider.properties</include>
  485. </includes>
  486. </resource>
  487. <resource>
  488. <directory>src/main/resources/</directory>
  489. <filtering>false</filtering>
  490. <includes>
  491. <include>view.xml</include>
  492. </includes>
  493. </resource>
  494. <resource>
  495. <directory>src/main/resources/ui/public</directory>
  496. <filtering>false</filtering>
  497. </resource>
  498. <resource>
  499. <targetPath>WEB-INF/lib</targetPath>
  500. <filtering>false</filtering>
  501. <directory>target/lib</directory>
  502. </resource>
  503. </resources>
  504. <pluginManagement>
  505. <plugins>
  506. <!--This plugin's configuration is used to store Eclipse m2e settings
  507. only. It has no influence on the Maven build itself. -->
  508. <plugin>
  509. <groupId>org.eclipse.m2e</groupId>
  510. <artifactId>lifecycle-mapping</artifactId>
  511. <version>1.0.0</version>
  512. <configuration>
  513. <lifecycleMappingMetadata>
  514. <pluginExecutions>
  515. <pluginExecution>
  516. <pluginExecutionFilter>
  517. <groupId>
  518. org.codehaus.mojo
  519. </groupId>
  520. <artifactId>
  521. exec-maven-plugin
  522. </artifactId>
  523. <versionRange>
  524. [1.2.1,)
  525. </versionRange>
  526. <goals>
  527. <goal>exec</goal>
  528. </goals>
  529. </pluginExecutionFilter>
  530. <action>
  531. <ignore></ignore>
  532. </action>
  533. </pluginExecution>
  534. </pluginExecutions>
  535. </lifecycleMappingMetadata>
  536. </configuration>
  537. </plugin>
  538. </plugins>
  539. </pluginManagement>
  540. </build>
  541. </project>