pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510
  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.hadoop</groupId>
  111. <artifactId>hadoop-common</artifactId>
  112. <version>${hadoop.version}</version>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>org.codehaus.jackson</groupId>
  116. <artifactId>jackson-core-asl</artifactId>
  117. </exclusion>
  118. <exclusion>
  119. <groupId>net.java.dev.jets3t</groupId>
  120. <artifactId>jets3t</artifactId>
  121. </exclusion>
  122. <exclusion>
  123. <groupId>commons-codec</groupId>
  124. <artifactId>commons-codec</artifactId>
  125. </exclusion>
  126. <exclusion>
  127. <groupId>com.google.guava</groupId>
  128. <artifactId>guava</artifactId>
  129. </exclusion>
  130. <exclusion>
  131. <groupId>commons-net</groupId>
  132. <artifactId>commons-net</artifactId>
  133. </exclusion>
  134. <exclusion>
  135. <groupId>tomcat</groupId>
  136. <artifactId>jasper-runtime</artifactId>
  137. </exclusion>
  138. <exclusion>
  139. <groupId>net.java.dev.jets3t</groupId>
  140. <artifactId>jets3t</artifactId>
  141. </exclusion>
  142. <exclusion>
  143. <groupId>org.apache.httpcomponents</groupId>
  144. <artifactId>httpclient</artifactId>
  145. </exclusion>
  146. <exclusion>
  147. <groupId>org.apache.httpcomponents</groupId>
  148. <artifactId>httpcore</artifactId>
  149. </exclusion>
  150. </exclusions>
  151. </dependency>
  152. <dependency>
  153. <groupId>org.apache.hadoop</groupId>
  154. <artifactId>hadoop-client</artifactId>
  155. <version>${hadoop.version}</version>
  156. </dependency>
  157. <dependency>
  158. <groupId>org.apache.hadoop</groupId>
  159. <artifactId>hadoop-client</artifactId>
  160. <version>${hadoop.version}</version>
  161. <type>pom</type>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.hadoop</groupId>
  165. <artifactId>hadoop-minicluster</artifactId>
  166. <version>${hadoop.version}</version>
  167. <exclusions>
  168. <exclusion>
  169. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  170. <artifactId>jersey-test-framework-grizzly2</artifactId>
  171. </exclusion>
  172. </exclusions>
  173. </dependency>
  174. <dependency>
  175. <groupId>org.apache.hadoop</groupId>
  176. <artifactId>hadoop-hdfs</artifactId>
  177. <version>${hadoop.version}</version>
  178. <exclusions>
  179. <exclusion>
  180. <groupId>tomcat</groupId>
  181. <artifactId>jasper-runtime</artifactId>
  182. </exclusion>
  183. </exclusions>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.hadoop</groupId>
  187. <artifactId>hadoop-common</artifactId>
  188. <version>${hadoop.version}</version>
  189. <type>test-jar</type>
  190. </dependency>
  191. <dependency>
  192. <groupId>org.apache.hadoop</groupId>
  193. <artifactId>hadoop-yarn-server-common</artifactId>
  194. <version>${hadoop.version}</version>
  195. <exclusions>
  196. <exclusion>
  197. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  198. <artifactId>jersey-test-framework-grizzly2</artifactId>
  199. </exclusion>
  200. </exclusions>
  201. </dependency>
  202. <dependency>
  203. <groupId>org.apache.hadoop</groupId>
  204. <artifactId>hadoop-yarn-client</artifactId>
  205. <version>${hadoop.version}</version>
  206. <exclusions>
  207. <exclusion>
  208. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  209. <artifactId>jersey-test-framework-grizzly2</artifactId>
  210. </exclusion>
  211. </exclusions>
  212. </dependency>
  213. <dependency>
  214. <groupId>org.apache.hadoop</groupId>
  215. <artifactId>hadoop-yarn-common</artifactId>
  216. <version>${hadoop.version}</version>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.apache.hadoop</groupId>
  220. <artifactId>hadoop-yarn-server-web-proxy</artifactId>
  221. <version>${hadoop.version}</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.apache.hadoop</groupId>
  225. <artifactId>hadoop-mapreduce-client</artifactId>
  226. <version>${hadoop.version}</version>
  227. <type>pom</type>
  228. <exclusions>
  229. </exclusions>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.apache.avro</groupId>
  233. <artifactId>avro</artifactId>
  234. <version>${avro.version}</version>
  235. <exclusions>
  236. <exclusion>
  237. <groupId>org.mortbay.jetty</groupId>
  238. <artifactId>jetty</artifactId>
  239. </exclusion>
  240. <exclusion>
  241. <groupId>org.apache.ant</groupId>
  242. <artifactId>ant</artifactId>
  243. </exclusion>
  244. <exclusion>
  245. <groupId>org.jboss.netty</groupId>
  246. <artifactId>netty</artifactId>
  247. </exclusion>
  248. <exclusion>
  249. <groupId>org.apache.velocity</groupId>
  250. <artifactId>velocity</artifactId>
  251. </exclusion>
  252. <exclusion>
  253. <groupId>org.slf4j</groupId>
  254. <artifactId>slf4j-api</artifactId>
  255. </exclusion>
  256. <exclusion>
  257. <artifactId>paranamer-ant</artifactId>
  258. <groupId>com.thoughtworks.paranamer</groupId>
  259. </exclusion>
  260. </exclusions>
  261. </dependency>
  262. <dependency>
  263. <groupId>org.apache.bigtop.itest</groupId>
  264. <artifactId>itest-common</artifactId>
  265. <version>${bigtop.version}</version>
  266. <exclusions>
  267. <exclusion>
  268. <groupId>commons-logging</groupId>
  269. <artifactId>commons-logging</artifactId>
  270. </exclusion>
  271. </exclusions>
  272. </dependency>
  273. <dependency>
  274. <groupId>commons-configuration</groupId>
  275. <artifactId>commons-configuration</artifactId>
  276. <version>${commons-configuration.version}</version>
  277. <exclusions>
  278. <exclusion>
  279. <groupId>commons-logging</groupId>
  280. <artifactId>commons-logging</artifactId>
  281. </exclusion>
  282. <exclusion>
  283. <groupId>commons-lang</groupId>
  284. <artifactId>commons-lang</artifactId>
  285. </exclusion>
  286. <exclusion>
  287. <groupId>commons-logging</groupId>
  288. <artifactId>commons-logging</artifactId>
  289. </exclusion>
  290. </exclusions>
  291. </dependency>
  292. <dependency>
  293. <groupId>commons-lang</groupId>
  294. <artifactId>commons-lang</artifactId>
  295. <version>${commons-lang.version}</version>
  296. <exclusions>
  297. </exclusions>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.apache.httpcomponents</groupId>
  301. <artifactId>httpclient</artifactId>
  302. <version>${httpclient.version}</version>
  303. <exclusions>
  304. </exclusions>
  305. </dependency>
  306. <dependency>
  307. <groupId>com.beust</groupId>
  308. <artifactId>jcommander</artifactId>
  309. <version>${jcommander.version}</version>
  310. <exclusions>
  311. <exclusion>
  312. <groupId>org.testng</groupId>
  313. <artifactId>testng</artifactId>
  314. </exclusion>
  315. </exclusions>
  316. </dependency>
  317. </dependencies>
  318. <repositories>
  319. <repository>
  320. <id>SliderAppsLibsRepo</id>
  321. <name>SliderAppsLibsRepo</name>
  322. <url>file://${project.basedir}/lib</url>
  323. </repository>
  324. </repositories>
  325. <properties>
  326. <hadoop-version>2.2.0</hadoop-version>
  327. <nodejs.directory>${basedir}/target/nodejs</nodejs.directory>
  328. <npm.version>1.4.3</npm.version>
  329. <ui.directory>${basedir}/src/main/resources/ui</ui.directory>
  330. <ambari.version>1.3.0-SNAPSHOT</ambari.version>
  331. <hadoop.version>2.4.0</hadoop.version>
  332. <avro.version>1.7.4</avro.version>
  333. <bigtop.version>0.7.0</bigtop.version>
  334. <commons-configuration.version>1.6</commons-configuration.version>
  335. <commons-lang.version>2.6</commons-lang.version>
  336. <httpclient.version>4.2.5</httpclient.version>
  337. <jcommander.version>1.30</jcommander.version>
  338. </properties>
  339. <build>
  340. <plugins>
  341. <plugin>
  342. <groupId>org.apache.maven.plugins</groupId>
  343. <artifactId>maven-antrun-plugin</artifactId>
  344. <version>1.7</version>
  345. <executions>
  346. <execution>
  347. <id>clean</id>
  348. <phase>clean</phase>
  349. <goals>
  350. <goal>run</goal>
  351. </goals>
  352. <configuration>
  353. <target name="slider-ui-clean">
  354. <exec dir="${ui.directory}" executable="rm" failonerror="false">
  355. <arg value="-rf" />
  356. <arg value="public" />
  357. </exec>
  358. <exec dir="${ui.directory}" executable="mkdir" failonerror="false">
  359. <arg value="public" />
  360. </exec>
  361. </target>
  362. </configuration>
  363. </execution>
  364. <execution>
  365. <id>compile</id>
  366. <phase>generate-resources</phase>
  367. <goals>
  368. <goal>run</goal>
  369. </goals>
  370. <configuration>
  371. <target name="slider-ui-compile">
  372. <exec dir="${ui.directory}" executable="npm" failonerror="false">
  373. <env key="PYTHON" value="python2.6" />
  374. <arg value="install" />
  375. </exec>
  376. <exec dir="${ui.directory}" executable="brunch"
  377. failonerror="false">
  378. <arg value="build" />
  379. </exec>
  380. <exec dir="${ui.directory}" executable="gzip" failonerror="false">
  381. <arg value="public/javascripts/app.js" />
  382. <arg value="public/javascripts/vendor.js" />
  383. <arg value="public/stylesheets/app.css" />
  384. </exec>
  385. </target>
  386. </configuration>
  387. </execution>
  388. <execution>
  389. <id>test</id>
  390. <phase>test</phase>
  391. <goals>
  392. <goal>run</goal>
  393. </goals>
  394. <configuration>
  395. <target name="slider-ui-test">
  396. <!-- <exec dir="${ui.directory}" executable="brunch" failonerror="false">
  397. <arg value="test"/> </exec> -->
  398. </target>
  399. </configuration>
  400. </execution>
  401. <execution>
  402. <id>package</id>
  403. <phase>package</phase>
  404. <goals>
  405. <goal>run</goal>
  406. </goals>
  407. <configuration>
  408. <target name="slider-ui-package">
  409. <!-- <copy toDir="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}/web/">
  410. <fileset dir="${ui.directory}/../ambari-web/public"/> </copy> -->
  411. </target>
  412. </configuration>
  413. </execution>
  414. </executions>
  415. </plugin>
  416. <plugin>
  417. <groupId>org.apache.maven.plugins</groupId>
  418. <artifactId>maven-compiler-plugin</artifactId>
  419. <version>3.1</version>
  420. <configuration>
  421. <source>1.6</source>
  422. <target>1.6</target>
  423. </configuration>
  424. </plugin>
  425. <plugin>
  426. <artifactId>maven-dependency-plugin</artifactId>
  427. <executions>
  428. <execution>
  429. <phase>generate-resources</phase>
  430. <goals>
  431. <goal>copy-dependencies</goal>
  432. </goals>
  433. <configuration>
  434. <outputDirectory>${project.build.directory}/lib</outputDirectory>
  435. <includeScope>runtime</includeScope>
  436. </configuration>
  437. </execution>
  438. </executions>
  439. </plugin>
  440. </plugins>
  441. <resources>
  442. <resource>
  443. <directory>src/main/resources</directory>
  444. <filtering>true</filtering>
  445. <includes>
  446. <include>slider.properties</include>
  447. </includes>
  448. </resource>
  449. <resource>
  450. <directory>src/main/resources/</directory>
  451. <filtering>false</filtering>
  452. <includes>
  453. <include>view.xml</include>
  454. </includes>
  455. </resource>
  456. <resource>
  457. <directory>src/main/resources/ui/public</directory>
  458. <filtering>false</filtering>
  459. </resource>
  460. <resource>
  461. <targetPath>WEB-INF/lib</targetPath>
  462. <filtering>false</filtering>
  463. <directory>target/lib</directory>
  464. </resource>
  465. </resources>
  466. <pluginManagement>
  467. <plugins>
  468. <!--This plugin's configuration is used to store Eclipse m2e settings
  469. only. It has no influence on the Maven build itself. -->
  470. <plugin>
  471. <groupId>org.eclipse.m2e</groupId>
  472. <artifactId>lifecycle-mapping</artifactId>
  473. <version>1.0.0</version>
  474. <configuration>
  475. <lifecycleMappingMetadata>
  476. <pluginExecutions>
  477. <pluginExecution>
  478. <pluginExecutionFilter>
  479. <groupId>
  480. org.codehaus.mojo
  481. </groupId>
  482. <artifactId>
  483. exec-maven-plugin
  484. </artifactId>
  485. <versionRange>
  486. [1.2.1,)
  487. </versionRange>
  488. <goals>
  489. <goal>exec</goal>
  490. </goals>
  491. </pluginExecutionFilter>
  492. <action>
  493. <ignore></ignore>
  494. </action>
  495. </pluginExecution>
  496. </pluginExecutions>
  497. </lifecycleMappingMetadata>
  498. </configuration>
  499. </plugin>
  500. </plugins>
  501. </pluginManagement>
  502. </build>
  503. </project>