pom.xml 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568
  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.0-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.0-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/main/resources/ca.config</exclude>
  63. <exclude>src/main/resources/db/serial</exclude>
  64. <exclude>src/main/resources/db/index.txt</exclude>
  65. <exclude>conf/unix/ca.config</exclude>
  66. <exclude>**/*.json</exclude>
  67. <!--gitignore content-->
  68. <exclude>src/main/resources/db/newcerts/**</exclude>
  69. <!--test samples-->
  70. <exclude>src/test/resources/TestAmbaryServer.samples/**</exclude>
  71. </excludes>
  72. </configuration>
  73. </plugin>
  74. <plugin>
  75. <groupId>org.codehaus.mojo</groupId>
  76. <artifactId>rpm-maven-plugin</artifactId>
  77. <version>2.0.1</version>
  78. <executions>
  79. <execution>
  80. <!-- unbinds rpm creation from maven lifecycle -->
  81. <phase>none</phase>
  82. <goals>
  83. <goal>rpm</goal>
  84. </goals>
  85. </execution>
  86. </executions>
  87. <configuration>
  88. <!-- places rpm to specified folder -->
  89. <!--
  90. <workarea>
  91. rpm-target
  92. </workarea>
  93. -->
  94. <copyright>2012, Apache Software Foundation</copyright>
  95. <version>${project.version}</version>
  96. <group>Development</group>
  97. <description>Maven Recipe: RPM Package.</description>
  98. <requires>
  99. <require>postgresql-server &gt;= 8.1</require>
  100. <require>openssl</require>
  101. <require>${python.ver}</require>
  102. </requires>
  103. <preremoveScriptlet>
  104. <script>mv /etc/ambari-server/conf /etc/ambari-server/conf.save</script>
  105. </preremoveScriptlet>
  106. <mappings>
  107. <mapping>
  108. <directory>/usr/lib/ambari-server</directory>
  109. <dependency>
  110. </dependency>
  111. <filemode>755</filemode>
  112. <username>root</username>
  113. <groupname>root</groupname>
  114. </mapping>
  115. <mapping>
  116. <directory>/usr/lib/ambari-server/web</directory>
  117. <filemode>755</filemode>
  118. <username>root</username>
  119. <groupname>root</groupname>
  120. <sources>
  121. <source>
  122. <location>${basedir}/../ambari-web/public</location>
  123. <includes>
  124. <include>**</include>
  125. </includes>
  126. </source>
  127. </sources>
  128. </mapping>
  129. <mapping>
  130. <directory>/usr/lib/ambari-server</directory>
  131. <filemode>755</filemode>
  132. <username>root</username>
  133. <groupname>root</groupname>
  134. <sources>
  135. <source>
  136. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  137. </source>
  138. </sources>
  139. </mapping>
  140. <mapping>
  141. <directory>/usr/sbin</directory>
  142. <filemode>755</filemode>
  143. <username>root</username>
  144. <groupname>root</groupname>
  145. <sources>
  146. <source>
  147. <location>src/main/python/ambari-server.py</location>
  148. </source>
  149. </sources>
  150. </mapping>
  151. <mapping>
  152. <directory>/usr/sbin</directory>
  153. <filemode>755</filemode>
  154. <username>root</username>
  155. <groupname>root</groupname>
  156. <sources>
  157. <source>
  158. <location>sbin/ambari-server</location>
  159. </source>
  160. </sources>
  161. </mapping>
  162. <mapping>
  163. <directory>/etc/ambari-server/conf</directory>
  164. <filemode>755</filemode>
  165. <username>root</username>
  166. <groupname>root</groupname>
  167. <configuration>true</configuration>
  168. <sources>
  169. <source>
  170. <location>conf/unix/ambari.properties</location>
  171. </source>
  172. <source>
  173. <location>conf/unix/log4j.properties</location>
  174. </source>
  175. </sources>
  176. </mapping>
  177. <mapping>
  178. <directory>/var/lib/ambari-server/</directory>
  179. <filemode>700</filemode>
  180. <username>root</username>
  181. <groupname>root</groupname>
  182. <sources>
  183. <source>
  184. <location>conf/unix/ambari-env.sh</location>
  185. </source>
  186. </sources>
  187. </mapping>
  188. <mapping>
  189. <directory>/var/lib/ambari-server/keys</directory>
  190. <filemode>755</filemode>
  191. <username>root</username>
  192. <groupname>root</groupname>
  193. <sources>
  194. <source>
  195. <location>conf/unix/ca.config</location>
  196. </source>
  197. </sources>
  198. </mapping>
  199. <mapping>
  200. <directory>/var/lib/ambari-server/keys/db</directory>
  201. <filemode>755</filemode>
  202. <username>root</username>
  203. <groupname>root</groupname>
  204. <sources>
  205. <source>
  206. <location>src/main/resources/db</location>
  207. </source>
  208. </sources>
  209. </mapping>
  210. <mapping>
  211. <directory>/var/run/ambari-server/bootstrap</directory>
  212. <filemode>755</filemode>
  213. <username>root</username>
  214. <groupname>root</groupname>
  215. </mapping>
  216. <mapping>
  217. <directory>/var/log/ambari-server</directory>
  218. <filemode>755</filemode>
  219. <username>root</username>
  220. <groupname>root</groupname>
  221. </mapping>
  222. <mapping>
  223. <directory>/var/lib/ambari-server/resources</directory>
  224. <filemode>755</filemode>
  225. <username>root</username>
  226. <groupname>root</groupname>
  227. <sources>
  228. <source>
  229. <location>src/main/resources/Ambari-DDL-Postgres-CREATE.sql</location>
  230. </source>
  231. <source>
  232. <location>src/main/resources/Ambari-DDL-Postgres-DROP.sql</location>
  233. </source>
  234. </sources>
  235. </mapping>
  236. <mapping>
  237. <directory>/var/lib/ambari-server/resources/upgrade</directory>
  238. <filemode>755</filemode>
  239. <username>root</username>
  240. <groupname>root</groupname>
  241. </mapping>
  242. <mapping>
  243. <directory>/var/lib/ambari-server/resources/upgrade/ddl</directory>
  244. <filemode>755</filemode>
  245. <username>root</username>
  246. <groupname>root</groupname>
  247. <sources>
  248. <source>
  249. <location>src/main/resources/upgrade/ddl/Ambari-DDL-Postgres-UPGRADE-1.2.1.sql</location>
  250. </source>
  251. </sources>
  252. </mapping>
  253. <mapping>
  254. <directory>/var/lib/ambari-server/resources/stacks</directory>
  255. <filemode>755</filemode>
  256. <username>root</username>
  257. <groupname>root</groupname>
  258. <sources>
  259. <source>
  260. <location>src/main/resources/stacks</location>
  261. </source>
  262. </sources>
  263. </mapping>
  264. <mapping>
  265. <directory>/usr/lib/python2.6/site-packages/ambari_server</directory>
  266. <filemode>755</filemode>
  267. <username>root</username>
  268. <groupname>root</groupname>
  269. <sources>
  270. <source>
  271. <location>src/main/python/bootstrap.py</location>
  272. </source>
  273. <source>
  274. <location>src/main/python/setupAgent.py</location>
  275. </source>
  276. </sources>
  277. </mapping>
  278. <mapping>
  279. <directory>/var/run/ambari-server</directory>
  280. <filemode>755</filemode>
  281. <username>root</username>
  282. <groupname>root</groupname>
  283. </mapping>
  284. </mappings>
  285. </configuration>
  286. </plugin>
  287. <plugin>
  288. <groupId>org.codehaus.mojo</groupId>
  289. <artifactId>findbugs-maven-plugin</artifactId>
  290. <version>2.5.2</version>
  291. <configuration>
  292. <failOnError>false</failOnError>
  293. </configuration>
  294. <executions>
  295. <execution>
  296. <phase>verify</phase>
  297. <goals>
  298. <goal>check</goal>
  299. </goals>
  300. </execution>
  301. </executions>
  302. </plugin>
  303. <plugin>
  304. <groupId>org.codehaus.mojo</groupId>
  305. <artifactId>exec-maven-plugin</artifactId>
  306. <version>1.2</version>
  307. <executions>
  308. <execution>
  309. <configuration>
  310. <executable>python2.6</executable>
  311. <workingDirectory>src/test/python</workingDirectory>
  312. <arguments>
  313. <argument>unitTests.py</argument>
  314. </arguments>
  315. <environmentVariables>
  316. <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>
  317. </environmentVariables>
  318. <skip>${skipTests}</skip>
  319. </configuration>
  320. <id>python-test</id>
  321. <phase>test</phase>
  322. <goals>
  323. <goal>exec</goal>
  324. </goals>
  325. </execution>
  326. </executions>
  327. </plugin>
  328. </plugins>
  329. </build>
  330. <profiles>
  331. </profiles>
  332. <dependencies>
  333. <dependency>
  334. <groupId>commons-io</groupId>
  335. <artifactId>commons-io</artifactId>
  336. </dependency>
  337. <dependency>
  338. <groupId>com.google.inject.extensions</groupId>
  339. <artifactId>guice-assistedinject</artifactId>
  340. </dependency>
  341. <dependency>
  342. <groupId>com.google.inject.extensions</groupId>
  343. <artifactId>guice-persist</artifactId>
  344. </dependency>
  345. <dependency>
  346. <groupId>com.google.inject.extensions</groupId>
  347. <artifactId>guice-servlet</artifactId>
  348. </dependency>
  349. <dependency>
  350. <groupId>org.apache.derby</groupId>
  351. <artifactId>derby</artifactId>
  352. </dependency>
  353. <dependency>
  354. <groupId>org.springframework.security</groupId>
  355. <artifactId>spring-security-core</artifactId>
  356. </dependency>
  357. <dependency>
  358. <groupId>org.springframework.security</groupId>
  359. <artifactId>spring-security-config</artifactId>
  360. </dependency>
  361. <dependency>
  362. <groupId>org.springframework.security</groupId>
  363. <artifactId>spring-security-web</artifactId>
  364. </dependency>
  365. <dependency>
  366. <groupId>org.springframework.security</groupId>
  367. <artifactId>spring-security-ldap</artifactId>
  368. </dependency>
  369. <dependency>
  370. <groupId>org.springframework.ldap</groupId>
  371. <artifactId>spring-ldap-core</artifactId>
  372. </dependency>
  373. <dependency>
  374. <groupId>org.apache.directory.server</groupId>
  375. <artifactId>apacheds-core</artifactId>
  376. </dependency>
  377. <dependency>
  378. <groupId>org.apache.directory.server</groupId>
  379. <artifactId>apacheds-protocol-ldap</artifactId>
  380. </dependency>
  381. <dependency>
  382. <groupId>org.apache.directory.shared</groupId>
  383. <artifactId>shared-ldap</artifactId>
  384. </dependency>
  385. <dependency>
  386. <groupId>org.slf4j</groupId>
  387. <artifactId>slf4j-api</artifactId>
  388. </dependency>
  389. <dependency>
  390. <groupId>org.slf4j</groupId>
  391. <artifactId>slf4j-log4j12</artifactId>
  392. </dependency>
  393. <dependency>
  394. <groupId>log4j</groupId>
  395. <artifactId>log4j</artifactId>
  396. </dependency>
  397. <dependency>
  398. <groupId>org.eclipse.persistence</groupId>
  399. <artifactId>eclipselink</artifactId>
  400. </dependency>
  401. <dependency>
  402. <groupId>org.mockito</groupId>
  403. <artifactId>mockito-core</artifactId>
  404. <scope>test</scope>
  405. </dependency>
  406. <dependency>
  407. <groupId>org.eclipse.jetty</groupId>
  408. <artifactId>jetty-security</artifactId>
  409. </dependency>
  410. <dependency>
  411. <groupId>org.eclipse.jetty</groupId>
  412. <artifactId>jetty-servlet</artifactId>
  413. </dependency>
  414. <dependency>
  415. <groupId>org.eclipse.jetty</groupId>
  416. <artifactId>jetty-webapp</artifactId>
  417. </dependency>
  418. <dependency>
  419. <groupId>org.eclipse.jetty</groupId>
  420. <artifactId>jetty-server</artifactId>
  421. </dependency>
  422. <dependency>
  423. <groupId>commons-logging</groupId>
  424. <artifactId>commons-logging</artifactId>
  425. </dependency>
  426. <dependency>
  427. <groupId>commons-codec</groupId>
  428. <artifactId>commons-codec</artifactId>
  429. </dependency>
  430. <dependency>
  431. <groupId>commons-lang</groupId>
  432. <artifactId>commons-lang</artifactId>
  433. </dependency>
  434. <dependency>
  435. <groupId>commons-httpclient</groupId>
  436. <artifactId>commons-httpclient</artifactId>
  437. </dependency>
  438. <dependency>
  439. <groupId>javax.servlet</groupId>
  440. <artifactId>servlet-api</artifactId>
  441. </dependency>
  442. <dependency>
  443. <groupId>com.sun.jersey</groupId>
  444. <artifactId>jersey-json</artifactId>
  445. <exclusions>
  446. <exclusion>
  447. <groupId>org.codehaus.jackson</groupId>
  448. <artifactId>jackson-xc</artifactId>
  449. </exclusion>
  450. <exclusion>
  451. <groupId>org.codehaus.jettison</groupId>
  452. <artifactId>jettison</artifactId>
  453. </exclusion>
  454. <exclusion>
  455. <groupId>org.codehaus.jackson</groupId>
  456. <artifactId>jackson-mapper-asl</artifactId>
  457. </exclusion>
  458. </exclusions>
  459. </dependency>
  460. <dependency>
  461. <groupId>com.sun.jersey</groupId>
  462. <artifactId>jersey-server</artifactId>
  463. </dependency>
  464. <dependency>
  465. <groupId>com.sun.jersey</groupId>
  466. <artifactId>jersey-client</artifactId>
  467. </dependency>
  468. <dependency>
  469. <groupId>com.sun.jersey.contribs</groupId>
  470. <artifactId>jersey-multipart</artifactId>
  471. </dependency>
  472. <dependency>
  473. <groupId>com.sun.jersey.contribs</groupId>
  474. <artifactId>jersey-guice</artifactId>
  475. </dependency>
  476. <dependency>
  477. <groupId>org.codehaus.jackson</groupId>
  478. <artifactId>jackson-mapper-asl</artifactId>
  479. <version>1.9.2</version>
  480. </dependency>
  481. <dependency>
  482. <groupId>org.codehaus.jackson</groupId>
  483. <artifactId>jackson-core-asl</artifactId>
  484. </dependency>
  485. <dependency>
  486. <groupId>org.codehaus.jackson</groupId>
  487. <artifactId>jackson-jaxrs</artifactId>
  488. </dependency>
  489. <dependency>
  490. <groupId>org.codehaus.jackson</groupId>
  491. <artifactId>jackson-xc</artifactId>
  492. </dependency>
  493. <dependency>
  494. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  495. <artifactId>jersey-test-framework-core</artifactId>
  496. <scope>test</scope>
  497. </dependency>
  498. <dependency>
  499. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  500. <artifactId>jersey-test-framework-grizzly2</artifactId>
  501. <scope>test</scope>
  502. </dependency>
  503. <dependency>
  504. <groupId>org.codehaus.jettison</groupId>
  505. <artifactId>jettison</artifactId>
  506. <scope>test</scope>
  507. </dependency>
  508. <dependency>
  509. <groupId>junit</groupId>
  510. <artifactId>junit</artifactId>
  511. <scope>test</scope>
  512. </dependency>
  513. <dependency>
  514. <groupId>org.easymock</groupId>
  515. <artifactId>easymock</artifactId>
  516. <version>3.1</version>
  517. <scope>test</scope>
  518. </dependency>
  519. <dependency>
  520. <groupId>org.objenesis</groupId>
  521. <artifactId>objenesis-tck</artifactId>
  522. <version>1.2</version>
  523. </dependency>
  524. <dependency>
  525. <groupId>cglib</groupId>
  526. <artifactId>cglib</artifactId>
  527. <version>2.2.2</version>
  528. </dependency>
  529. <dependency>
  530. <groupId>asm</groupId>
  531. <artifactId>asm</artifactId>
  532. <version>3.3.1</version>
  533. </dependency>
  534. <dependency>
  535. <groupId>org.xerial</groupId>
  536. <artifactId>sqlite-jdbc</artifactId>
  537. <version>3.7.2</version>
  538. </dependency>
  539. <dependency>
  540. <groupId>com.google.inject</groupId>
  541. <artifactId>guice</artifactId>
  542. <version>3.0</version>
  543. </dependency>
  544. <dependency>
  545. <groupId>com.google.code.gson</groupId>
  546. <artifactId>gson</artifactId>
  547. <version>2.2.2</version>
  548. </dependency>
  549. <dependency>
  550. <groupId>postgresql</groupId>
  551. <artifactId>postgresql</artifactId>
  552. <version>9.1-901.jdbc4</version>
  553. </dependency>
  554. </dependencies>
  555. <!--<reporting>
  556. <plugins>
  557. <plugin>
  558. <groupId>org.codehaus.mojo</groupId>
  559. <artifactId>findbugs-maven-plugin</artifactId>
  560. <version>2.5.2</version>
  561. </plugin>
  562. </plugins>
  563. </reporting>-->
  564. </project>