pom.xml 44 KB

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