pom.xml 64 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759
  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>${packagingFormat}</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. <!-- On centos the python xml's are inside python package -->
  29. <python.xml.package>${python.ver}</python.xml.package>
  30. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  31. <deb.architecture>amd64</deb.architecture>
  32. <deb.dependency.list>openssl, postgresql (&gt;= 8.1), ${deb.python.ver}, curl</deb.dependency.list>
  33. <custom.tests>false</custom.tests>
  34. <hdpUrlForCentos6>http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.1.0</hdpUrlForCentos6>
  35. <hdpLatestUrl>http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json</hdpLatestUrl>
  36. <ambari_commons.install.dir>/usr/lib/ambari-server/lib/ambari_commons</ambari_commons.install.dir>
  37. <resource_management.install.dir>/usr/lib/ambari-server/lib/resource_management</resource_management.install.dir>
  38. <jinja.install.dir>/usr/lib/ambari-server/lib/ambari_jinja2</jinja.install.dir>
  39. <ambari-web-dir>${basedir}/../ambari-web/public</ambari-web-dir>
  40. <ambari-admin-dir>${basedir}/../ambari-admin</ambari-admin-dir>
  41. <contrib-views-dir>${basedir}/../contrib/views</contrib-views-dir>
  42. </properties>
  43. <build>
  44. <plugins>
  45. <plugin>
  46. <groupId>org.codehaus.mojo</groupId>
  47. <artifactId>build-helper-maven-plugin</artifactId>
  48. <version>1.8</version>
  49. <executions>
  50. <execution>
  51. <id>parse-version</id>
  52. <phase>validate</phase>
  53. <goals>
  54. <goal>parse-version</goal>
  55. </goals>
  56. </execution>
  57. <execution>
  58. <id>regex-property</id>
  59. <goals>
  60. <goal>regex-property</goal>
  61. </goals>
  62. <configuration>
  63. <name>ambariVersion</name>
  64. <value>${project.version}</value>
  65. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  66. <replacement>$1.$2.$3</replacement>
  67. <failIfNoMatch>false</failIfNoMatch>
  68. </configuration>
  69. </execution>
  70. </executions>
  71. </plugin>
  72. <plugin>
  73. <artifactId>maven-resources-plugin</artifactId>
  74. <version>2.6</version>
  75. <executions>
  76. <execution>
  77. <id>copy-resources</id>
  78. <phase>generate-test-resources</phase>
  79. <goals>
  80. <goal>copy-resources</goal>
  81. </goals>
  82. <configuration>
  83. <outputDirectory>${basedir}/target/</outputDirectory>
  84. <resources>
  85. <resource>
  86. <directory>${basedir}/../</directory>
  87. <includes>
  88. <include>version</include>
  89. </includes>
  90. <filtering>true</filtering>
  91. </resource>
  92. <resource>
  93. <directory>${basedir}/sbin/</directory>
  94. <includes>
  95. <include>ambari-server</include>
  96. </includes>
  97. <filtering>true</filtering>
  98. </resource>
  99. </resources>
  100. </configuration>
  101. </execution>
  102. </executions>
  103. </plugin>
  104. <plugin>
  105. <artifactId>maven-compiler-plugin</artifactId>
  106. <version>3.0</version>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-antrun-plugin</artifactId>
  111. <version>1.7</version>
  112. <executions>
  113. <execution>
  114. <phase>package</phase>
  115. <configuration>
  116. <tasks>
  117. <jar destfile="target/DBConnectionVerification.jar">
  118. <fileset dir="${basedir}/target/classes/"
  119. includes="**/DBConnectionVerification.class" />
  120. <manifest>
  121. <attribute name="Main-Class"
  122. value="org.apache.ambari.server.DBConnectionVerification" />
  123. </manifest>
  124. </jar>
  125. </tasks>
  126. </configuration>
  127. <goals>
  128. <goal>run</goal>
  129. </goals>
  130. </execution>
  131. </executions>
  132. </plugin>
  133. <plugin>
  134. <artifactId>maven-assembly-plugin</artifactId>
  135. <configuration>
  136. <descriptors>
  137. <descriptor>${assemblydescriptor}</descriptor>
  138. </descriptors>
  139. <tarLongFileMode>gnu</tarLongFileMode>
  140. </configuration>
  141. <executions>
  142. <execution>
  143. <id>build-tarball</id>
  144. <phase>package</phase>
  145. <goals>
  146. <goal>single</goal>
  147. </goals>
  148. </execution>
  149. </executions>
  150. </plugin>
  151. <plugin>
  152. <groupId>org.apache.rat</groupId>
  153. <artifactId>apache-rat-plugin</artifactId>
  154. <configuration>
  155. <excludes>
  156. <exclude>pass.txt</exclude>
  157. <exclude>derby.log</exclude>
  158. <exclude>src/test/resources/users.ldif</exclude>
  159. <exclude>src/test/resources/gsInstaller-hosts.txt</exclude>
  160. <exclude>src/test/resources/temporal_ganglia_data.txt</exclude>
  161. <exclude>src/test/resources/users.ldif</exclude>
  162. <exclude>src/main/resources/hive-schema-0.10.0.oracle.sql</exclude>
  163. <exclude>src/main/resources/hive-schema-0.12.0.oracle.sql</exclude>
  164. <exclude>src/main/resources/db/serial</exclude>
  165. <exclude>src/main/resources/db/index.txt</exclude>
  166. <exclude>src/main/resources/stacks/HDP/2.1.GlusterFS/services/YARN/package/templates/exclude_hosts_list.j2</exclude>
  167. <exclude>src/main/windows/ambari-server.cmd</exclude>
  168. <exclude>src/main/windows/ambari-server.ps1</exclude>
  169. <exclude>src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/balancer-emulator/balancer-err.log</exclude>
  170. <exclude>src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/balancer-emulator/balancer.log</exclude>
  171. <exclude>src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/scripts/balancer-emulator/balancer.log</exclude>
  172. <exclude>src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/scripts/balancer-emulator/balancer-err.log</exclude>
  173. <exclude>src/main/resources/stacks/PHD/3.0.0.0/services/HDFS/package/scripts/balancer-emulator/balancer.log</exclude>
  174. <exclude>src/main/resources/stacks/PHD/3.0.0.0/services/HDFS/package/scripts/balancer-emulator/balancer-err.log</exclude>
  175. <exclude>conf/unix/ca.config</exclude>
  176. <exclude>conf/unix/krb5JAASLogin.conf</exclude>
  177. <exclude>conf/windows/ca.config</exclude>
  178. <exclude>conf/windows/krb5JAASLogin.conf</exclude>
  179. <exclude>**/*.iml</exclude>
  180. <exclude>**/*.json</exclude>
  181. <exclude>**/*.sql</exclude>
  182. <exclude>**/*.wxs</exclude>
  183. <exclude>**/repo_suse_rhel.j2</exclude>
  184. <exclude>**/repo_debian.j2</exclude>
  185. <exclude>**/cluster.properties.j2</exclude>
  186. <exclude>**/repo_ubuntu.j2</exclude>
  187. <exclude>**/.pydev*</exclude>
  188. <!--gitignore content -->
  189. <exclude>src/main/resources/db/newcerts/**</exclude>
  190. <!-- Stack definitions -->
  191. <exclude>src/main/resources/stacks/HDP/2.0._/services/HBASE/package/templates/regionservers.j2</exclude>
  192. <exclude>src/main/resources/stacks/HDPWIN/2.1/services/*/configuration*/*</exclude>
  193. <!--test samples -->
  194. <exclude>src/test/resources/TestAmbaryServer.samples/**</exclude>
  195. <exclude>src/test/resources/*.txt</exclude>
  196. <exclude>src/test/resources/users_for_dn_with_space.ldif</exclude>
  197. <!--Velocity log -->
  198. <exclude>**/velocity.log*</exclude>
  199. </excludes>
  200. </configuration>
  201. <executions>
  202. <execution>
  203. <phase>test</phase>
  204. <goals>
  205. <goal>check</goal>
  206. </goals>
  207. </execution>
  208. </executions>
  209. </plugin>
  210. <plugin>
  211. <artifactId>eclipselink-staticweave-maven-plugin</artifactId>
  212. <groupId>au.com.alderaan</groupId>
  213. <version>1.0.4</version>
  214. <executions>
  215. <execution>
  216. <goals>
  217. <goal>weave</goal>
  218. </goals>
  219. <phase>process-classes</phase>
  220. <configuration>
  221. <logLevel>ALL</logLevel>
  222. <includeProjectClasspath>true</includeProjectClasspath>
  223. </configuration>
  224. </execution>
  225. </executions>
  226. <dependencies>
  227. <dependency>
  228. <groupId>org.eclipse.persistence</groupId>
  229. <artifactId>eclipselink</artifactId>
  230. <version>2.4.2</version>
  231. </dependency>
  232. </dependencies>
  233. </plugin>
  234. <plugin>
  235. <groupId>org.codehaus.mojo</groupId>
  236. <artifactId>rpm-maven-plugin</artifactId>
  237. <version>2.0.1</version>
  238. <executions>
  239. <execution>
  240. <!-- unbinds rpm creation from maven lifecycle -->
  241. <phase>none</phase>
  242. <goals>
  243. <goal>rpm</goal>
  244. </goals>
  245. </execution>
  246. </executions>
  247. <configuration>
  248. <copyright>2012, Apache Software Foundation</copyright>
  249. <group>Development</group>
  250. <description>Maven Recipe: RPM Package.</description>
  251. <autoRequires>no</autoRequires>
  252. <requires>
  253. <require>postgresql-server &gt;= 8.1</require>
  254. <require>openssl</require>
  255. <require>${python.ver}</require>
  256. <require>${python.xml.package}</require>
  257. </requires>
  258. <postinstallScriptlet>
  259. <scriptFile>src/main/package/rpm/postinstall.sh</scriptFile>
  260. <fileEncoding>utf-8</fileEncoding>
  261. </postinstallScriptlet>
  262. <preinstallScriptlet>
  263. <scriptFile>src/main/package/rpm/preinstall.sh</scriptFile>
  264. <fileEncoding>utf-8</fileEncoding>
  265. </preinstallScriptlet>
  266. <preremoveScriptlet>
  267. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  268. <fileEncoding>utf-8</fileEncoding>
  269. </preremoveScriptlet>
  270. <posttransScriptlet>
  271. <scriptFile>src/main/package/rpm/posttrans_server.sh</scriptFile>
  272. <fileEncoding>utf-8</fileEncoding>
  273. </posttransScriptlet>
  274. <defaultFilemode>644</defaultFilemode>
  275. <defaultDirmode>755</defaultDirmode>
  276. <defaultUsername>root</defaultUsername>
  277. <defaultGroupname>root</defaultGroupname>
  278. <mappings>
  279. <mapping>
  280. <directory>/usr/lib/ambari-server</directory>
  281. <dependency>
  282. </dependency>
  283. </mapping>
  284. <mapping>
  285. <directory>/usr/lib/ambari-server/web</directory>
  286. <sources>
  287. <source>
  288. <location>${ambari-web-dir}</location>
  289. <includes>
  290. <include>**</include>
  291. </includes>
  292. </source>
  293. </sources>
  294. </mapping>
  295. <mapping>
  296. <directory>/usr/lib/ambari-server</directory>
  297. <sources>
  298. <source>
  299. <location>${project.build.directory}/${project.artifactId}-${project.version}.jar</location>
  300. </source>
  301. </sources>
  302. </mapping>
  303. <mapping>
  304. <directory>${ambari_commons.install.dir}</directory>
  305. <sources>
  306. <source>
  307. <location>
  308. ${project.basedir}/../ambari-common/src/main/python/ambari_commons
  309. </location>
  310. </source>
  311. </sources>
  312. </mapping>
  313. <mapping>
  314. <directory>${resource_management.install.dir}</directory>
  315. <sources>
  316. <source>
  317. <location>
  318. ${project.basedir}/../ambari-common/src/main/python/resource_management
  319. </location>
  320. </source>
  321. </sources>
  322. </mapping>
  323. <mapping>
  324. <directory>${jinja.install.dir}</directory>
  325. <filemode>755</filemode>
  326. <username>root</username>
  327. <groupname>root</groupname>
  328. <sources>
  329. <source>
  330. <location>${project.basedir}/../ambari-common/src/main/python/ambari_jinja2/ambari_jinja2</location>
  331. <excludes>
  332. <exclude>${project.basedir}/../ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite</exclude>
  333. </excludes>
  334. </source>
  335. </sources>
  336. </mapping>
  337. <mapping>
  338. <directory>/usr/sbin</directory>
  339. <filemode>755</filemode>
  340. <username>root</username>
  341. <groupname>root</groupname>
  342. <directoryIncluded>false</directoryIncluded>
  343. <sources>
  344. <source>
  345. <location>src/main/python/ambari-server.py</location>
  346. </source>
  347. <source>
  348. <location>sbin/ambari-server</location>
  349. <filter>true</filter>
  350. </source>
  351. </sources>
  352. </mapping>
  353. <mapping>
  354. <directory>/var/lib/ambari-server/</directory>
  355. <filemode>755</filemode>
  356. <username>root</username>
  357. <groupname>root</groupname>
  358. <directoryIncluded>false</directoryIncluded>
  359. <sources>
  360. <source>
  361. <location>../ambari-common/src/main/unix/ambari-python-wrap</location>
  362. </source>
  363. </sources>
  364. </mapping>
  365. <mapping>
  366. <directory>/etc/ambari-server/conf</directory>
  367. <configuration>true</configuration>
  368. <sources>
  369. <source>
  370. <location>conf/unix/ambari.properties</location>
  371. </source>
  372. <source>
  373. <location>conf/unix/log4j.properties</location>
  374. </source>
  375. <source>
  376. <location>conf/unix/krb5JAASLogin.conf</location>
  377. </source>
  378. </sources>
  379. </mapping>
  380. <mapping>
  381. <directory>/var/lib/ambari-server/</directory>
  382. <filemode>700</filemode>
  383. <username>root</username>
  384. <groupname>root</groupname>
  385. <sources>
  386. <source>
  387. <location>conf/unix/ambari-env.sh</location>
  388. </source>
  389. </sources>
  390. </mapping>
  391. <mapping>
  392. <directory>/var/lib/ambari-server/</directory>
  393. <filemode>700</filemode>
  394. <username>root</username>
  395. <groupname>root</groupname>
  396. <sources>
  397. <source>
  398. <location>conf/unix/install-helper.sh</location>
  399. </source>
  400. </sources>
  401. </mapping>
  402. <mapping>
  403. <directory>/var/lib/ambari-server/keys</directory>
  404. <sources>
  405. <source>
  406. <location>conf/unix/ca.config</location>
  407. </source>
  408. </sources>
  409. </mapping>
  410. <mapping>
  411. <directory>/var/lib/ambari-server/keys/db</directory>
  412. <filemode>700</filemode>
  413. <username>root</username>
  414. <groupname>root</groupname>
  415. <sources>
  416. <source>
  417. <location>src/main/resources/db</location>
  418. </source>
  419. </sources>
  420. </mapping>
  421. <mapping>
  422. <directory>/var/run/ambari-server/bootstrap</directory>
  423. </mapping>
  424. <mapping>
  425. <directory>/var/run/ambari-server/stack-recommendations</directory>
  426. </mapping>
  427. <mapping>
  428. <directory>/var/log/ambari-server</directory>
  429. </mapping>
  430. <mapping>
  431. <directory>/var/lib/ambari-server/resources</directory>
  432. <sources>
  433. <source>
  434. <location>target/classes/Ambari-DDL-Postgres-CREATE.sql</location>
  435. </source>
  436. <source>
  437. <location>src/main/resources/Ambari-DDL-Postgres-DROP.sql</location>
  438. </source>
  439. <source>
  440. <location>target/classes/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql</location>
  441. </source>
  442. <source>
  443. <location>src/main/resources/Ambari-DDL-Postgres-EMBEDDED-DROP.sql</location>
  444. </source>
  445. <source>
  446. <location>target/classes/Ambari-DDL-Oracle-CREATE.sql</location>
  447. </source>
  448. <source>
  449. <location>target/classes/Ambari-DDL-MySQL-CREATE.sql</location>
  450. </source>
  451. <source>
  452. <location>src/main/resources/Ambari-DDL-Oracle-DROP.sql</location>
  453. </source>
  454. <source>
  455. <location>src/main/resources/Ambari-DDL-MySQL-DROP.sql</location>
  456. </source>
  457. <source>
  458. <location>target/classes/Ambari-DDL-SQLServer-CREATE.sql</location>
  459. </source>
  460. <source>
  461. <location>target/classes/Ambari-DDL-SQLServer-CREATELOCAL.sql</location>
  462. </source>
  463. <source>
  464. <location>src/main/resources/Ambari-DDL-SQLServer-DROP.sql</location>
  465. </source>
  466. <source>
  467. <location>${project.build.directory}/DBConnectionVerification.jar</location>
  468. </source>
  469. <source>
  470. <location>src/main/resources/role_command_order.json</location>
  471. </source>
  472. </sources>
  473. </mapping>
  474. <mapping>
  475. <directory>/var/lib/ambari-server/data/tmp</directory>
  476. <filemode>755</filemode>
  477. <username>root</username>
  478. <groupname>root</groupname>
  479. </mapping>
  480. <mapping>
  481. <directory>/var/lib/ambari-server/resources/apps</directory>
  482. <filemode>755</filemode>
  483. <username>root</username>
  484. <groupname>root</groupname>
  485. <sources>
  486. <source>
  487. <location>src/main/resources/slider_resources/README.txt</location>
  488. </source>
  489. </sources>
  490. </mapping>
  491. <mapping>
  492. <directory>/var/lib/ambari-server/resources/scripts</directory>
  493. <filemode>755</filemode>
  494. <sources>
  495. <source>
  496. <location>src/main/resources/scripts</location>
  497. </source>
  498. <source>
  499. <location>src/main/python/upgradeHelper.py</location>
  500. </source>
  501. </sources>
  502. </mapping>
  503. <mapping>
  504. <directory>/var/lib/ambari-server/resources/views</directory>
  505. <filemode>755</filemode>
  506. <sources>
  507. <source>
  508. <location>${ambari-admin-dir}/target</location>
  509. <includes>
  510. <include>*.jar</include>
  511. </includes>
  512. </source>
  513. </sources>
  514. </mapping>
  515. <mapping>
  516. <directory>/var/lib/ambari-server/resources/upgrade</directory>
  517. </mapping>
  518. <mapping>
  519. <directory>/var/lib/ambari-server/resources/upgrade/ddl</directory>
  520. <sources>
  521. <source>
  522. <location>src/main/resources/upgrade/ddl</location>
  523. </source>
  524. </sources>
  525. </mapping>
  526. <mapping>
  527. <directory>/var/lib/ambari-server/resources/upgrade/dml</directory>
  528. <sources>
  529. <source>
  530. <location>src/main/resources/upgrade/dml</location>
  531. </source>
  532. </sources>
  533. </mapping>
  534. <mapping>
  535. <directory>/var/lib/ambari-server/resources/common-services</directory>
  536. <sources>
  537. <source>
  538. <location>target/classes/common-services</location>
  539. </source>
  540. </sources>
  541. </mapping>
  542. <mapping>
  543. <directory>/var/lib/ambari-server/resources/upgrade/catalog</directory>
  544. <sources>
  545. <source>
  546. <location>src/main/resources/upgrade/catalog</location>
  547. </source>
  548. </sources>
  549. </mapping>
  550. <mapping>
  551. <directory>/var/lib/ambari-server/resources/stacks/${stack.distribution}</directory>
  552. <sources>
  553. <source>
  554. <location>target/classes/stacks/${stack.distribution}</location>
  555. </source>
  556. </sources>
  557. </mapping>
  558. <mapping>
  559. <directory>/var/lib/ambari-server/resources/stacks</directory>
  560. <filemode>755</filemode>
  561. <username>root</username>
  562. <groupname>root</groupname>
  563. <sources>
  564. <source>
  565. <location>target/classes/stacks/stack_advisor.py</location>
  566. </source>
  567. </sources>
  568. </mapping>
  569. <mapping>
  570. <directory>/usr/lib/python2.6/site-packages/ambari_server</directory>
  571. <filemode>755</filemode>
  572. <username>root</username>
  573. <groupname>root</groupname>
  574. <sources>
  575. <source>
  576. <location>src/main/python/ambari_server</location>
  577. </source>
  578. <source>
  579. <location>src/main/python/bootstrap.py</location>
  580. </source>
  581. <source>
  582. <location>src/main/python/setupAgent.py</location>
  583. </source>
  584. <source>
  585. <location>src/main/python/os_check_type.py</location>
  586. </source>
  587. </sources>
  588. </mapping>
  589. <mapping>
  590. <directory>/var/run/ambari-server</directory>
  591. </mapping>
  592. <mapping>
  593. <directory>/var/lib/ambari-server/resources</directory>
  594. <sources>
  595. <source>
  596. <location>../version</location>
  597. <filter>true</filter>
  598. </source>
  599. </sources>
  600. </mapping>
  601. <mapping>
  602. <directory>/var/lib/ambari-server/resources/custom_action_definitions</directory>
  603. <sources>
  604. <source>
  605. <location>src/main/resources/custom_action_definitions</location>
  606. </source>
  607. </sources>
  608. </mapping>
  609. <mapping>
  610. <!-- custom actions root-->
  611. <directory>/var/lib/ambari-server/resources/custom_actions</directory>
  612. <filemode>755</filemode>
  613. <username>root</username>
  614. <groupname>root</groupname>
  615. <sources>
  616. <source>
  617. <location>src/main/resources/custom_actions</location>
  618. </source>
  619. </sources>
  620. </mapping>
  621. <mapping>
  622. <directory>/var/lib/ambari-server/resources/host_scripts</directory>
  623. <filemode>755</filemode>
  624. <username>root</username>
  625. <groupname>root</groupname>
  626. <sources>
  627. <source>
  628. <location>src/main/resources/host_scripts</location>
  629. </source>
  630. </sources>
  631. </mapping>
  632. </mappings>
  633. </configuration>
  634. </plugin>
  635. <plugin>
  636. <groupId>org.vafer</groupId>
  637. <artifactId>jdeb</artifactId>
  638. <version>1.0.1</version>
  639. <executions>
  640. <execution>
  641. <!-- unbinds rpm creation from maven lifecycle -->
  642. <phase>none</phase>
  643. <goals>
  644. <goal>jdeb</goal>
  645. </goals>
  646. </execution>
  647. </executions>
  648. <configuration>
  649. <controlDir>${basedir}/src/main/package/deb/control</controlDir>
  650. <deb>${basedir}/target/${artifactId}_${package-version}-${package-release}.deb</deb>
  651. <dataSet>
  652. <data>
  653. <type>template</type>
  654. <paths>
  655. <path>/usr/lib/ambari-server</path>
  656. <path>/var/run/ambari-server</path>
  657. <path>/var/run/ambari-server/bootstrap</path>
  658. <path>/var/run/ambari-server/stack-recommendations</path>
  659. <path>/var/log/ambari-server</path>
  660. <path>/var/lib/ambari-server/resources/upgrade</path>
  661. <path>/var/lib/ambari-server/data/tmp</path>
  662. </paths>
  663. </data>
  664. <!-- TODO: should be included all subdirs, if exists-->
  665. <data>
  666. <src>${basedir}/../ambari-web/public</src>
  667. <type>directory</type>
  668. <mapper>
  669. <type>perm</type>
  670. <prefix>/usr/lib/ambari-server/web</prefix>
  671. </mapper>
  672. </data>
  673. <data>
  674. <src>${project.build.directory}/${project.artifactId}-${project.version}-dist/${project.artifactId}-${project.version}/lib</src>
  675. <type>directory</type>
  676. <mapper>
  677. <type>perm</type>
  678. <prefix>/usr/lib</prefix>
  679. </mapper>
  680. </data>
  681. <data>
  682. <src>src/main/python/ambari-server.py</src>
  683. <type>file</type>
  684. <mapper>
  685. <type>perm</type>
  686. <prefix>/usr/sbin</prefix>
  687. <user>root</user>
  688. <group>root</group>
  689. <filemode>755</filemode>
  690. </mapper>
  691. </data>
  692. <data>
  693. <src>src/main/python/ambari-server.py</src>
  694. <type>file</type>
  695. <mapper>
  696. <type>perm</type>
  697. <prefix>/usr/sbin</prefix>
  698. <user>root</user>
  699. <group>root</group>
  700. <filemode>755</filemode>
  701. </mapper>
  702. </data>
  703. <data>
  704. <src>../ambari-common/src/main/unix/ambari-python-wrap</src>
  705. <type>file</type>
  706. <mapper>
  707. <type>perm</type>
  708. <prefix>/var/lib/ambari-server</prefix>
  709. <user>root</user>
  710. <group>root</group>
  711. <filemode>755</filemode>
  712. </mapper>
  713. </data>
  714. <data>
  715. <src>${basedir}/target/ambari-server</src>
  716. <type>file</type>
  717. <mapper>
  718. <type>perm</type>
  719. <prefix>/usr/sbin</prefix>
  720. <user>root</user>
  721. <group>root</group>
  722. <filemode>755</filemode>
  723. </mapper>
  724. </data>
  725. <data>
  726. <src>conf/unix/ambari.properties</src>
  727. <type>file</type>
  728. <mapper>
  729. <type>perm</type>
  730. <prefix>/etc/ambari-server/conf</prefix>
  731. </mapper>
  732. </data>
  733. <data>
  734. <src>conf/unix/log4j.properties</src>
  735. <type>file</type>
  736. <mapper>
  737. <type>perm</type>
  738. <prefix>/etc/ambari-server/conf</prefix>
  739. </mapper>
  740. </data>
  741. <data>
  742. <src>conf/unix/krb5JAASLogin.conf</src>
  743. <type>file</type>
  744. <mapper>
  745. <type>perm</type>
  746. <prefix>/etc/ambari-server/conf</prefix>
  747. </mapper>
  748. </data>
  749. <!-- /q001 -->
  750. <data>
  751. <src>conf/unix/ambari-env.sh</src>
  752. <type>file</type>
  753. <mapper>
  754. <type>perm</type>
  755. <prefix>/var/lib/ambari-server/</prefix>
  756. <user>root</user>
  757. <group>root</group>
  758. <filemode>700</filemode>
  759. </mapper>
  760. </data>
  761. <data>
  762. <src>conf/unix/install-helper.sh</src>
  763. <type>file</type>
  764. <mapper>
  765. <type>perm</type>
  766. <prefix>/var/lib/ambari-server/</prefix>
  767. <user>root</user>
  768. <group>root</group>
  769. <filemode>700</filemode>
  770. </mapper>
  771. </data>
  772. <data>
  773. <src>src/main/resources/slider_resources/README.txt</src>
  774. <type>file</type>
  775. <mapper>
  776. <type>perm</type>
  777. <prefix>/var/lib/ambari-server/resources/apps/</prefix>
  778. <user>root</user>
  779. <group>root</group>
  780. <filemode>755</filemode>
  781. </mapper>
  782. </data>
  783. <data>
  784. <src>conf/unix/ca.config</src>
  785. <type>file</type>
  786. <mapper>
  787. <type>perm</type>
  788. <prefix>/var/lib/ambari-server/keys</prefix>
  789. </mapper>
  790. </data>
  791. <data>
  792. <src>src/main/resources/db</src>
  793. <type>directory</type>
  794. <mapper>
  795. <type>perm</type>
  796. <prefix>/var/lib/ambari-server/keys/db</prefix>
  797. <user>root</user>
  798. <group>root</group>
  799. <filemode>700</filemode>
  800. </mapper>
  801. </data>
  802. <data>
  803. <src>target/classes/Ambari-DDL-Postgres-CREATE.sql</src>
  804. <type>file</type>
  805. <mapper>
  806. <type>perm</type>
  807. <prefix>/var/lib/ambari-server/resources</prefix>
  808. </mapper>
  809. </data>
  810. <data>
  811. <src>src/main/resources/Ambari-DDL-Postgres-DROP.sql</src>
  812. <type>file</type>
  813. <mapper>
  814. <type>perm</type>
  815. <prefix>/var/lib/ambari-server/resources</prefix>
  816. </mapper>
  817. </data>
  818. <data>
  819. <src>target/classes/Ambari-DDL-Postgres-EMBEDDED-CREATE.sql</src>
  820. <type>file</type>
  821. <mapper>
  822. <type>perm</type>
  823. <prefix>/var/lib/ambari-server/resources</prefix>
  824. </mapper>
  825. </data>
  826. <data>
  827. <src>src/main/resources/Ambari-DDL-Postgres-EMBEDDED-DROP.sql</src>
  828. <type>file</type>
  829. <mapper>
  830. <type>perm</type>
  831. <prefix>/var/lib/ambari-server/resources</prefix>
  832. </mapper>
  833. </data>
  834. <data>
  835. <src>target/classes/Ambari-DDL-Oracle-CREATE.sql</src>
  836. <type>file</type>
  837. <mapper>
  838. <type>perm</type>
  839. <prefix>/var/lib/ambari-server/resources</prefix>
  840. </mapper>
  841. </data>
  842. <data>
  843. <src>target/classes/Ambari-DDL-MySQL-CREATE.sql</src>
  844. <type>file</type>
  845. <mapper>
  846. <type>perm</type>
  847. <prefix>/var/lib/ambari-server/resources</prefix>
  848. </mapper>
  849. </data>
  850. <data>
  851. <src>src/main/resources/Ambari-DDL-Oracle-DROP.sql</src>
  852. <type>file</type>
  853. <mapper>
  854. <type>perm</type>
  855. <prefix>/var/lib/ambari-server/resources</prefix>
  856. </mapper>
  857. </data>
  858. <data>
  859. <src>src/main/resources/Ambari-DDL-MySQL-DROP.sql</src>
  860. <type>file</type>
  861. <mapper>
  862. <type>perm</type>
  863. <prefix>/var/lib/ambari-server/resources</prefix>
  864. </mapper>
  865. </data>
  866. <data>
  867. <src>${project.build.directory}/DBConnectionVerification.jar</src>
  868. <type>file</type>
  869. <mapper>
  870. <type>perm</type>
  871. <prefix>/var/lib/ambari-server/resources</prefix>
  872. </mapper>
  873. </data>
  874. <data>
  875. <src>src/main/resources/role_command_order.json</src>
  876. <type>file</type>
  877. <mapper>
  878. <type>perm</type>
  879. <prefix>/var/lib/ambari-server/resources</prefix>
  880. </mapper>
  881. </data>
  882. <data>
  883. <src>src/main/resources/scripts</src>
  884. <type>directory</type>
  885. <mapper>
  886. <type>perm</type>
  887. <prefix>/var/lib/ambari-server/resources/scripts</prefix>
  888. <filemode>755</filemode>
  889. </mapper>
  890. </data>
  891. <data>
  892. <src>${ambari-admin-dir}/target</src>
  893. <type>directory</type>
  894. <includes>*.jar</includes>
  895. <mapper>
  896. <type>perm</type>
  897. <prefix>/var/lib/ambari-server/resources/views</prefix>
  898. </mapper>
  899. </data>
  900. <data>
  901. <src>src/main/python/upgradeHelper.py</src>
  902. <type>file</type>
  903. <mapper>
  904. <type>perm</type>
  905. <prefix>/var/lib/ambari-server/resources/scripts</prefix>
  906. <filemode>755</filemode>
  907. </mapper>
  908. </data>
  909. <data>
  910. <src>src/main/resources/upgrade/ddl</src>
  911. <type>directory</type>
  912. <mapper>
  913. <type>perm</type>
  914. <prefix>/var/lib/ambari-server/resources/upgrade/ddl</prefix>
  915. </mapper>
  916. </data>
  917. <data>
  918. <src>src/main/resources/upgrade/dml</src>
  919. <type>directory</type>
  920. <mapper>
  921. <type>perm</type>
  922. <prefix>/var/lib/ambari-server/resources/upgrade/dml</prefix>
  923. </mapper>
  924. </data>
  925. <data>
  926. <src>target/classes/common-services</src>
  927. <type>directory</type>
  928. <mapper>
  929. <type>perm</type>
  930. <prefix>/var/lib/ambari-server/resources/common-services</prefix>
  931. </mapper>
  932. </data>
  933. <data>
  934. <src>src/main/resources/upgrade/catalog</src>
  935. <type>directory</type>
  936. <mapper>
  937. <type>perm</type>
  938. <prefix>/var/lib/ambari-server/resources/upgrade/catalog</prefix>
  939. </mapper>
  940. </data>
  941. <data>
  942. <src>target/classes/stacks/${stack.distribution}</src>
  943. <type>directory</type>
  944. <mapper>
  945. <type>perm</type>
  946. <prefix>/var/lib/ambari-server/resources/stacks/${stack.distribution}</prefix>
  947. </mapper>
  948. </data>
  949. <data>
  950. <src>target/classes/stacks/stack_advisor.py</src>
  951. <type>file</type>
  952. <mapper>
  953. <type>perm</type>
  954. <prefix>/var/lib/ambari-server/resources/stacks</prefix>
  955. <user>root</user>
  956. <group>root</group>
  957. <filemode>755</filemode>
  958. </mapper>
  959. </data>
  960. <data>
  961. <src>src/main/python/ambari_server</src>
  962. <type>directory</type>
  963. <mapper>
  964. <type>perm</type>
  965. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  966. <user>root</user>
  967. <group>root</group>
  968. <filemode>755</filemode>
  969. </mapper>
  970. </data>
  971. <data>
  972. <src>src/main/python/bootstrap.py</src>
  973. <type>file</type>
  974. <mapper>
  975. <type>perm</type>
  976. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  977. <user>root</user>
  978. <group>root</group>
  979. <filemode>755</filemode>
  980. </mapper>
  981. </data>
  982. <data>
  983. <src>src/main/python/setupAgent.py</src>
  984. <type>file</type>
  985. <mapper>
  986. <type>perm</type>
  987. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  988. <user>root</user>
  989. <group>root</group>
  990. <filemode>755</filemode>
  991. </mapper>
  992. </data>
  993. <data>
  994. <src>src/main/python/os_check_type.py</src>
  995. <type>file</type>
  996. <mapper>
  997. <type>perm</type>
  998. <prefix>/usr/lib/python2.6/site-packages/ambari_server</prefix>
  999. <user>root</user>
  1000. <group>root</group>
  1001. <filemode>755</filemode>
  1002. </mapper>
  1003. </data>
  1004. <data>
  1005. <src>${basedir}/target/version</src>
  1006. <type>file</type>
  1007. <mapper>
  1008. <type>perm</type>
  1009. <prefix>/var/lib/ambari-server/resources</prefix>
  1010. </mapper>
  1011. </data>
  1012. <data>
  1013. <src>src/main/resources/custom_action_definitions</src>
  1014. <type>directory</type>
  1015. <mapper>
  1016. <type>perm</type>
  1017. <prefix>/var/lib/ambari-server/resources/custom_action_definitions</prefix>
  1018. </mapper>
  1019. </data>
  1020. <data>
  1021. <src>src/main/resources/custom_actions</src>
  1022. <type>directory</type>
  1023. <mapper>
  1024. <type>perm</type>
  1025. <prefix>/var/lib/ambari-server/resources/custom_actions</prefix>
  1026. <user>root</user>
  1027. <group>root</group>
  1028. <filemode>755</filemode>
  1029. </mapper>
  1030. </data>
  1031. <data>
  1032. <src>src/main/resources/host_scripts</src>
  1033. <type>directory</type>
  1034. <mapper>
  1035. <type>perm</type>
  1036. <prefix>/var/lib/ambari-server/resources/host_scripts</prefix>
  1037. <user>root</user>
  1038. <group>root</group>
  1039. <filemode>755</filemode>
  1040. </mapper>
  1041. </data>
  1042. <data>
  1043. <src>
  1044. ${project.basedir}/../ambari-common/src/main/python/ambari_commons
  1045. </src>
  1046. <type>directory</type>
  1047. <mapper>
  1048. <type>perm</type>
  1049. <prefix>${ambari_commons.install.dir}</prefix>
  1050. <filemode>755</filemode>
  1051. <user>root</user>
  1052. <group>root</group>
  1053. </mapper>
  1054. </data>
  1055. <data>
  1056. <src>
  1057. ${project.basedir}/../ambari-common/src/main/python/resource_management
  1058. </src>
  1059. <type>directory</type>
  1060. <mapper>
  1061. <type>perm</type>
  1062. <prefix>${resource_management.install.dir}</prefix>
  1063. <filemode>755</filemode>
  1064. <user>root</user>
  1065. <group>root</group>
  1066. </mapper>
  1067. </data>
  1068. <data>
  1069. <src>${project.basedir}/../ambari-common/src/main/python/ambari_jinja2/ambari_jinja2</src>
  1070. <excludes>${project.basedir}/../ambari-common/src/main/python/ambari_jinja2/ambari_jinja2/testsuite</excludes>
  1071. <type>directory</type>
  1072. <mapper>
  1073. <type>perm</type>
  1074. <prefix>${jinja.install.dir}</prefix>
  1075. <filemode>755</filemode>
  1076. <user>root</user>
  1077. <group>root</group>
  1078. </mapper>
  1079. </data>
  1080. </dataSet>
  1081. </configuration>
  1082. </plugin>
  1083. <plugin>
  1084. <groupId>org.codehaus.mojo</groupId>
  1085. <artifactId>findbugs-maven-plugin</artifactId>
  1086. <version>2.5.2</version>
  1087. <configuration>
  1088. <failOnError>false</failOnError>
  1089. </configuration>
  1090. <executions>
  1091. <execution>
  1092. <phase>verify</phase>
  1093. <goals>
  1094. <goal>check</goal>
  1095. </goals>
  1096. </execution>
  1097. </executions>
  1098. </plugin>
  1099. <plugin>
  1100. <groupId>org.apache.maven.plugins</groupId>
  1101. <artifactId>maven-surefire-plugin</artifactId>
  1102. <configuration>
  1103. <skip>${skipSurefireTests}</skip>
  1104. </configuration>
  1105. </plugin>
  1106. <plugin>
  1107. <groupId>org.codehaus.mojo</groupId>
  1108. <artifactId>exec-maven-plugin</artifactId>
  1109. <version>1.2</version>
  1110. <executions>
  1111. <execution>
  1112. <configuration>
  1113. <executable>${executable.python}</executable>
  1114. <workingDirectory>src/test/python</workingDirectory>
  1115. <arguments>
  1116. <argument>unitTests.py</argument>
  1117. <argument>${custom.tests}</argument>
  1118. </arguments>
  1119. <environmentVariables>
  1120. <PYTHONPATH>${path.python.1}${pathsep}$PYTHONPATH</PYTHONPATH>
  1121. </environmentVariables>
  1122. <skip>${skipTests}</skip>
  1123. </configuration>
  1124. <id>python-test</id>
  1125. <phase>test</phase>
  1126. <goals>
  1127. <goal>exec</goal>
  1128. </goals>
  1129. </execution>
  1130. </executions>
  1131. </plugin>
  1132. <plugin>
  1133. <groupId>com.atlassian.maven.plugins</groupId>
  1134. <artifactId>maven-clover2-plugin</artifactId>
  1135. <version>3.1.11</version>
  1136. <!-- <configuration> <licenseLocation>/path/to/clover.license</licenseLocation>
  1137. </configuration> -->
  1138. </plugin>
  1139. <plugin>
  1140. <groupId>org.codehaus.mojo</groupId>
  1141. <artifactId>buildnumber-maven-plugin</artifactId>
  1142. <version>${buildnumber-maven-plugin-version}</version>
  1143. <configuration>
  1144. <urlScm>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-ambari.git</urlScm>
  1145. </configuration>
  1146. <executions>
  1147. <execution>
  1148. <phase>validate</phase>
  1149. <goals>
  1150. <goal>create</goal>
  1151. </goals>
  1152. </execution>
  1153. </executions>
  1154. </plugin>
  1155. <plugin>
  1156. <groupId>org.apache.maven.plugins</groupId>
  1157. <artifactId>maven-antrun-plugin</artifactId>
  1158. <version>1.7</version>
  1159. <executions>
  1160. <execution>
  1161. <phase>package</phase>
  1162. <configuration>
  1163. <tasks>
  1164. <jar destfile="target/DBConnectionVerification.jar">
  1165. <fileset dir="${basedir}/target/classes/"
  1166. includes="**/DBConnectionVerification.class" />
  1167. <manifest>
  1168. <attribute name="Main-Class"
  1169. value="org.apache.ambari.server.DBConnectionVerification" />
  1170. </manifest>
  1171. </jar>
  1172. </tasks>
  1173. </configuration>
  1174. <goals>
  1175. <goal>run</goal>
  1176. </goals>
  1177. </execution>
  1178. <!-- Copies compiled views into known location for RPM builds -->
  1179. <execution>
  1180. <id>copy-view-jars</id>
  1181. <phase>package</phase>
  1182. <goals>
  1183. <goal>run</goal>
  1184. </goals>
  1185. <configuration>
  1186. <target>
  1187. <copy todir="${ambari-admin-dir}/target" flatten="true">
  1188. <fileset dir="${contrib-views-dir}">
  1189. <include name="*/target/*jar" />
  1190. </fileset>
  1191. </copy>
  1192. </target>
  1193. </configuration>
  1194. </execution>
  1195. </executions>
  1196. </plugin>
  1197. </plugins>
  1198. <resources>
  1199. <resource>
  1200. <directory>src/main/resources</directory>
  1201. <filtering>true</filtering>
  1202. <excludes>
  1203. <exclude>stacks/**</exclude>
  1204. <exclude>common-services/**</exclude>
  1205. </excludes>
  1206. </resource>
  1207. <resource>
  1208. <directory>src/main/resources</directory>
  1209. <filtering>false</filtering>
  1210. <includes>
  1211. <include>stacks/**</include>
  1212. <include>common-services/**</include>
  1213. </includes>
  1214. </resource>
  1215. </resources>
  1216. </build>
  1217. <profiles>
  1218. <profile>
  1219. <id>replaceurl</id>
  1220. <build>
  1221. <plugins>
  1222. <plugin>
  1223. <groupId>org.apache.maven.plugins</groupId>
  1224. <artifactId>maven-antrun-plugin</artifactId>
  1225. <version>1.7</version>
  1226. <executions>
  1227. <execution>
  1228. <id>set-hdp-url-classes</id>
  1229. <phase>process-classes</phase>
  1230. <goals>
  1231. <goal>run</goal>
  1232. </goals>
  1233. <configuration>
  1234. <target name="ambari-server-compile">
  1235. <exec dir="${basedir}" executable="bash"
  1236. failonerror="true">
  1237. <arg value="${basedir}/set-hdp-repo-url.sh" />
  1238. <arg value="${hdpUrlForCentos6}" />
  1239. <arg value="${hdpLatestUrl}" />
  1240. </exec>
  1241. </target>
  1242. </configuration>
  1243. </execution>
  1244. <execution>
  1245. <id>set-hdp-url-packages</id>
  1246. <phase>package</phase>
  1247. <goals>
  1248. <goal>run</goal>
  1249. </goals>
  1250. <configuration>
  1251. <target name="ambari-server-compile">
  1252. <exec dir="${basedir}" executable="bash"
  1253. failonerror="true">
  1254. <arg value="${basedir}/set-hdp-repo-url.sh" />
  1255. <arg value="${hdpUrlForCentos6}" />
  1256. <arg value="${hdpLatestUrl}" />
  1257. <arg
  1258. value="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}" />
  1259. </exec>
  1260. </target>
  1261. </configuration>
  1262. </execution>
  1263. </executions>
  1264. </plugin>
  1265. </plugins>
  1266. </build>
  1267. </profile>
  1268. <profile>
  1269. <id>windows</id>
  1270. <activation>
  1271. <os>
  1272. <family>win</family>
  1273. </os>
  1274. </activation>
  1275. <properties>
  1276. <envClassifier>win</envClassifier>
  1277. <dirsep>\</dirsep>
  1278. <pathsep>;</pathsep>
  1279. <executable.python>python</executable.python>
  1280. <executable.shell>cmd</executable.shell>
  1281. <fileextension.shell>cmd</fileextension.shell>
  1282. <fileextension.dot.shell-default>.cmd</fileextension.dot.shell-default>
  1283. <path.python.1>${project.basedir}\..\ambari-common\src\main\python;${project.basedir}\..\ambari-agent\src\main\python;${project.basedir}\..\ambari-common\src\main\python\ambari_jinja2;${project.basedir}\..\ambari-common\src\main\python\ambari_commons;${project.basedir}\..\ambari-common\src\test\python;${project.basedir}\src\main\python;${project.basedir}\src\main\python\ambari-server-state;${project.basedir}\src\main\resources\custom_actions;${project.basedir}\src\main\resources\scripts;${project.basedir}\src\test\python</path.python.1>
  1284. <assemblydescriptor>src/main/assemblies/server-windows.xml</assemblydescriptor>
  1285. <packagingFormat>jar</packagingFormat>
  1286. </properties>
  1287. <build>
  1288. <plugins>
  1289. <plugin>
  1290. <groupId>org.codehaus.mojo</groupId>
  1291. <artifactId>exec-maven-plugin</artifactId>
  1292. <version>1.2</version>
  1293. <executions>
  1294. <execution>
  1295. <id>run-heat</id>
  1296. <phase>package</phase>
  1297. <goals>
  1298. <goal>exec</goal>
  1299. </goals>
  1300. <configuration>
  1301. <executable>heat.exe</executable>
  1302. <arguments>
  1303. <argument>dir</argument>
  1304. <argument>"."</argument>
  1305. <argument>-dr</argument>
  1306. <argument>"SERVER_INSTALL_DIRECTORY"</argument>
  1307. <argument>-platform</argument>
  1308. <argument>Win64</argument>
  1309. <argument>-cg</argument>
  1310. <argument>"AmbariServerGroup"</argument>
  1311. <argument>-gg</argument>
  1312. <argument>-ke</argument>
  1313. <argument>-srd</argument>
  1314. <argument>-o</argument>
  1315. <argument>".\..\..\ambari-server-files.wxs"</argument>
  1316. </arguments>
  1317. <workingDirectory>target/ambari-server-${project.version}-dist/ambari-server-${project.version}</workingDirectory>
  1318. </configuration>
  1319. </execution>
  1320. </executions>
  1321. </plugin>
  1322. <plugin>
  1323. <groupId>org.apache.npanday.plugins</groupId>
  1324. <artifactId>wix-maven-plugin</artifactId>
  1325. <version>1.4.0-incubating</version>
  1326. <extensions>true</extensions>
  1327. <configuration>
  1328. <sourceFiles>
  1329. <sourceFile>target/ambari-server.wxs</sourceFile>
  1330. <sourceFile>target/ambari-server-files.wxs</sourceFile>
  1331. </sourceFiles>
  1332. <outputDirectory>target</outputDirectory>
  1333. <objectFiles>
  1334. <objectFile>target/ambari-server.wixobj</objectFile>
  1335. <objectFile>target/ambari-server-files.wixobj</objectFile>
  1336. </objectFiles>
  1337. <outputFile>target/ambari-server-${project.version}.msi</outputFile>
  1338. <extensions>
  1339. <extension>WixUIExtension</extension>
  1340. </extensions>
  1341. </configuration>
  1342. <executions>
  1343. <execution>
  1344. <id>wix-candle</id>
  1345. <phase>package</phase>
  1346. <goals>
  1347. <goal>candle</goal>
  1348. </goals>
  1349. <configuration>
  1350. <arguments>-arch x64</arguments>
  1351. </configuration>
  1352. </execution>
  1353. <execution>
  1354. <id>wix-light</id>
  1355. <phase>package</phase>
  1356. <goals>
  1357. <goal>light</goal>
  1358. </goals>
  1359. <configuration>
  1360. <arguments>-b ${basedir}/target/ambari-server-${project.version}-dist/ambari-server-${project.version}</arguments>
  1361. </configuration>
  1362. </execution>
  1363. </executions>
  1364. </plugin>
  1365. </plugins>
  1366. </build>
  1367. <dependencies>
  1368. <dependency>
  1369. <groupId>org.apache.npanday.plugins</groupId>
  1370. <artifactId>wix-maven-plugin</artifactId>
  1371. <version>1.4.0-incubating</version>
  1372. <scope>test</scope>
  1373. </dependency>
  1374. <dependency>
  1375. <groupId>${pom.groupId}</groupId>
  1376. <artifactId>metrics-sink</artifactId>
  1377. <version>1.0.0</version>
  1378. </dependency>
  1379. </dependencies>
  1380. </profile>
  1381. <profile>
  1382. <id>linux</id>
  1383. <activation>
  1384. <os>
  1385. <family>unix</family>
  1386. </os>
  1387. </activation>
  1388. <properties>
  1389. <envClassifier>linux</envClassifier>
  1390. <dirsep>/</dirsep>
  1391. <pathsep>:</pathsep>
  1392. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  1393. <executable.shell>sh</executable.shell>
  1394. <fileextension.shell>sh</fileextension.shell>
  1395. <fileextension.dot.shell-default></fileextension.dot.shell-default>
  1396. <path.python.1>${project.basedir}/../ambari-common/src/main/python:${project.basedir}/../ambari-agent/src/main/python:${project.basedir}/../ambari-common/src/main/python/ambari_jinja2:${project.basedir}/../ambari-common/src/main/python/ambari_commons:${project.basedir}/../ambari-common/src/test/python:${project.basedir}/src/main/python:${project.basedir}/src/main/python/ambari-server-state:${project.basedir}/src/main/resources/custom_actions:${project.basedir}/src/main/resources/scripts:${project.basedir}/src/test/python</path.python.1>
  1397. <assemblydescriptor>src/main/assemblies/server.xml</assemblydescriptor>
  1398. <packagingFormat>jar</packagingFormat>
  1399. </properties>
  1400. </profile>
  1401. <profile>
  1402. <id>suse11</id>
  1403. <properties>
  1404. <python.xml.package>python-xml</python.xml.package>
  1405. </properties>
  1406. </profile>
  1407. </profiles>
  1408. <dependencies>
  1409. <dependency>
  1410. <groupId>${pom.groupId}</groupId>
  1411. <artifactId>ambari-views</artifactId>
  1412. <version>${project.version}</version>
  1413. </dependency>
  1414. <dependency>
  1415. <groupId>commons-io</groupId>
  1416. <artifactId>commons-io</artifactId>
  1417. </dependency>
  1418. <dependency>
  1419. <groupId>org.apache.commons</groupId>
  1420. <artifactId>commons-csv</artifactId>
  1421. </dependency>
  1422. <dependency>
  1423. <groupId>com.google.inject.extensions</groupId>
  1424. <artifactId>guice-assistedinject</artifactId>
  1425. </dependency>
  1426. <dependency>
  1427. <groupId>com.google.inject.extensions</groupId>
  1428. <artifactId>guice-persist</artifactId>
  1429. </dependency>
  1430. <dependency>
  1431. <groupId>com.google.inject.extensions</groupId>
  1432. <artifactId>guice-servlet</artifactId>
  1433. </dependency>
  1434. <dependency>
  1435. <groupId>com.google.inject.extensions</groupId>
  1436. <artifactId>guice-multibindings</artifactId>
  1437. <version>3.0</version>
  1438. </dependency>
  1439. <dependency>
  1440. <groupId>org.apache.derby</groupId>
  1441. <artifactId>derby</artifactId>
  1442. </dependency>
  1443. <dependency>
  1444. <groupId>org.springframework.security</groupId>
  1445. <artifactId>spring-security-core</artifactId>
  1446. </dependency>
  1447. <dependency>
  1448. <groupId>org.springframework.security</groupId>
  1449. <artifactId>spring-security-config</artifactId>
  1450. </dependency>
  1451. <dependency>
  1452. <groupId>org.springframework.security</groupId>
  1453. <artifactId>spring-security-web</artifactId>
  1454. </dependency>
  1455. <dependency>
  1456. <groupId>org.springframework</groupId>
  1457. <artifactId>spring-mock</artifactId>
  1458. <scope>test</scope>
  1459. </dependency>
  1460. <dependency>
  1461. <groupId>org.springframework.security</groupId>
  1462. <artifactId>spring-security-ldap</artifactId>
  1463. </dependency>
  1464. <dependency>
  1465. <groupId>org.springframework.ldap</groupId>
  1466. <artifactId>spring-ldap-core</artifactId>
  1467. </dependency>
  1468. <dependency>
  1469. <groupId>org.apache.directory.server</groupId>
  1470. <artifactId>apacheds-server-annotations</artifactId>
  1471. <scope>test</scope>
  1472. </dependency>
  1473. <dependency>
  1474. <groupId>org.apache.directory.server</groupId>
  1475. <artifactId>apacheds-core-integ</artifactId>
  1476. <scope>test</scope>
  1477. </dependency>
  1478. <dependency>
  1479. <groupId>org.apache.directory.server</groupId>
  1480. <artifactId>apacheds-server-integ</artifactId>
  1481. <scope>test</scope>
  1482. </dependency>
  1483. <dependency>
  1484. <groupId>org.apache.directory.server</groupId>
  1485. <artifactId>apacheds-jdbm</artifactId>
  1486. <scope>test</scope>
  1487. </dependency>
  1488. <dependency>
  1489. <groupId>org.apache.directory.server</groupId>
  1490. <artifactId>apacheds-kerberos-codec</artifactId>
  1491. </dependency>
  1492. <dependency>
  1493. <groupId>org.apache.directory.server</groupId>
  1494. <artifactId>apacheds-core</artifactId>
  1495. <scope>test</scope>
  1496. </dependency>
  1497. <dependency>
  1498. <groupId>org.apache.directory.server</groupId>
  1499. <artifactId>apacheds-protocol-ldap</artifactId>
  1500. <scope>test</scope>
  1501. </dependency>
  1502. <dependency>
  1503. <groupId>org.apache.directory.shared</groupId>
  1504. <artifactId>shared-ldap</artifactId>
  1505. <scope>test</scope>
  1506. </dependency>
  1507. <dependency>
  1508. <groupId>org.slf4j</groupId>
  1509. <artifactId>slf4j-api</artifactId>
  1510. </dependency>
  1511. <dependency>
  1512. <groupId>org.slf4j</groupId>
  1513. <artifactId>slf4j-log4j12</artifactId>
  1514. </dependency>
  1515. <dependency>
  1516. <groupId>log4j</groupId>
  1517. <artifactId>log4j</artifactId>
  1518. </dependency>
  1519. <dependency>
  1520. <groupId>org.eclipse.persistence</groupId>
  1521. <artifactId>eclipselink</artifactId>
  1522. </dependency>
  1523. <dependency>
  1524. <groupId>org.mockito</groupId>
  1525. <artifactId>mockito-core</artifactId>
  1526. <scope>test</scope>
  1527. </dependency>
  1528. <dependency>
  1529. <groupId>org.eclipse.jetty</groupId>
  1530. <artifactId>jetty-security</artifactId>
  1531. </dependency>
  1532. <dependency>
  1533. <groupId>org.eclipse.jetty</groupId>
  1534. <artifactId>jetty-servlet</artifactId>
  1535. </dependency>
  1536. <dependency>
  1537. <groupId>org.eclipse.jetty</groupId>
  1538. <artifactId>jetty-webapp</artifactId>
  1539. </dependency>
  1540. <dependency>
  1541. <groupId>org.eclipse.jetty</groupId>
  1542. <artifactId>jetty-server</artifactId>
  1543. </dependency>
  1544. <dependency>
  1545. <groupId>commons-logging</groupId>
  1546. <artifactId>commons-logging</artifactId>
  1547. </dependency>
  1548. <dependency>
  1549. <groupId>commons-codec</groupId>
  1550. <artifactId>commons-codec</artifactId>
  1551. </dependency>
  1552. <dependency>
  1553. <groupId>commons-lang</groupId>
  1554. <artifactId>commons-lang</artifactId>
  1555. </dependency>
  1556. <dependency>
  1557. <groupId>commons-httpclient</groupId>
  1558. <artifactId>commons-httpclient</artifactId>
  1559. </dependency>
  1560. <dependency>
  1561. <groupId>commons-net</groupId>
  1562. <artifactId>commons-net</artifactId>
  1563. <version>1.4.1</version>
  1564. </dependency>
  1565. <dependency>
  1566. <groupId>javax.servlet</groupId>
  1567. <artifactId>servlet-api</artifactId>
  1568. </dependency>
  1569. <dependency>
  1570. <groupId>com.sun.jersey</groupId>
  1571. <artifactId>jersey-json</artifactId>
  1572. <exclusions>
  1573. <exclusion>
  1574. <groupId>org.codehaus.jackson</groupId>
  1575. <artifactId>jackson-xc</artifactId>
  1576. </exclusion>
  1577. <exclusion>
  1578. <groupId>org.codehaus.jettison</groupId>
  1579. <artifactId>jettison</artifactId>
  1580. </exclusion>
  1581. <exclusion>
  1582. <groupId>org.codehaus.jackson</groupId>
  1583. <artifactId>jackson-mapper-asl</artifactId>
  1584. </exclusion>
  1585. </exclusions>
  1586. </dependency>
  1587. <dependency>
  1588. <groupId>com.sun.jersey</groupId>
  1589. <artifactId>jersey-server</artifactId>
  1590. </dependency>
  1591. <dependency>
  1592. <groupId>com.sun.jersey</groupId>
  1593. <artifactId>jersey-client</artifactId>
  1594. </dependency>
  1595. <dependency>
  1596. <groupId>com.sun.jersey.contribs</groupId>
  1597. <artifactId>jersey-multipart</artifactId>
  1598. </dependency>
  1599. <dependency>
  1600. <groupId>com.sun.jersey.contribs</groupId>
  1601. <artifactId>jersey-guice</artifactId>
  1602. </dependency>
  1603. <dependency>
  1604. <groupId>org.codehaus.jackson</groupId>
  1605. <artifactId>jackson-mapper-asl</artifactId>
  1606. <version>1.9.2</version>
  1607. </dependency>
  1608. <dependency>
  1609. <groupId>org.codehaus.jackson</groupId>
  1610. <artifactId>jackson-core-asl</artifactId>
  1611. </dependency>
  1612. <dependency>
  1613. <groupId>org.codehaus.jackson</groupId>
  1614. <artifactId>jackson-jaxrs</artifactId>
  1615. </dependency>
  1616. <dependency>
  1617. <groupId>org.codehaus.jackson</groupId>
  1618. <artifactId>jackson-xc</artifactId>
  1619. </dependency>
  1620. <dependency>
  1621. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1622. <artifactId>jersey-test-framework-core</artifactId>
  1623. <scope>test</scope>
  1624. </dependency>
  1625. <dependency>
  1626. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1627. <artifactId>jersey-test-framework-grizzly2</artifactId>
  1628. <scope>test</scope>
  1629. </dependency>
  1630. <dependency>
  1631. <groupId>org.codehaus.jettison</groupId>
  1632. <artifactId>jettison</artifactId>
  1633. <scope>test</scope>
  1634. </dependency>
  1635. <dependency>
  1636. <groupId>junit</groupId>
  1637. <artifactId>junit</artifactId>
  1638. <scope>test</scope>
  1639. </dependency>
  1640. <dependency>
  1641. <groupId>org.easymock</groupId>
  1642. <artifactId>easymock</artifactId>
  1643. <version>3.1</version>
  1644. <scope>test</scope>
  1645. </dependency>
  1646. <dependency>
  1647. <groupId>org.powermock</groupId>
  1648. <artifactId>powermock-core</artifactId>
  1649. <version>1.5</version>
  1650. <scope>test</scope>
  1651. </dependency>
  1652. <dependency>
  1653. <groupId>org.powermock</groupId>
  1654. <artifactId>powermock-reflect</artifactId>
  1655. <version>1.5</version>
  1656. <scope>test</scope>
  1657. </dependency>
  1658. <dependency>
  1659. <groupId>org.powermock</groupId>
  1660. <artifactId>powermock-api-easymock</artifactId>
  1661. <version>1.5</version>
  1662. <scope>test</scope>
  1663. </dependency>
  1664. <dependency>
  1665. <groupId>org.powermock</groupId>
  1666. <artifactId>powermock-module-junit4</artifactId>
  1667. <version>1.5</version>
  1668. <scope>test</scope>
  1669. </dependency>
  1670. <dependency>
  1671. <groupId>org.objenesis</groupId>
  1672. <artifactId>objenesis-tck</artifactId>
  1673. <version>1.2</version>
  1674. </dependency>
  1675. <dependency>
  1676. <groupId>cglib</groupId>
  1677. <artifactId>cglib</artifactId>
  1678. <version>2.2.2</version>
  1679. </dependency>
  1680. <dependency>
  1681. <groupId>asm</groupId>
  1682. <artifactId>asm</artifactId>
  1683. <version>3.3.1</version>
  1684. </dependency>
  1685. <dependency>
  1686. <groupId>com.google.inject</groupId>
  1687. <artifactId>guice</artifactId>
  1688. <version>3.0</version>
  1689. </dependency>
  1690. <dependency>
  1691. <groupId>com.google.code.gson</groupId>
  1692. <artifactId>gson</artifactId>
  1693. <version>2.2.2</version>
  1694. </dependency>
  1695. <dependency>
  1696. <groupId>org.postgresql</groupId>
  1697. <artifactId>postgresql</artifactId>
  1698. <version>9.3-1101-jdbc4</version>
  1699. </dependency>
  1700. <dependency>
  1701. <groupId>org.apache.httpcomponents</groupId>
  1702. <artifactId>httpclient</artifactId>
  1703. <version>4.2.5</version>
  1704. </dependency>
  1705. <dependency>
  1706. <groupId>com.google.guava</groupId>
  1707. <artifactId>guava</artifactId>
  1708. <version>14.0.1</version>
  1709. </dependency>
  1710. <dependency>
  1711. <groupId>com.google.code.findbugs</groupId>
  1712. <artifactId>jsr305</artifactId>
  1713. <version>1.3.9</version>
  1714. </dependency>
  1715. <dependency>
  1716. <groupId>org.quartz-scheduler</groupId>
  1717. <artifactId>quartz</artifactId>
  1718. <version>2.2.1</version>
  1719. </dependency>
  1720. <dependency>
  1721. <groupId>org.quartz-scheduler</groupId>
  1722. <artifactId>quartz-jobs</artifactId>
  1723. <version>2.2.1</version>
  1724. </dependency>
  1725. <dependency>
  1726. <groupId>org.apache.velocity</groupId>
  1727. <artifactId>velocity</artifactId>
  1728. <version>1.7</version>
  1729. </dependency>
  1730. <dependency>
  1731. <groupId>com.sun.mail</groupId>
  1732. <artifactId>mailapi</artifactId>
  1733. <version>1.5.2</version>
  1734. </dependency>
  1735. <dependency>
  1736. <groupId>com.sun.mail</groupId>
  1737. <artifactId>smtp</artifactId>
  1738. <version>1.5.2</version>
  1739. </dependency>
  1740. <dependency>
  1741. <groupId>org.snmp4j</groupId>
  1742. <artifactId>snmp4j</artifactId>
  1743. <version>1.10.1</version>
  1744. </dependency>
  1745. </dependencies>
  1746. <pluginRepositories>
  1747. <pluginRepository>
  1748. <id>oss.sonatype.org</id>
  1749. <name>OSS Sonatype Staging</name>
  1750. <url>https://oss.sonatype.org/content/groups/staging</url>
  1751. </pluginRepository>
  1752. </pluginRepositories>
  1753. </project>