pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516
  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. <version>0.8</version>
  53. <configuration>
  54. <numUnapprovedLicenses>8</numUnapprovedLicenses>
  55. <excludes>
  56. <exclude>pass.txt</exclude>
  57. <exclude>derby.log</exclude>
  58. <exclude>src/test/resources/users.ldif</exclude>
  59. <exclude>src/main/resources/ca.config</exclude>
  60. <exclude>src/main/resources/db/serial</exclude>
  61. <exclude>src/main/resources/db/index.txt</exclude>
  62. <exclude>conf/unix/ca.config</exclude>
  63. </excludes>
  64. <includes>
  65. <include>pom.xml</include>
  66. </includes>
  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. <mappings>
  99. <mapping>
  100. <directory>/usr/lib/ambari-server</directory>
  101. <dependency>
  102. </dependency>
  103. <filemode>755</filemode>
  104. <username>root</username>
  105. <groupname>root</groupname>
  106. </mapping>
  107. <mapping>
  108. <directory>/usr/lib/ambari-server/web</directory>
  109. <filemode>755</filemode>
  110. <username>root</username>
  111. <groupname>root</groupname>
  112. <sources>
  113. <source>
  114. <location>${basedir}/../ambari-web/public</location>
  115. <includes>
  116. <include>**</include>
  117. </includes>
  118. </source>
  119. </sources>
  120. </mapping>
  121. <mapping>
  122. <directory>/usr/lib/ambari-server</directory>
  123. <filemode>755</filemode>
  124. <username>root</username>
  125. <groupname>root</groupname>
  126. <sources>
  127. <source>
  128. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  129. </source>
  130. </sources>
  131. </mapping>
  132. <mapping>
  133. <directory>/usr/sbin</directory>
  134. <filemode>755</filemode>
  135. <username>root</username>
  136. <groupname>root</groupname>
  137. <sources>
  138. <source>
  139. <location>src/main/python/ambari-server.py</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>sbin/ambari-server</location>
  151. </source>
  152. </sources>
  153. </mapping>
  154. <mapping>
  155. <directory>/etc/ambari-server/conf</directory>
  156. <filemode>755</filemode>
  157. <username>root</username>
  158. <groupname>root</groupname>
  159. <configuration>true</configuration>
  160. <sources>
  161. <source>
  162. <location>conf/unix/ambari.properties</location>
  163. </source>
  164. <source>
  165. <location>conf/unix/log4j.properties</location>
  166. </source>
  167. </sources>
  168. </mapping>
  169. <mapping>
  170. <directory>/var/lib/ambari-server/</directory>
  171. <filemode>700</filemode>
  172. <username>root</username>
  173. <groupname>root</groupname>
  174. <sources>
  175. <source>
  176. <location>conf/unix/ambari-env.sh</location>
  177. </source>
  178. </sources>
  179. </mapping>
  180. <mapping>
  181. <directory>/var/lib/ambari-server/keys</directory>
  182. <filemode>755</filemode>
  183. <username>root</username>
  184. <groupname>root</groupname>
  185. <sources>
  186. <source>
  187. <location>conf/unix/ca.config</location>
  188. </source>
  189. </sources>
  190. </mapping>
  191. <mapping>
  192. <directory>/var/lib/ambari-server/keys/db</directory>
  193. <filemode>755</filemode>
  194. <username>root</username>
  195. <groupname>root</groupname>
  196. <sources>
  197. <source>
  198. <location>src/main/resources/db</location>
  199. </source>
  200. </sources>
  201. </mapping>
  202. <mapping>
  203. <directory>/var/run/ambari-server/bootstrap</directory>
  204. <filemode>755</filemode>
  205. <username>root</username>
  206. <groupname>root</groupname>
  207. </mapping>
  208. <mapping>
  209. <directory>/var/log/ambari-server</directory>
  210. <filemode>755</filemode>
  211. <username>root</username>
  212. <groupname>root</groupname>
  213. </mapping>
  214. <mapping>
  215. <directory>/var/lib/ambari-server/resources</directory>
  216. <filemode>755</filemode>
  217. <username>root</username>
  218. <groupname>root</groupname>
  219. <sources>
  220. <source>
  221. <location>src/main/resources/Ambari-DDL-Postgres-CREATE.sql</location>
  222. </source>
  223. <source>
  224. <location>src/main/resources/Ambari-DDL-Postgres-DROP.sql</location>
  225. </source>
  226. </sources>
  227. </mapping>
  228. <mapping>
  229. <directory>/var/lib/ambari-server/resources/stacks</directory>
  230. <filemode>755</filemode>
  231. <username>root</username>
  232. <groupname>root</groupname>
  233. <sources>
  234. <source>
  235. <location>src/main/resources/stacks</location>
  236. </source>
  237. </sources>
  238. </mapping>
  239. <mapping>
  240. <directory>/usr/lib/python2.6/site-packages/ambari_server</directory>
  241. <filemode>755</filemode>
  242. <username>root</username>
  243. <groupname>root</groupname>
  244. <sources>
  245. <source>
  246. <location>src/main/python/bootstrap.py</location>
  247. </source>
  248. <source>
  249. <location>src/main/python/setupAgent.py</location>
  250. </source>
  251. </sources>
  252. </mapping>
  253. <mapping>
  254. <directory>/var/run/ambari-server</directory>
  255. <filemode>755</filemode>
  256. <username>root</username>
  257. <groupname>root</groupname>
  258. </mapping>
  259. </mappings>
  260. </configuration>
  261. </plugin>
  262. <plugin>
  263. <groupId>org.codehaus.mojo</groupId>
  264. <artifactId>findbugs-maven-plugin</artifactId>
  265. <version>2.5.2</version>
  266. <configuration>
  267. <failOnError>false</failOnError>
  268. </configuration>
  269. <executions>
  270. <execution>
  271. <phase>verify</phase>
  272. <goals>
  273. <goal>check</goal>
  274. </goals>
  275. </execution>
  276. </executions>
  277. </plugin>
  278. </plugins>
  279. </build>
  280. <profiles>
  281. </profiles>
  282. <dependencies>
  283. <dependency>
  284. <groupId>commons-io</groupId>
  285. <artifactId>commons-io</artifactId>
  286. </dependency>
  287. <dependency>
  288. <groupId>com.google.inject.extensions</groupId>
  289. <artifactId>guice-assistedinject</artifactId>
  290. </dependency>
  291. <dependency>
  292. <groupId>com.google.inject.extensions</groupId>
  293. <artifactId>guice-persist</artifactId>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.google.inject.extensions</groupId>
  297. <artifactId>guice-servlet</artifactId>
  298. </dependency>
  299. <dependency>
  300. <groupId>org.apache.derby</groupId>
  301. <artifactId>derby</artifactId>
  302. </dependency>
  303. <dependency>
  304. <groupId>org.springframework.security</groupId>
  305. <artifactId>spring-security-core</artifactId>
  306. </dependency>
  307. <dependency>
  308. <groupId>org.springframework.security</groupId>
  309. <artifactId>spring-security-config</artifactId>
  310. </dependency>
  311. <dependency>
  312. <groupId>org.springframework.security</groupId>
  313. <artifactId>spring-security-web</artifactId>
  314. </dependency>
  315. <dependency>
  316. <groupId>org.springframework.security</groupId>
  317. <artifactId>spring-security-ldap</artifactId>
  318. </dependency>
  319. <dependency>
  320. <groupId>org.springframework.ldap</groupId>
  321. <artifactId>spring-ldap-core</artifactId>
  322. </dependency>
  323. <dependency>
  324. <groupId>org.apache.directory.server</groupId>
  325. <artifactId>apacheds-core</artifactId>
  326. </dependency>
  327. <dependency>
  328. <groupId>org.apache.directory.server</groupId>
  329. <artifactId>apacheds-protocol-ldap</artifactId>
  330. </dependency>
  331. <dependency>
  332. <groupId>org.apache.directory.shared</groupId>
  333. <artifactId>shared-ldap</artifactId>
  334. </dependency>
  335. <dependency>
  336. <groupId>org.slf4j</groupId>
  337. <artifactId>slf4j-api</artifactId>
  338. </dependency>
  339. <dependency>
  340. <groupId>org.slf4j</groupId>
  341. <artifactId>slf4j-log4j12</artifactId>
  342. </dependency>
  343. <dependency>
  344. <groupId>log4j</groupId>
  345. <artifactId>log4j</artifactId>
  346. </dependency>
  347. <dependency>
  348. <groupId>org.eclipse.persistence</groupId>
  349. <artifactId>eclipselink</artifactId>
  350. </dependency>
  351. <dependency>
  352. <groupId>org.mockito</groupId>
  353. <artifactId>mockito-core</artifactId>
  354. <scope>test</scope>
  355. </dependency>
  356. <dependency>
  357. <groupId>org.eclipse.jetty</groupId>
  358. <artifactId>jetty-security</artifactId>
  359. </dependency>
  360. <dependency>
  361. <groupId>org.eclipse.jetty</groupId>
  362. <artifactId>jetty-servlet</artifactId>
  363. </dependency>
  364. <dependency>
  365. <groupId>org.eclipse.jetty</groupId>
  366. <artifactId>jetty-webapp</artifactId>
  367. </dependency>
  368. <dependency>
  369. <groupId>org.eclipse.jetty</groupId>
  370. <artifactId>jetty-server</artifactId>
  371. </dependency>
  372. <dependency>
  373. <groupId>commons-logging</groupId>
  374. <artifactId>commons-logging</artifactId>
  375. </dependency>
  376. <dependency>
  377. <groupId>commons-codec</groupId>
  378. <artifactId>commons-codec</artifactId>
  379. </dependency>
  380. <dependency>
  381. <groupId>commons-lang</groupId>
  382. <artifactId>commons-lang</artifactId>
  383. </dependency>
  384. <dependency>
  385. <groupId>commons-httpclient</groupId>
  386. <artifactId>commons-httpclient</artifactId>
  387. </dependency>
  388. <dependency>
  389. <groupId>javax.servlet</groupId>
  390. <artifactId>servlet-api</artifactId>
  391. </dependency>
  392. <dependency>
  393. <groupId>com.sun.jersey</groupId>
  394. <artifactId>jersey-json</artifactId>
  395. <exclusions>
  396. <exclusion>
  397. <groupId>org.codehaus.jackson</groupId>
  398. <artifactId>jackson-xc</artifactId>
  399. </exclusion>
  400. <exclusion>
  401. <groupId>org.codehaus.jettison</groupId>
  402. <artifactId>jettison</artifactId>
  403. </exclusion>
  404. <exclusion>
  405. <groupId>org.codehaus.jackson</groupId>
  406. <artifactId>jackson-mapper-asl</artifactId>
  407. </exclusion>
  408. </exclusions>
  409. </dependency>
  410. <dependency>
  411. <groupId>com.sun.jersey</groupId>
  412. <artifactId>jersey-server</artifactId>
  413. </dependency>
  414. <dependency>
  415. <groupId>com.sun.jersey</groupId>
  416. <artifactId>jersey-client</artifactId>
  417. </dependency>
  418. <dependency>
  419. <groupId>com.sun.jersey.contribs</groupId>
  420. <artifactId>jersey-multipart</artifactId>
  421. </dependency>
  422. <dependency>
  423. <groupId>com.sun.jersey.contribs</groupId>
  424. <artifactId>jersey-guice</artifactId>
  425. </dependency>
  426. <dependency>
  427. <groupId>org.codehaus.jackson</groupId>
  428. <artifactId>jackson-mapper-asl</artifactId>
  429. <version>1.9.2</version>
  430. </dependency>
  431. <dependency>
  432. <groupId>org.codehaus.jackson</groupId>
  433. <artifactId>jackson-core-asl</artifactId>
  434. </dependency>
  435. <dependency>
  436. <groupId>org.codehaus.jackson</groupId>
  437. <artifactId>jackson-jaxrs</artifactId>
  438. </dependency>
  439. <dependency>
  440. <groupId>org.codehaus.jackson</groupId>
  441. <artifactId>jackson-xc</artifactId>
  442. </dependency>
  443. <dependency>
  444. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  445. <artifactId>jersey-test-framework-core</artifactId>
  446. <scope>test</scope>
  447. </dependency>
  448. <dependency>
  449. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  450. <artifactId>jersey-test-framework-grizzly2</artifactId>
  451. <scope>test</scope>
  452. </dependency>
  453. <dependency>
  454. <groupId>org.codehaus.jettison</groupId>
  455. <artifactId>jettison</artifactId>
  456. <scope>test</scope>
  457. </dependency>
  458. <dependency>
  459. <groupId>junit</groupId>
  460. <artifactId>junit</artifactId>
  461. <scope>test</scope>
  462. </dependency>
  463. <dependency>
  464. <groupId>org.easymock</groupId>
  465. <artifactId>easymock</artifactId>
  466. <version>3.1</version>
  467. <scope>test</scope>
  468. </dependency>
  469. <dependency>
  470. <groupId>org.objenesis</groupId>
  471. <artifactId>objenesis-tck</artifactId>
  472. <version>1.2</version>
  473. </dependency>
  474. <dependency>
  475. <groupId>cglib</groupId>
  476. <artifactId>cglib</artifactId>
  477. <version>2.2.2</version>
  478. </dependency>
  479. <dependency>
  480. <groupId>asm</groupId>
  481. <artifactId>asm</artifactId>
  482. <version>3.3.1</version>
  483. </dependency>
  484. <dependency>
  485. <groupId>org.xerial</groupId>
  486. <artifactId>sqlite-jdbc</artifactId>
  487. <version>3.7.2</version>
  488. </dependency>
  489. <dependency>
  490. <groupId>com.google.inject</groupId>
  491. <artifactId>guice</artifactId>
  492. <version>3.0</version>
  493. </dependency>
  494. <dependency>
  495. <groupId>com.google.code.gson</groupId>
  496. <artifactId>gson</artifactId>
  497. <version>2.2.2</version>
  498. </dependency>
  499. <dependency>
  500. <groupId>postgresql</groupId>
  501. <artifactId>postgresql</artifactId>
  502. <version>8.3-603.jdbc4</version>
  503. </dependency>
  504. </dependencies>
  505. <!--<reporting>
  506. <plugins>
  507. <plugin>
  508. <groupId>org.codehaus.mojo</groupId>
  509. <artifactId>findbugs-maven-plugin</artifactId>
  510. <version>2.5.2</version>
  511. </plugin>
  512. </plugins>
  513. </reporting>-->
  514. </project>