pom.xml 64 KB

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