pom.xml 16 KB

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