pom.xml 43 KB

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