pom.xml 66 KB

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