pom.xml 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255
  1. <?xml version="1.0"?>
  2. <!-- Licensed under the Apache License, Version 2.0 (the "License"); you
  3. may not use this file except in compliance with the License. You may obtain
  4. a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless
  5. required by applicable law or agreed to in writing, software distributed
  6. under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
  7. OR CONDITIONS OF ANY KIND, either express or implied. See the License for
  8. the specific language governing permissions and limitations under the License.
  9. See accompanying LICENSE file. -->
  10. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  11. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  12. <parent>
  13. <groupId>org.apache.ambari</groupId>
  14. <artifactId>ambari-project</artifactId>
  15. <version>1.3.0-SNAPSHOT</version>
  16. <relativePath>../ambari-project</relativePath>
  17. </parent>
  18. <modelVersion>4.0.0</modelVersion>
  19. <groupId>org.apache.ambari</groupId>
  20. <artifactId>ambari-server</artifactId>
  21. <packaging>jar</packaging>
  22. <name>Ambari Server</name>
  23. <version>1.3.0-SNAPSHOT</version>
  24. <description>Ambari Server</description>
  25. <properties>
  26. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27. <python.ver>python &gt;= 2.6</python.ver>
  28. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  29. <deb.architecture>amd64</deb.architecture>
  30. <deb.dependency.list>openssl, postgresql (&gt;= 8.1), ${deb.python.ver}</deb.dependency.list>
  31. <custom.tests>false</custom.tests>
  32. <hdpUrlForCentos6>http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.1.0</hdpUrlForCentos6>
  33. <ambari-web-dir>${basedir}/../ambari-web/public</ambari-web-dir>
  34. </properties>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.codehaus.mojo</groupId>
  39. <artifactId>build-helper-maven-plugin</artifactId>
  40. <version>1.8</version>
  41. <executions>
  42. <execution>
  43. <id>parse-version</id>
  44. <phase>validate</phase>
  45. <goals>
  46. <goal>parse-version</goal>
  47. </goals>
  48. </execution>
  49. <execution>
  50. <id>regex-property</id>
  51. <goals>
  52. <goal>regex-property</goal>
  53. </goals>
  54. <configuration>
  55. <name>ambariVersion</name>
  56. <value>${project.version}</value>
  57. <regex>-SNAPSHOT</regex>
  58. <replacement></replacement>
  59. <failIfNoMatch>false</failIfNoMatch>
  60. </configuration>
  61. </execution>
  62. </executions>
  63. </plugin>
  64. <plugin>
  65. <artifactId>maven-resources-plugin</artifactId>
  66. <version>2.6</version>
  67. <executions>
  68. <execution>
  69. <id>copy-resources</id>
  70. <phase>generate-test-resources</phase>
  71. <goals>
  72. <goal>copy-resources</goal>
  73. </goals>
  74. <configuration>
  75. <outputDirectory>${basedir}/target/</outputDirectory>
  76. <resources>
  77. <resource>
  78. <directory>${basedir}/../</directory>
  79. <includes>
  80. <include>**/version</include>
  81. </includes>
  82. <filtering>true</filtering>
  83. </resource>
  84. </resources>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. <plugin>
  90. <artifactId>maven-compiler-plugin</artifactId>
  91. <version>3.0</version>
  92. </plugin>
  93. <plugin>
  94. <artifactId>maven-assembly-plugin</artifactId>
  95. <configuration>
  96. <descriptors>
  97. <descriptor>src/main/assemblies/server.xml</descriptor>
  98. </descriptors>
  99. <tarLongFileMode>gnu</tarLongFileMode>
  100. </configuration>
  101. <executions>
  102. <execution>
  103. <id>build-tarball</id>
  104. <phase>package</phase>
  105. <goals>
  106. <goal>single</goal>
  107. </goals>
  108. </execution>
  109. </executions>
  110. </plugin>
  111. <plugin>
  112. <groupId>org.apache.rat</groupId>
  113. <artifactId>apache-rat-plugin</artifactId>
  114. <configuration>
  115. <excludes>
  116. <exclude>pass.txt</exclude>
  117. <exclude>derby.log</exclude>
  118. <exclude>src/test/resources/users.ldif</exclude>
  119. <exclude>src/test/resources/gsInstaller-hosts.txt</exclude>
  120. <exclude>src/test/resources/temporal_ganglia_data.txt</exclude>
  121. <exclude>src/test/resources/users.ldif</exclude>
  122. <exclude>src/main/resources/hive-schema-0.10.0.oracle.sql</exclude>
  123. <exclude>src/main/resources/hive-schema-0.12.0.oracle.sql</exclude>
  124. <exclude>src/main/resources/db/serial</exclude>
  125. <exclude>src/main/resources/db/index.txt</exclude>
  126. <exclude>conf/unix/ca.config</exclude>
  127. <exclude>conf/unix/krb5JAASLogin.conf</exclude>
  128. <exclude>**/*.json</exclude>
  129. <!--gitignore content -->
  130. <exclude>src/main/resources/db/newcerts/**</exclude>
  131. <!-- Stack definitions -->
  132. <exclude>src/main/resources/stacks/HDP/2.0._/services/HBASE/package/templates/regionservers.j2</exclude>
  133. <!--test samples -->
  134. <exclude>src/test/resources/TestAmbaryServer.samples/**</exclude>
  135. <exclude>src/test/resources/*.txt</exclude>
  136. <exclude>src/test/resources/users_for_dn_with_space.ldif</exclude>
  137. </excludes>
  138. </configuration>
  139. </plugin>
  140. <plugin>
  141. <!--Static -->
  142. <artifactId>maven-antrun-plugin</artifactId>
  143. <executions>
  144. <execution>
  145. <phase>process-classes</phase>
  146. <configuration>
  147. <tasks>
  148. <java
  149. classname="org.eclipse.persistence.tools.weaving.jpa.StaticWeave"
  150. classpathref="maven.runtime.classpath" fork="true">
  151. <arg
  152. line="-loglevel FINE -persistenceinfo src/main/resources target/classes target/classes" />
  153. </java>
  154. </tasks>
  155. </configuration>
  156. <goals>
  157. <goal>run</goal>
  158. </goals>
  159. </execution>
  160. </executions>
  161. </plugin>
  162. <plugin>
  163. <groupId>org.codehaus.mojo</groupId>
  164. <artifactId>rpm-maven-plugin</artifactId>
  165. <version>2.0.1</version>
  166. <executions>
  167. <execution>
  168. <!-- unbinds rpm creation from maven lifecycle -->
  169. <phase>none</phase>
  170. <goals>
  171. <goal>rpm</goal>
  172. </goals>
  173. </execution>
  174. </executions>
  175. <configuration>
  176. <copyright>2012, Apache Software Foundation</copyright>
  177. <version>${project.version}</version>
  178. <group>Development</group>
  179. <description>Maven Recipe: RPM Package.</description>
  180. <requires>
  181. <require>postgresql-server &gt;= 8.1</require>
  182. <require>openssl</require>
  183. <require>${python.ver}</require>
  184. </requires>
  185. <postinstallScriptlet>
  186. <scriptFile>src/main/package/rpm/postinstall.sh</scriptFile>
  187. <fileEncoding>utf-8</fileEncoding>
  188. </postinstallScriptlet>
  189. <preinstallScriptlet>
  190. <scriptFile>src/main/package/rpm/preinstall.sh</scriptFile>
  191. <fileEncoding>utf-8</fileEncoding>
  192. </preinstallScriptlet>
  193. <preremoveScriptlet>
  194. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  195. <fileEncoding>utf-8</fileEncoding>
  196. </preremoveScriptlet>
  197. <defaultFilemode>644</defaultFilemode>
  198. <defaultDirmode>755</defaultDirmode>
  199. <defaultUsername>root</defaultUsername>
  200. <defaultGroupname>root</defaultGroupname>
  201. <mappings>
  202. <mapping>
  203. <directory>/usr/lib/ambari-server</directory>
  204. <dependency>
  205. </dependency>
  206. </mapping>
  207. <mapping>
  208. <directory>/usr/lib/ambari-server/web</directory>
  209. <sources>
  210. <source>
  211. <location>${ambari-web-dir}</location>
  212. <includes>
  213. <include>**</include>
  214. </includes>
  215. </source>
  216. </sources>
  217. </mapping>
  218. <mapping>
  219. <directory>/usr/lib/ambari-server</directory>
  220. <sources>
  221. <source>
  222. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  223. </source>
  224. </sources>
  225. </mapping>
  226. <mapping>
  227. <directory>/usr/sbin</directory>
  228. <filemode>755</filemode>
  229. <username>root</username>
  230. <groupname>root</groupname>
  231. <directoryIncluded>false</directoryIncluded>
  232. <sources>
  233. <source>
  234. <location>src/main/python/ambari-server.py</location>
  235. </source>
  236. <source>
  237. <location>sbin/ambari-server</location>
  238. <filter>true</filter>
  239. </source>
  240. </sources>
  241. </mapping>
  242. <mapping>
  243. <directory>/etc/ambari-server/conf</directory>
  244. <configuration>true</configuration>
  245. <sources>
  246. <source>
  247. <location>conf/unix/ambari.properties</location>
  248. </source>
  249. <source>
  250. <location>conf/unix/log4j.properties</location>
  251. </source>
  252. <source>
  253. <location>conf/unix/krb5JAASLogin.conf</location>
  254. </source>
  255. </sources>
  256. </mapping>
  257. <mapping>
  258. <directory>/var/lib/ambari-server/</directory>
  259. <filemode>700</filemode>
  260. <username>root</username>
  261. <groupname>root</groupname>
  262. <sources>
  263. <source>
  264. <location>conf/unix/ambari-env.sh</location>
  265. </source>
  266. </sources>
  267. </mapping>
  268. <mapping>
  269. <directory>/var/lib/ambari-server/keys</directory>
  270. <sources>
  271. <source>
  272. <location>conf/unix/ca.config</location>
  273. </source>
  274. </sources>
  275. </mapping>
  276. <mapping>
  277. <directory>/var/lib/ambari-server/keys/db</directory>
  278. <filemode>700</filemode>
  279. <username>root</username>
  280. <groupname>root</groupname>
  281. <sources>
  282. <source>
  283. <location>src/main/resources/db</location>
  284. </source>
  285. </sources>
  286. </mapping>
  287. <mapping>
  288. <directory>/var/run/ambari-server/bootstrap</directory>
  289. </mapping>
  290. <mapping>
  291. <directory>/var/log/ambari-server</directory>
  292. </mapping>
  293. <mapping>
  294. <directory>/var/lib/ambari-server/resources</directory>
  295. <sources>
  296. <source>
  297. <location>target/classes/Ambari-DDL-Postgres-CREATE.sql</location>
  298. </source>
  299. <source>
  300. <location>src/main/resources/Ambari-DDL-Postgres-DROP.sql</location>
  301. </source>
  302. <source>
  303. <location>target/classes/Ambari-DDL-Postgres-REMOTE-CREATE.sql</location>
  304. </source>
  305. <source>
  306. <location>src/main/resources/Ambari-DDL-Postgres-REMOTE-DROP.sql</location>
  307. </source>
  308. <source>
  309. <location>target/classes/Ambari-DDL-Oracle-CREATE.sql</location>
  310. </source>
  311. <source>
  312. <location>target/classes/Ambari-DDL-MySQL-CREATE.sql</location>
  313. </source>
  314. <source>
  315. <location>src/main/resources/Ambari-DDL-Oracle-DROP.sql</location>
  316. </source>
  317. <source>
  318. <location>src/main/resources/Ambari-DDL-MySQL-DROP.sql</location>
  319. </source>
  320. <source>
  321. <location>src/main/resources/hive-schema-0.10.0.oracle.sql</location>
  322. </source>
  323. <source>
  324. <location>src/main/resources/hive-schema-0.12.0.oracle.sql</location>
  325. </source>
  326. <source>
  327. <location>${project.build.directory}/DBConnectionVerification.jar</location>
  328. </source>
  329. <source>
  330. <location>src/main/resources/role_command_order.json</location>
  331. </source>
  332. </sources>
  333. </mapping>
  334. <mapping>
  335. <directory>/var/lib/ambari-server/resources/scripts</directory>
  336. <filemode>755</filemode>
  337. <sources>
  338. <source>
  339. <location>src/main/resources/scripts</location>
  340. </source>
  341. <source>
  342. <location>src/main/python/UpgradeHelper_HDP2.py</location>
  343. </source>
  344. </sources>
  345. </mapping>
  346. <mapping>
  347. <directory>/var/lib/ambari-server/resources/upgrade</directory>
  348. </mapping>
  349. <mapping>
  350. <directory>/var/lib/ambari-server/resources/upgrade/ddl</directory>
  351. <sources>
  352. <source>
  353. <location>src/main/resources/upgrade/ddl</location>
  354. </source>
  355. </sources>
  356. </mapping>
  357. <mapping>
  358. <directory>/var/lib/ambari-server/resources/upgrade/dml</directory>
  359. <sources>
  360. <source>
  361. <location>src/main/resources/upgrade/dml</location>
  362. </source>
  363. </sources>
  364. </mapping>
  365. <mapping>
  366. <directory>/var/lib/ambari-server/resources/stacks/HDP</directory>
  367. <sources>
  368. <source>
  369. <location>target/classes/stacks/HDP</location>
  370. </source>
  371. </sources>
  372. </mapping>
  373. <mapping>
  374. <directory>/usr/lib/python2.6/site-packages/ambari_server</directory>
  375. <filemode>755</filemode>
  376. <username>root</username>
  377. <groupname>root</groupname>
  378. <sources>
  379. <source>
  380. <location>src/main/python/ambari_server</location>
  381. </source>
  382. <source>
  383. <location>src/main/python/bootstrap.py</location>
  384. </source>
  385. <source>
  386. <location>src/main/python/setupAgent.py</location>
  387. </source>
  388. <source>
  389. <location>src/main/python/os_type_check.sh</location>
  390. </source>
  391. </sources>
  392. </mapping>
  393. <mapping>
  394. <directory>/var/run/ambari-server</directory>
  395. </mapping>
  396. <mapping>
  397. <directory>/var/lib/ambari-server/resources</directory>
  398. <sources>
  399. <source>
  400. <location>../version</location>
  401. <filter>true</filter>
  402. </source>
  403. </sources>
  404. </mapping>
  405. <mapping>
  406. <directory>/var/lib/ambari-server/resources/custom_action_definitions</directory>
  407. <sources>
  408. <source>
  409. <location>src/main/resources/custom_action_definitions</location>
  410. </source>
  411. </sources>
  412. </mapping>
  413. <mapping>
  414. <!-- custom actions root-->
  415. <directory>/var/lib/ambari-server/resources/custom_actions</directory>
  416. <filemode>755</filemode>
  417. <username>root</username>
  418. <groupname>root</groupname>
  419. <sources>
  420. <source>
  421. <location>src/main/resources/custom_actions</location>
  422. </source>
  423. </sources>
  424. </mapping>
  425. </mappings>
  426. </configuration>
  427. </plugin>
  428. <plugin>
  429. <groupId>org.vafer</groupId>
  430. <artifactId>jdeb</artifactId>
  431. <version>1.0.1</version>
  432. <executions>
  433. <execution>
  434. <!-- unbinds rpm creation from maven lifecycle -->
  435. <phase>none</phase>
  436. <goals>
  437. <goal>jdeb</goal>
  438. </goals>
  439. </execution>
  440. </executions>
  441. <configuration>
  442. <dataSet>
  443. <data>
  444. <type>template</type>
  445. <paths>
  446. <path>/usr/lib/ambari-server</path>
  447. <path>/var/run/ambari-server</path>
  448. <path>/var/run/ambari-server/bootstrap</path>
  449. <path>/var/log/ambari-server</path>
  450. <path>/var/lib/ambari-server/resources/upgrade</path>
  451. </paths>
  452. </data>
  453. <!-- TODO: should be included all subdirs, if exists-->
  454. <data>
  455. <src>${basedir}/../ambari-web/public</src>
  456. <type>directory</type>
  457. <mapper>
  458. <type>perm</type>
  459. <prefix>/usr/lib/ambari-server/web</prefix>
  460. </mapper>
  461. </data>
  462. <data>
  463. <src>${project.build.directory}/${project.artifactId}-${project.version}-dist/${project.artifactId}-${project.version}/lib</src>
  464. <type>directory</type>
  465. <mapper>
  466. <type>perm</type>
  467. <prefix>/usr/lib</prefix>
  468. </mapper>
  469. </data>
  470. <data>
  471. <src>src/main/python/ambari-server.py</src>
  472. <type>file</type>
  473. <mapper>
  474. <type>perm</type>
  475. <prefix>/usr/sbin</prefix>
  476. <user>root</user>
  477. <group>root</group>
  478. <filemode>755</filemode>
  479. </mapper>
  480. </data>
  481. <data>
  482. <src>src/main/python/ambari-server.py</src>
  483. <type>file</type>
  484. <mapper>
  485. <type>perm</type>
  486. <prefix>/usr/sbin</prefix>
  487. <user>root</user>
  488. <group>root</group>
  489. <filemode>755</filemode>
  490. </mapper>
  491. </data>
  492. <data>
  493. <src>${basedir}/target/src/ambari-server</src>
  494. <type>file</type>
  495. <mapper>
  496. <type>perm</type>
  497. <prefix>/usr/sbin</prefix>
  498. <user>root</user>
  499. <group>root</group>
  500. <filemode>755</filemode>
  501. </mapper>
  502. </data>
  503. <data>
  504. <src>conf/unix/ambari.properties</src>
  505. <type>file</type>
  506. <mapper>
  507. <type>perm</type>
  508. <prefix>/etc/ambari-server/conf</prefix>
  509. </mapper>
  510. </data>
  511. <data>
  512. <src>conf/unix/log4j.properties</src>
  513. <type>file</type>
  514. <mapper>
  515. <type>perm</type>
  516. <prefix>/etc/ambari-server/conf</prefix>
  517. </mapper>
  518. </data>
  519. <data>
  520. <src>conf/unix/krb5JAASLogin.conf</src>
  521. <type>file</type>
  522. <mapper>
  523. <type>perm</type>
  524. <prefix>/etc/ambari-server/conf</prefix>
  525. </mapper>
  526. </data>
  527. <!-- /q001 -->
  528. <data>
  529. <src>conf/unix/ambari-env.sh</src>
  530. <type>file</type>
  531. <mapper>
  532. <type>perm</type>
  533. <prefix>/var/lib/ambari-server/</prefix>
  534. <user>root</user>
  535. <group>root</group>
  536. <filemode>700</filemode>
  537. </mapper>
  538. </data>
  539. <data>
  540. <src>conf/unix/ca.config</src>
  541. <type>file</type>
  542. <mapper>
  543. <type>perm</type>
  544. <prefix>/var/lib/ambari-server/keys</prefix>
  545. </mapper>
  546. </data>
  547. <data>
  548. <src>src/main/resources/db</src>
  549. <type>directory</type>
  550. <mapper>
  551. <type>perm</type>
  552. <prefix>/var/lib/ambari-server/keys/db</prefix>
  553. <user>root</user>
  554. <group>root</group>
  555. <filemode>700</filemode>
  556. </mapper>
  557. </data>
  558. <data>
  559. <src>target/classes/Ambari-DDL-Postgres-CREATE.sql</src>
  560. <type>file</type>
  561. <mapper>
  562. <type>perm</type>
  563. <prefix>/var/lib/ambari-server/resources</prefix>
  564. </mapper>
  565. </data>
  566. <data>
  567. <src>src/main/resources/Ambari-DDL-Postgres-DROP.sql</src>
  568. <type>file</type>
  569. <mapper>
  570. <type>perm</type>
  571. <prefix>/var/lib/ambari-server/resources</prefix>
  572. </mapper>
  573. </data>
  574. <data>
  575. <src>target/classes/Ambari-DDL-Postgres-REMOTE-CREATE.sql</src>
  576. <type>file</type>
  577. <mapper>
  578. <type>perm</type>
  579. <prefix>/var/lib/ambari-server/resources</prefix>
  580. </mapper>
  581. </data>
  582. <data>
  583. <src>src/main/resources/Ambari-DDL-Postgres-REMOTE-DROP.sql</src>
  584. <type>file</type>
  585. <mapper>
  586. <type>perm</type>
  587. <prefix>/var/lib/ambari-server/resources</prefix>
  588. </mapper>
  589. </data>
  590. <data>
  591. <src>target/classes/Ambari-DDL-Oracle-CREATE.sql</src>
  592. <type>file</type>
  593. <mapper>
  594. <type>perm</type>
  595. <prefix>/var/lib/ambari-server/resources</prefix>
  596. </mapper>
  597. </data>
  598. <data>
  599. <src>target/classes/Ambari-DDL-MySQL-CREATE.sql</src>
  600. <type>file</type>
  601. <mapper>
  602. <type>perm</type>
  603. <prefix>/var/lib/ambari-server/resources</prefix>
  604. </mapper>
  605. </data>
  606. <data>
  607. <src>src/main/resources/Ambari-DDL-Oracle-DROP.sql</src>
  608. <type>file</type>
  609. <mapper>
  610. <type>perm</type>
  611. <prefix>/var/lib/ambari-server/resources</prefix>
  612. </mapper>
  613. </data>
  614. <data>
  615. <src>src/main/resources/Ambari-DDL-MySQL-DROP.sql</src>
  616. <type>file</type>
  617. <mapper>
  618. <type>perm</type>
  619. <prefix>/var/lib/ambari-server/resources</prefix>
  620. </mapper>
  621. </data>
  622. <data>
  623. <src>src/main/resources/hive-schema-0.10.0.oracle.sql</src>
  624. <type>file</type>
  625. <mapper>
  626. <type>perm</type>
  627. <prefix>/var/lib/ambari-server/resources</prefix>
  628. </mapper>
  629. </data>
  630. <data>
  631. <src>src/main/resources/hive-schema-0.12.0.oracle.sql</src>
  632. <type>file</type>
  633. <mapper>
  634. <type>perm</type>
  635. <prefix>/var/lib/ambari-server/resources</prefix>
  636. </mapper>
  637. </data>
  638. <data>
  639. <src>${project.build.directory}/DBConnectionVerification.jar</src>
  640. <type>file</type>
  641. <mapper>
  642. <type>perm</type>
  643. <prefix>/var/lib/ambari-server/resources</prefix>
  644. </mapper>
  645. </data>
  646. <data>
  647. <src>src/main/resources/role_command_order.json</src>
  648. <type>file</type>
  649. <mapper>
  650. <type>perm</type>
  651. <prefix>/var/lib/ambari-server/resources</prefix>
  652. </mapper>
  653. </data>
  654. <data>
  655. <src>src/main/resources/scripts</src>
  656. <type>directory</type>
  657. <mapper>
  658. <type>perm</type>
  659. <prefix>/var/lib/ambari-server/resources/scripts</prefix>
  660. <filemode>755</filemode>
  661. </mapper>
  662. </data>
  663. <data>
  664. <src>src/main/python/UpgradeHelper_HDP2.py</src>
  665. <type>file</type>
  666. <mapper>
  667. <type>perm</type>
  668. <prefix>/var/lib/ambari-server/resources/scripts</prefix>
  669. <filemode>755</filemode>
  670. </mapper>
  671. </data>
  672. <data>
  673. <src>src/main/resources/upgrade/ddl</src>
  674. <type>directory</type>
  675. <mapper>
  676. <type>perm</type>
  677. <prefix>/var/lib/ambari-server/resources/upgrade/ddl</prefix>
  678. </mapper>
  679. </data>
  680. <data>
  681. <src>src/main/resources/upgrade/dml</src>
  682. <type>directory</type>
  683. <mapper>
  684. <type>perm</type>
  685. <prefix>/var/lib/ambari-server/resources/upgrade/dml</prefix>
  686. </mapper>
  687. </data>
  688. <data>
  689. <src>target/classes/stacks/HDP</src>
  690. <type>directory</type>
  691. <mapper>
  692. <type>perm</type>
  693. <prefix>/var/lib/ambari-server/resources/stacks/HDP</prefix>
  694. </mapper>
  695. </data>
  696. <data>
  697. <src>src/main/python/ambari_server</src>
  698. <type>directory</type>
  699. <mapper>
  700. <type>perm</type>
  701. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  702. <user>root</user>
  703. <group>root</group>
  704. <filemode>755</filemode>
  705. </mapper>
  706. </data>
  707. <data>
  708. <src>src/main/python/bootstrap.py</src>
  709. <type>file</type>
  710. <mapper>
  711. <type>perm</type>
  712. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  713. <user>root</user>
  714. <group>root</group>
  715. <filemode>755</filemode>
  716. </mapper>
  717. </data>
  718. <data>
  719. <src>src/main/python/setupAgent.py</src>
  720. <type>file</type>
  721. <mapper>
  722. <type>perm</type>
  723. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  724. <user>root</user>
  725. <group>root</group>
  726. <filemode>755</filemode>
  727. </mapper>
  728. </data>
  729. <data>
  730. <src>src/main/python/os_type_check.sh</src>
  731. <type>file</type>
  732. <mapper>
  733. <type>perm</type>
  734. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  735. <user>root</user>
  736. <group>root</group>
  737. <filemode>755</filemode>
  738. </mapper>
  739. </data>
  740. <data>
  741. <src>${basedir}/target/src/version</src>
  742. <type>file</type>
  743. <mapper>
  744. <type>perm</type>
  745. <prefix>/var/lib/ambari-server/resources</prefix>
  746. </mapper>
  747. </data>
  748. <data>
  749. <src>src/main/resources/custom_action_definitions</src>
  750. <type>directory</type>
  751. <mapper>
  752. <type>perm</type>
  753. <prefix>/var/lib/ambari-server/resources/custom_action_definitions</prefix>
  754. </mapper>
  755. </data>
  756. <data>
  757. <src>src/main/resources/custom_actions</src>
  758. <type>directory</type>
  759. <mapper>
  760. <type>perm</type>
  761. <prefix>/var/lib/ambari-server/resources/custom_actions</prefix>
  762. <user>root</user>
  763. <group>root</group>
  764. <filemode>755</filemode>
  765. </mapper>
  766. </data>
  767. </dataSet>
  768. </configuration>
  769. </plugin>
  770. <plugin>
  771. <groupId>org.codehaus.mojo</groupId>
  772. <artifactId>findbugs-maven-plugin</artifactId>
  773. <version>2.5.2</version>
  774. <configuration>
  775. <failOnError>false</failOnError>
  776. </configuration>
  777. <executions>
  778. <execution>
  779. <phase>verify</phase>
  780. <goals>
  781. <goal>check</goal>
  782. </goals>
  783. </execution>
  784. </executions>
  785. </plugin>
  786. <plugin>
  787. <groupId>org.codehaus.mojo</groupId>
  788. <artifactId>exec-maven-plugin</artifactId>
  789. <version>1.2</version>
  790. <executions>
  791. <execution>
  792. <configuration>
  793. <executable>python2.6</executable>
  794. <workingDirectory>src/test/python</workingDirectory>
  795. <arguments>
  796. <argument>unitTests.py</argument>
  797. <argument>${custom.tests}</argument>
  798. </arguments>
  799. <environmentVariables>
  800. <PYTHONPATH>${project.basedir}/../ambari-agent/src/main/python:${project.basedir}/../ambari-common/src/main/python/jinja2:${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>
  801. </environmentVariables>
  802. <skip>${skipTests}</skip>
  803. </configuration>
  804. <id>python-test</id>
  805. <phase>test</phase>
  806. <goals>
  807. <goal>exec</goal>
  808. </goals>
  809. </execution>
  810. </executions>
  811. </plugin>
  812. <plugin>
  813. <groupId>com.atlassian.maven.plugins</groupId>
  814. <artifactId>maven-clover2-plugin</artifactId>
  815. <version>3.1.11</version>
  816. <!-- <configuration> <licenseLocation>/path/to/clover.license</licenseLocation>
  817. </configuration> -->
  818. </plugin>
  819. <plugin>
  820. <groupId>org.codehaus.mojo</groupId>
  821. <artifactId>buildnumber-maven-plugin</artifactId>
  822. <version>${buildnumber-maven-plugin-version}</version>
  823. <configuration>
  824. <urlScm>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-ambari.git</urlScm>
  825. </configuration>
  826. <executions>
  827. <execution>
  828. <phase>validate</phase>
  829. <goals>
  830. <goal>create</goal>
  831. </goals>
  832. </execution>
  833. </executions>
  834. </plugin>
  835. <plugin>
  836. <groupId>org.apache.maven.plugins</groupId>
  837. <artifactId>maven-antrun-plugin</artifactId>
  838. <version>1.7</version>
  839. <executions>
  840. <execution>
  841. <phase>package</phase>
  842. <configuration>
  843. <tasks>
  844. <jar destfile="target/DBConnectionVerification.jar">
  845. <fileset dir="${basedir}/target/classes/"
  846. includes="**/DBConnectionVerification.class" />
  847. <manifest>
  848. <attribute name="Main-Class"
  849. value="org.apache.ambari.server.DBConnectionVerification" />
  850. </manifest>
  851. </jar>
  852. </tasks>
  853. </configuration>
  854. <goals>
  855. <goal>run</goal>
  856. </goals>
  857. </execution>
  858. </executions>
  859. </plugin>
  860. <plugin>
  861. <groupId>org.apache.maven.plugins</groupId>
  862. <artifactId>maven-resources-plugin</artifactId>
  863. <version>2.6</version>
  864. <executions>
  865. <execution>
  866. <id>copy-resources</id>
  867. <phase>prepare-package</phase>
  868. <goals>
  869. <goal>copy-resources</goal>
  870. </goals>
  871. <configuration>
  872. <outputDirectory>${basedir}/target/src</outputDirectory>
  873. <resources>
  874. <resource>
  875. <directory>sbin</directory>
  876. <includes>
  877. <include>ambari-server</include>
  878. </includes>
  879. <filtering>true</filtering>
  880. </resource>
  881. <resource>
  882. <directory>..</directory>
  883. <includes>
  884. <include>version</include>
  885. </includes>
  886. <filtering>true</filtering>
  887. </resource>
  888. </resources>
  889. </configuration>
  890. </execution>
  891. </executions>
  892. </plugin>
  893. </plugins>
  894. <resources>
  895. <resource>
  896. <directory>src/main/resources</directory>
  897. <filtering>true</filtering>
  898. <excludes>
  899. <exclude>stacks/**</exclude>
  900. </excludes>
  901. </resource>
  902. <resource>
  903. <directory>src/main/resources</directory>
  904. <filtering>false</filtering>
  905. <includes>
  906. <include>stacks/**</include>
  907. </includes>
  908. </resource>
  909. </resources>
  910. </build>
  911. <profiles>
  912. <profile>
  913. <id>replaceurl</id>
  914. <build>
  915. <plugins>
  916. <plugin>
  917. <groupId>org.apache.maven.plugins</groupId>
  918. <artifactId>maven-antrun-plugin</artifactId>
  919. <version>1.7</version>
  920. <executions>
  921. <execution>
  922. <id>set-hdp-url-classes</id>
  923. <phase>process-classes</phase>
  924. <goals>
  925. <goal>run</goal>
  926. </goals>
  927. <configuration>
  928. <target name="ambari-server-compile">
  929. <exec dir="${basedir}" executable="bash"
  930. failonerror="true">
  931. <arg value="${basedir}/set-hdp-repo-url.sh" />
  932. <arg value="${hdpUrlForCentos6}" />
  933. </exec>
  934. </target>
  935. </configuration>
  936. </execution>
  937. <execution>
  938. <id>set-hdp-url-packages</id>
  939. <phase>package</phase>
  940. <goals>
  941. <goal>run</goal>
  942. </goals>
  943. <configuration>
  944. <target name="ambari-server-compile">
  945. <exec dir="${basedir}" executable="bash"
  946. failonerror="true">
  947. <arg value="${basedir}/set-hdp-repo-url.sh" />
  948. <arg value="${hdpUrlForCentos6}" />
  949. <arg
  950. value="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}" />
  951. </exec>
  952. </target>
  953. </configuration>
  954. </execution>
  955. </executions>
  956. </plugin>
  957. </plugins>
  958. </build>
  959. </profile>
  960. </profiles>
  961. <dependencies>
  962. <dependency>
  963. <groupId>${pom.groupId}</groupId>
  964. <artifactId>ambari-views</artifactId>
  965. <version>${project.version}</version>
  966. </dependency>
  967. <dependency>
  968. <groupId>commons-io</groupId>
  969. <artifactId>commons-io</artifactId>
  970. </dependency>
  971. <dependency>
  972. <groupId>com.google.inject.extensions</groupId>
  973. <artifactId>guice-assistedinject</artifactId>
  974. </dependency>
  975. <dependency>
  976. <groupId>com.google.inject.extensions</groupId>
  977. <artifactId>guice-persist</artifactId>
  978. </dependency>
  979. <dependency>
  980. <groupId>com.google.inject.extensions</groupId>
  981. <artifactId>guice-servlet</artifactId>
  982. </dependency>
  983. <dependency>
  984. <groupId>com.google.inject.extensions</groupId>
  985. <artifactId>guice-multibindings</artifactId>
  986. <version>3.0</version>
  987. </dependency>
  988. <dependency>
  989. <groupId>org.apache.derby</groupId>
  990. <artifactId>derby</artifactId>
  991. </dependency>
  992. <dependency>
  993. <groupId>org.springframework.security</groupId>
  994. <artifactId>spring-security-core</artifactId>
  995. </dependency>
  996. <dependency>
  997. <groupId>org.springframework.security</groupId>
  998. <artifactId>spring-security-config</artifactId>
  999. </dependency>
  1000. <dependency>
  1001. <groupId>org.springframework.security</groupId>
  1002. <artifactId>spring-security-web</artifactId>
  1003. </dependency>
  1004. <dependency>
  1005. <groupId>org.springframework</groupId>
  1006. <artifactId>spring-mock</artifactId>
  1007. <scope>test</scope>
  1008. </dependency>
  1009. <dependency>
  1010. <groupId>org.springframework.security</groupId>
  1011. <artifactId>spring-security-ldap</artifactId>
  1012. </dependency>
  1013. <dependency>
  1014. <groupId>org.springframework.ldap</groupId>
  1015. <artifactId>spring-ldap-core</artifactId>
  1016. </dependency>
  1017. <dependency>
  1018. <groupId>org.apache.directory.server</groupId>
  1019. <artifactId>apacheds-core</artifactId>
  1020. </dependency>
  1021. <dependency>
  1022. <groupId>org.apache.directory.server</groupId>
  1023. <artifactId>apacheds-protocol-ldap</artifactId>
  1024. </dependency>
  1025. <dependency>
  1026. <groupId>org.apache.directory.shared</groupId>
  1027. <artifactId>shared-ldap</artifactId>
  1028. </dependency>
  1029. <dependency>
  1030. <groupId>org.slf4j</groupId>
  1031. <artifactId>slf4j-api</artifactId>
  1032. </dependency>
  1033. <dependency>
  1034. <groupId>org.slf4j</groupId>
  1035. <artifactId>slf4j-log4j12</artifactId>
  1036. </dependency>
  1037. <dependency>
  1038. <groupId>log4j</groupId>
  1039. <artifactId>log4j</artifactId>
  1040. </dependency>
  1041. <dependency>
  1042. <groupId>org.eclipse.persistence</groupId>
  1043. <artifactId>eclipselink</artifactId>
  1044. </dependency>
  1045. <dependency>
  1046. <groupId>org.mockito</groupId>
  1047. <artifactId>mockito-core</artifactId>
  1048. <scope>test</scope>
  1049. </dependency>
  1050. <dependency>
  1051. <groupId>org.eclipse.jetty</groupId>
  1052. <artifactId>jetty-security</artifactId>
  1053. </dependency>
  1054. <dependency>
  1055. <groupId>org.eclipse.jetty</groupId>
  1056. <artifactId>jetty-servlet</artifactId>
  1057. </dependency>
  1058. <dependency>
  1059. <groupId>org.eclipse.jetty</groupId>
  1060. <artifactId>jetty-webapp</artifactId>
  1061. </dependency>
  1062. <dependency>
  1063. <groupId>org.eclipse.jetty</groupId>
  1064. <artifactId>jetty-server</artifactId>
  1065. </dependency>
  1066. <dependency>
  1067. <groupId>commons-logging</groupId>
  1068. <artifactId>commons-logging</artifactId>
  1069. </dependency>
  1070. <dependency>
  1071. <groupId>commons-codec</groupId>
  1072. <artifactId>commons-codec</artifactId>
  1073. </dependency>
  1074. <dependency>
  1075. <groupId>commons-lang</groupId>
  1076. <artifactId>commons-lang</artifactId>
  1077. </dependency>
  1078. <dependency>
  1079. <groupId>commons-httpclient</groupId>
  1080. <artifactId>commons-httpclient</artifactId>
  1081. </dependency>
  1082. <dependency>
  1083. <groupId>commons-net</groupId>
  1084. <artifactId>commons-net</artifactId>
  1085. <version>1.4.1</version>
  1086. </dependency>
  1087. <dependency>
  1088. <groupId>javax.servlet</groupId>
  1089. <artifactId>servlet-api</artifactId>
  1090. </dependency>
  1091. <dependency>
  1092. <groupId>com.sun.jersey</groupId>
  1093. <artifactId>jersey-json</artifactId>
  1094. <exclusions>
  1095. <exclusion>
  1096. <groupId>org.codehaus.jackson</groupId>
  1097. <artifactId>jackson-xc</artifactId>
  1098. </exclusion>
  1099. <exclusion>
  1100. <groupId>org.codehaus.jettison</groupId>
  1101. <artifactId>jettison</artifactId>
  1102. </exclusion>
  1103. <exclusion>
  1104. <groupId>org.codehaus.jackson</groupId>
  1105. <artifactId>jackson-mapper-asl</artifactId>
  1106. </exclusion>
  1107. </exclusions>
  1108. </dependency>
  1109. <dependency>
  1110. <groupId>com.sun.jersey</groupId>
  1111. <artifactId>jersey-server</artifactId>
  1112. </dependency>
  1113. <dependency>
  1114. <groupId>com.sun.jersey</groupId>
  1115. <artifactId>jersey-client</artifactId>
  1116. </dependency>
  1117. <dependency>
  1118. <groupId>com.sun.jersey.contribs</groupId>
  1119. <artifactId>jersey-multipart</artifactId>
  1120. </dependency>
  1121. <dependency>
  1122. <groupId>com.sun.jersey.contribs</groupId>
  1123. <artifactId>jersey-guice</artifactId>
  1124. </dependency>
  1125. <dependency>
  1126. <groupId>org.codehaus.jackson</groupId>
  1127. <artifactId>jackson-mapper-asl</artifactId>
  1128. <version>1.9.2</version>
  1129. </dependency>
  1130. <dependency>
  1131. <groupId>org.codehaus.jackson</groupId>
  1132. <artifactId>jackson-core-asl</artifactId>
  1133. </dependency>
  1134. <dependency>
  1135. <groupId>org.codehaus.jackson</groupId>
  1136. <artifactId>jackson-jaxrs</artifactId>
  1137. </dependency>
  1138. <dependency>
  1139. <groupId>org.codehaus.jackson</groupId>
  1140. <artifactId>jackson-xc</artifactId>
  1141. </dependency>
  1142. <dependency>
  1143. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1144. <artifactId>jersey-test-framework-core</artifactId>
  1145. <scope>test</scope>
  1146. </dependency>
  1147. <dependency>
  1148. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1149. <artifactId>jersey-test-framework-grizzly2</artifactId>
  1150. <scope>test</scope>
  1151. </dependency>
  1152. <dependency>
  1153. <groupId>org.codehaus.jettison</groupId>
  1154. <artifactId>jettison</artifactId>
  1155. <scope>test</scope>
  1156. </dependency>
  1157. <dependency>
  1158. <groupId>junit</groupId>
  1159. <artifactId>junit</artifactId>
  1160. <scope>test</scope>
  1161. </dependency>
  1162. <dependency>
  1163. <groupId>org.easymock</groupId>
  1164. <artifactId>easymock</artifactId>
  1165. <version>3.1</version>
  1166. <scope>test</scope>
  1167. </dependency>
  1168. <dependency>
  1169. <groupId>org.powermock</groupId>
  1170. <artifactId>powermock-core</artifactId>
  1171. <version>1.5</version>
  1172. <scope>test</scope>
  1173. </dependency>
  1174. <dependency>
  1175. <groupId>org.powermock</groupId>
  1176. <artifactId>powermock-reflect</artifactId>
  1177. <version>1.5</version>
  1178. <scope>test</scope>
  1179. </dependency>
  1180. <dependency>
  1181. <groupId>org.powermock</groupId>
  1182. <artifactId>powermock-api-easymock</artifactId>
  1183. <version>1.5</version>
  1184. <scope>test</scope>
  1185. </dependency>
  1186. <dependency>
  1187. <groupId>org.powermock</groupId>
  1188. <artifactId>powermock-module-junit4</artifactId>
  1189. <version>1.5</version>
  1190. <scope>test</scope>
  1191. </dependency>
  1192. <dependency>
  1193. <groupId>org.objenesis</groupId>
  1194. <artifactId>objenesis-tck</artifactId>
  1195. <version>1.2</version>
  1196. </dependency>
  1197. <dependency>
  1198. <groupId>cglib</groupId>
  1199. <artifactId>cglib</artifactId>
  1200. <version>2.2.2</version>
  1201. </dependency>
  1202. <dependency>
  1203. <groupId>asm</groupId>
  1204. <artifactId>asm</artifactId>
  1205. <version>3.3.1</version>
  1206. </dependency>
  1207. <dependency>
  1208. <groupId>com.google.inject</groupId>
  1209. <artifactId>guice</artifactId>
  1210. <version>3.0</version>
  1211. </dependency>
  1212. <dependency>
  1213. <groupId>com.google.code.gson</groupId>
  1214. <artifactId>gson</artifactId>
  1215. <version>2.2.2</version>
  1216. </dependency>
  1217. <dependency>
  1218. <groupId>postgresql</groupId>
  1219. <artifactId>postgresql</artifactId>
  1220. <version>9.1-901.jdbc4</version>
  1221. </dependency>
  1222. <dependency>
  1223. <groupId>org.apache.httpcomponents</groupId>
  1224. <artifactId>httpclient</artifactId>
  1225. <version>4.2.5</version>
  1226. </dependency>
  1227. <dependency>
  1228. <groupId>com.google.guava</groupId>
  1229. <artifactId>guava</artifactId>
  1230. <version>14.0.1</version>
  1231. </dependency>
  1232. <dependency>
  1233. <groupId>com.google.code.findbugs</groupId>
  1234. <artifactId>jsr305</artifactId>
  1235. <version>1.3.9</version>
  1236. </dependency>
  1237. <dependency>
  1238. <groupId>org.quartz-scheduler</groupId>
  1239. <artifactId>quartz</artifactId>
  1240. <version>2.2.1</version>
  1241. </dependency>
  1242. <dependency>
  1243. <groupId>org.quartz-scheduler</groupId>
  1244. <artifactId>quartz-jobs</artifactId>
  1245. <version>2.2.1</version>
  1246. </dependency>
  1247. </dependencies>
  1248. <!--<reporting> <plugins> <plugin> <groupId>org.codehaus.mojo</groupId>
  1249. <artifactId>findbugs-maven-plugin</artifactId> <version>2.5.2</version> </plugin>
  1250. </plugins> </reporting> -->
  1251. </project>