pom.xml 18 KB

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