pom.xml 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  14. <parent>
  15. <groupId>org.apache.ambari</groupId>
  16. <artifactId>ambari-project</artifactId>
  17. <version>1.2.2-SNAPSHOT</version>
  18. <relativePath>../ambari-project</relativePath>
  19. </parent>
  20. <modelVersion>4.0.0</modelVersion>
  21. <groupId>org.apache.ambari</groupId>
  22. <artifactId>ambari-server</artifactId>
  23. <packaging>jar</packaging>
  24. <name>Ambari Server</name>
  25. <version>1.2.2-SNAPSHOT</version>
  26. <description>Ambari Server</description>
  27. <properties>
  28. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  29. <python.ver>python &gt;= 2.6</python.ver>
  30. </properties>
  31. <build>
  32. <plugins>
  33. <plugin>
  34. <artifactId>maven-compiler-plugin</artifactId>
  35. <version>3.0</version>
  36. </plugin>
  37. <plugin>
  38. <artifactId>maven-assembly-plugin</artifactId>
  39. <configuration>
  40. <descriptors>
  41. <descriptor>src/main/assemblies/server.xml</descriptor>
  42. </descriptors>
  43. </configuration>
  44. <executions>
  45. <execution>
  46. <id>build-tarball</id>
  47. <phase>package</phase>
  48. <goals>
  49. <goal>single</goal>
  50. </goals>
  51. </execution>
  52. </executions>
  53. </plugin>
  54. <plugin>
  55. <groupId>org.apache.rat</groupId>
  56. <artifactId>apache-rat-plugin</artifactId>
  57. <configuration>
  58. <excludes>
  59. <exclude>pass.txt</exclude>
  60. <exclude>derby.log</exclude>
  61. <exclude>src/test/resources/users.ldif</exclude>
  62. <exclude>src/test/resources/gsInstaller-hosts.txt</exclude>
  63. <exclude>src/test/resources/temporal_ganglia_data.txt</exclude>
  64. <exclude>src/test/resources/users.ldif</exclude>
  65. <exclude>src/main/resources/ca.config</exclude>
  66. <exclude>src/main/resources/db/serial</exclude>
  67. <exclude>src/main/resources/db/index.txt</exclude>
  68. <exclude>conf/unix/ca.config</exclude>
  69. <exclude>**/*.json</exclude>
  70. <!--gitignore content-->
  71. <exclude>src/main/resources/db/newcerts/**</exclude>
  72. <!--test samples-->
  73. <exclude>src/test/resources/TestAmbaryServer.samples/**</exclude>
  74. </excludes>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.codehaus.mojo</groupId>
  79. <artifactId>rpm-maven-plugin</artifactId>
  80. <version>2.0.1</version>
  81. <executions>
  82. <execution>
  83. <!-- unbinds rpm creation from maven lifecycle -->
  84. <phase>none</phase>
  85. <goals>
  86. <goal>rpm</goal>
  87. </goals>
  88. </execution>
  89. </executions>
  90. <configuration>
  91. <!-- places rpm to specified folder -->
  92. <!--
  93. <workarea>
  94. rpm-target
  95. </workarea>
  96. -->
  97. <copyright>2012, Apache Software Foundation</copyright>
  98. <version>${project.version}</version>
  99. <group>Development</group>
  100. <description>Maven Recipe: RPM Package.</description>
  101. <requires>
  102. <require>postgresql-server &gt;= 8.1</require>
  103. <require>openssl</require>
  104. <require>${python.ver}</require>
  105. </requires>
  106. <preremoveScriptlet>
  107. <script>mv /etc/ambari-server/conf /etc/ambari-server/conf.save</script>
  108. </preremoveScriptlet>
  109. <mappings>
  110. <mapping>
  111. <directory>/usr/lib/ambari-server</directory>
  112. <dependency>
  113. </dependency>
  114. <filemode>755</filemode>
  115. <username>root</username>
  116. <groupname>root</groupname>
  117. </mapping>
  118. <mapping>
  119. <directory>/usr/lib/ambari-server/web</directory>
  120. <filemode>755</filemode>
  121. <username>root</username>
  122. <groupname>root</groupname>
  123. <sources>
  124. <source>
  125. <location>${basedir}/../ambari-web/public</location>
  126. <includes>
  127. <include>**</include>
  128. </includes>
  129. </source>
  130. </sources>
  131. </mapping>
  132. <mapping>
  133. <directory>/usr/lib/ambari-server</directory>
  134. <filemode>755</filemode>
  135. <username>root</username>
  136. <groupname>root</groupname>
  137. <sources>
  138. <source>
  139. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  140. </source>
  141. </sources>
  142. </mapping>
  143. <mapping>
  144. <directory>/usr/sbin</directory>
  145. <filemode>755</filemode>
  146. <username>root</username>
  147. <groupname>root</groupname>
  148. <sources>
  149. <source>
  150. <location>src/main/python/ambari-server.py</location>
  151. </source>
  152. </sources>
  153. </mapping>
  154. <mapping>
  155. <directory>/usr/sbin</directory>
  156. <filemode>755</filemode>
  157. <username>root</username>
  158. <groupname>root</groupname>
  159. <sources>
  160. <source>
  161. <location>sbin/ambari-server</location>
  162. </source>
  163. </sources>
  164. </mapping>
  165. <mapping>
  166. <directory>/etc/ambari-server/conf</directory>
  167. <filemode>755</filemode>
  168. <username>root</username>
  169. <groupname>root</groupname>
  170. <configuration>true</configuration>
  171. <sources>
  172. <source>
  173. <location>conf/unix/ambari.properties</location>
  174. </source>
  175. <source>
  176. <location>conf/unix/log4j.properties</location>
  177. </source>
  178. </sources>
  179. </mapping>
  180. <mapping>
  181. <directory>/var/lib/ambari-server/</directory>
  182. <filemode>700</filemode>
  183. <username>root</username>
  184. <groupname>root</groupname>
  185. <sources>
  186. <source>
  187. <location>conf/unix/ambari-env.sh</location>
  188. </source>
  189. </sources>
  190. </mapping>
  191. <mapping>
  192. <directory>/var/lib/ambari-server/keys</directory>
  193. <filemode>755</filemode>
  194. <username>root</username>
  195. <groupname>root</groupname>
  196. <sources>
  197. <source>
  198. <location>conf/unix/ca.config</location>
  199. </source>
  200. </sources>
  201. </mapping>
  202. <mapping>
  203. <directory>/var/lib/ambari-server/keys/db</directory>
  204. <filemode>755</filemode>
  205. <username>root</username>
  206. <groupname>root</groupname>
  207. <sources>
  208. <source>
  209. <location>src/main/resources/db</location>
  210. </source>
  211. </sources>
  212. </mapping>
  213. <mapping>
  214. <directory>/var/run/ambari-server/bootstrap</directory>
  215. <filemode>755</filemode>
  216. <username>root</username>
  217. <groupname>root</groupname>
  218. </mapping>
  219. <mapping>
  220. <directory>/var/log/ambari-server</directory>
  221. <filemode>755</filemode>
  222. <username>root</username>
  223. <groupname>root</groupname>
  224. </mapping>
  225. <mapping>
  226. <directory>/var/lib/ambari-server/resources</directory>
  227. <filemode>755</filemode>
  228. <username>root</username>
  229. <groupname>root</groupname>
  230. <sources>
  231. <source>
  232. <location>src/main/resources/Ambari-DDL-Postgres-CREATE.sql</location>
  233. </source>
  234. <source>
  235. <location>src/main/resources/Ambari-DDL-Postgres-DROP.sql</location>
  236. </source>
  237. </sources>
  238. </mapping>
  239. <mapping>
  240. <directory>/var/lib/ambari-server/resources/upgrade</directory>
  241. <filemode>755</filemode>
  242. <username>root</username>
  243. <groupname>root</groupname>
  244. </mapping>
  245. <mapping>
  246. <directory>/var/lib/ambari-server/resources/upgrade/ddl</directory>
  247. <filemode>755</filemode>
  248. <username>root</username>
  249. <groupname>root</groupname>
  250. <sources>
  251. <source>
  252. <location>src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.2.1.sql</location>
  253. </source>
  254. </sources>
  255. </mapping>
  256. <mapping>
  257. <directory>/var/lib/ambari-server/resources/upgrade/dml</directory>
  258. <filemode>755</filemode>
  259. <username>root</username>
  260. <groupname>root</groupname>
  261. <sources>
  262. <source>
  263. <location>src/main/resources/upgrade/dml/Ambari-DML-Postgres-UPGRADE_STACK.sql</location>
  264. </source>
  265. </sources>
  266. </mapping>
  267. <mapping>
  268. <directory>/var/lib/ambari-server/resources/stacks</directory>
  269. <filemode>755</filemode>
  270. <username>root</username>
  271. <groupname>root</groupname>
  272. <sources>
  273. <source>
  274. <location>src/main/resources/stacks</location>
  275. </source>
  276. </sources>
  277. </mapping>
  278. <mapping>
  279. <directory>/usr/lib/python2.6/site-packages/ambari_server</directory>
  280. <filemode>755</filemode>
  281. <username>root</username>
  282. <groupname>root</groupname>
  283. <sources>
  284. <source>
  285. <location>src/main/python/bootstrap.py</location>
  286. </source>
  287. <source>
  288. <location>src/main/python/setupAgent.py</location>
  289. </source>
  290. </sources>
  291. </mapping>
  292. <mapping>
  293. <directory>/var/run/ambari-server</directory>
  294. <filemode>755</filemode>
  295. <username>root</username>
  296. <groupname>root</groupname>
  297. </mapping>
  298. <mapping>
  299. <directory>/etc/rc.d/init.d</directory>
  300. <filemode>755</filemode>
  301. <username>root</username>
  302. <groupname>root</groupname>
  303. <sources>
  304. <source>
  305. <location>etc/init.d/ambari-server</location>
  306. </source>
  307. </sources>
  308. </mapping>
  309. </mappings>
  310. </configuration>
  311. </plugin>
  312. <plugin>
  313. <groupId>org.codehaus.mojo</groupId>
  314. <artifactId>findbugs-maven-plugin</artifactId>
  315. <version>2.5.2</version>
  316. <configuration>
  317. <failOnError>false</failOnError>
  318. </configuration>
  319. <executions>
  320. <execution>
  321. <phase>verify</phase>
  322. <goals>
  323. <goal>check</goal>
  324. </goals>
  325. </execution>
  326. </executions>
  327. </plugin>
  328. <plugin>
  329. <groupId>org.codehaus.mojo</groupId>
  330. <artifactId>exec-maven-plugin</artifactId>
  331. <version>1.2</version>
  332. <executions>
  333. <execution>
  334. <configuration>
  335. <executable>python2.6</executable>
  336. <workingDirectory>src/test/python</workingDirectory>
  337. <arguments>
  338. <argument>unitTests.py</argument>
  339. </arguments>
  340. <environmentVariables>
  341. <PYTHONPATH>${project.basedir}/../ambari-common/src/test/python:${project.basedir}/src/main/python:${project.basedir}/src/main/python/ambari-server-state:${project.basedir}/src/test/python:$PYTHONPATH</PYTHONPATH>
  342. </environmentVariables>
  343. <skip>${skipTests}</skip>
  344. </configuration>
  345. <id>python-test</id>
  346. <phase>test</phase>
  347. <goals>
  348. <goal>exec</goal>
  349. </goals>
  350. </execution>
  351. </executions>
  352. </plugin>
  353. </plugins>
  354. </build>
  355. <profiles>
  356. </profiles>
  357. <dependencies>
  358. <dependency>
  359. <groupId>commons-io</groupId>
  360. <artifactId>commons-io</artifactId>
  361. </dependency>
  362. <dependency>
  363. <groupId>com.google.inject.extensions</groupId>
  364. <artifactId>guice-assistedinject</artifactId>
  365. </dependency>
  366. <dependency>
  367. <groupId>com.google.inject.extensions</groupId>
  368. <artifactId>guice-persist</artifactId>
  369. </dependency>
  370. <dependency>
  371. <groupId>com.google.inject.extensions</groupId>
  372. <artifactId>guice-servlet</artifactId>
  373. </dependency>
  374. <dependency>
  375. <groupId>org.apache.derby</groupId>
  376. <artifactId>derby</artifactId>
  377. </dependency>
  378. <dependency>
  379. <groupId>org.springframework.security</groupId>
  380. <artifactId>spring-security-core</artifactId>
  381. </dependency>
  382. <dependency>
  383. <groupId>org.springframework.security</groupId>
  384. <artifactId>spring-security-config</artifactId>
  385. </dependency>
  386. <dependency>
  387. <groupId>org.springframework.security</groupId>
  388. <artifactId>spring-security-web</artifactId>
  389. </dependency>
  390. <dependency>
  391. <groupId>org.springframework.security</groupId>
  392. <artifactId>spring-security-ldap</artifactId>
  393. </dependency>
  394. <dependency>
  395. <groupId>org.springframework.ldap</groupId>
  396. <artifactId>spring-ldap-core</artifactId>
  397. </dependency>
  398. <dependency>
  399. <groupId>org.apache.directory.server</groupId>
  400. <artifactId>apacheds-core</artifactId>
  401. </dependency>
  402. <dependency>
  403. <groupId>org.apache.directory.server</groupId>
  404. <artifactId>apacheds-protocol-ldap</artifactId>
  405. </dependency>
  406. <dependency>
  407. <groupId>org.apache.directory.shared</groupId>
  408. <artifactId>shared-ldap</artifactId>
  409. </dependency>
  410. <dependency>
  411. <groupId>org.slf4j</groupId>
  412. <artifactId>slf4j-api</artifactId>
  413. </dependency>
  414. <dependency>
  415. <groupId>org.slf4j</groupId>
  416. <artifactId>slf4j-log4j12</artifactId>
  417. </dependency>
  418. <dependency>
  419. <groupId>log4j</groupId>
  420. <artifactId>log4j</artifactId>
  421. </dependency>
  422. <dependency>
  423. <groupId>org.eclipse.persistence</groupId>
  424. <artifactId>eclipselink</artifactId>
  425. </dependency>
  426. <dependency>
  427. <groupId>org.mockito</groupId>
  428. <artifactId>mockito-core</artifactId>
  429. <scope>test</scope>
  430. </dependency>
  431. <dependency>
  432. <groupId>org.eclipse.jetty</groupId>
  433. <artifactId>jetty-security</artifactId>
  434. </dependency>
  435. <dependency>
  436. <groupId>org.eclipse.jetty</groupId>
  437. <artifactId>jetty-servlet</artifactId>
  438. </dependency>
  439. <dependency>
  440. <groupId>org.eclipse.jetty</groupId>
  441. <artifactId>jetty-webapp</artifactId>
  442. </dependency>
  443. <dependency>
  444. <groupId>org.eclipse.jetty</groupId>
  445. <artifactId>jetty-server</artifactId>
  446. </dependency>
  447. <dependency>
  448. <groupId>commons-logging</groupId>
  449. <artifactId>commons-logging</artifactId>
  450. </dependency>
  451. <dependency>
  452. <groupId>commons-codec</groupId>
  453. <artifactId>commons-codec</artifactId>
  454. </dependency>
  455. <dependency>
  456. <groupId>commons-lang</groupId>
  457. <artifactId>commons-lang</artifactId>
  458. </dependency>
  459. <dependency>
  460. <groupId>commons-httpclient</groupId>
  461. <artifactId>commons-httpclient</artifactId>
  462. </dependency>
  463. <dependency>
  464. <groupId>javax.servlet</groupId>
  465. <artifactId>servlet-api</artifactId>
  466. </dependency>
  467. <dependency>
  468. <groupId>com.sun.jersey</groupId>
  469. <artifactId>jersey-json</artifactId>
  470. <exclusions>
  471. <exclusion>
  472. <groupId>org.codehaus.jackson</groupId>
  473. <artifactId>jackson-xc</artifactId>
  474. </exclusion>
  475. <exclusion>
  476. <groupId>org.codehaus.jettison</groupId>
  477. <artifactId>jettison</artifactId>
  478. </exclusion>
  479. <exclusion>
  480. <groupId>org.codehaus.jackson</groupId>
  481. <artifactId>jackson-mapper-asl</artifactId>
  482. </exclusion>
  483. </exclusions>
  484. </dependency>
  485. <dependency>
  486. <groupId>com.sun.jersey</groupId>
  487. <artifactId>jersey-server</artifactId>
  488. </dependency>
  489. <dependency>
  490. <groupId>com.sun.jersey</groupId>
  491. <artifactId>jersey-client</artifactId>
  492. </dependency>
  493. <dependency>
  494. <groupId>com.sun.jersey.contribs</groupId>
  495. <artifactId>jersey-multipart</artifactId>
  496. </dependency>
  497. <dependency>
  498. <groupId>com.sun.jersey.contribs</groupId>
  499. <artifactId>jersey-guice</artifactId>
  500. </dependency>
  501. <dependency>
  502. <groupId>org.codehaus.jackson</groupId>
  503. <artifactId>jackson-mapper-asl</artifactId>
  504. <version>1.9.2</version>
  505. </dependency>
  506. <dependency>
  507. <groupId>org.codehaus.jackson</groupId>
  508. <artifactId>jackson-core-asl</artifactId>
  509. </dependency>
  510. <dependency>
  511. <groupId>org.codehaus.jackson</groupId>
  512. <artifactId>jackson-jaxrs</artifactId>
  513. </dependency>
  514. <dependency>
  515. <groupId>org.codehaus.jackson</groupId>
  516. <artifactId>jackson-xc</artifactId>
  517. </dependency>
  518. <dependency>
  519. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  520. <artifactId>jersey-test-framework-core</artifactId>
  521. <scope>test</scope>
  522. </dependency>
  523. <dependency>
  524. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  525. <artifactId>jersey-test-framework-grizzly2</artifactId>
  526. <scope>test</scope>
  527. </dependency>
  528. <dependency>
  529. <groupId>org.codehaus.jettison</groupId>
  530. <artifactId>jettison</artifactId>
  531. <scope>test</scope>
  532. </dependency>
  533. <dependency>
  534. <groupId>junit</groupId>
  535. <artifactId>junit</artifactId>
  536. <scope>test</scope>
  537. </dependency>
  538. <dependency>
  539. <groupId>org.easymock</groupId>
  540. <artifactId>easymock</artifactId>
  541. <version>3.1</version>
  542. <scope>test</scope>
  543. </dependency>
  544. <dependency>
  545. <groupId>org.objenesis</groupId>
  546. <artifactId>objenesis-tck</artifactId>
  547. <version>1.2</version>
  548. </dependency>
  549. <dependency>
  550. <groupId>cglib</groupId>
  551. <artifactId>cglib</artifactId>
  552. <version>2.2.2</version>
  553. </dependency>
  554. <dependency>
  555. <groupId>asm</groupId>
  556. <artifactId>asm</artifactId>
  557. <version>3.3.1</version>
  558. </dependency>
  559. <dependency>
  560. <groupId>org.xerial</groupId>
  561. <artifactId>sqlite-jdbc</artifactId>
  562. <version>3.7.2</version>
  563. </dependency>
  564. <dependency>
  565. <groupId>com.google.inject</groupId>
  566. <artifactId>guice</artifactId>
  567. <version>3.0</version>
  568. </dependency>
  569. <dependency>
  570. <groupId>com.google.code.gson</groupId>
  571. <artifactId>gson</artifactId>
  572. <version>2.2.2</version>
  573. </dependency>
  574. <dependency>
  575. <groupId>postgresql</groupId>
  576. <artifactId>postgresql</artifactId>
  577. <version>9.1-901.jdbc4</version>
  578. </dependency>
  579. </dependencies>
  580. <!--<reporting>
  581. <plugins>
  582. <plugin>
  583. <groupId>org.codehaus.mojo</groupId>
  584. <artifactId>findbugs-maven-plugin</artifactId>
  585. <version>2.5.2</version>
  586. </plugin>
  587. </plugins>
  588. </reporting>-->
  589. </project>