pom.xml 51 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392
  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.4.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.4.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. <deb.architecture>amd64</deb.architecture>
  30. <custom.tests>false</custom.tests>
  31. <hdpUrlForCentos6>http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.1.1.0</hdpUrlForCentos6>
  32. <hdpLatestUrl>http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json</hdpLatestUrl>
  33. <ambari_commons.install.dir>/usr/lib/ambari-server/lib/ambari_commons</ambari_commons.install.dir>
  34. <resource_management.install.dir>/usr/lib/ambari-server/lib/resource_management</resource_management.install.dir>
  35. <jinja.install.dir>/usr/lib/ambari-server/lib/ambari_jinja2</jinja.install.dir>
  36. <simplejson.install.dir>/usr/lib/ambari-server/lib/ambari_simplejson</simplejson.install.dir>
  37. <ambari-web-dir>${basedir}/../ambari-web/public</ambari-web-dir>
  38. <ambari-admin-dir>${basedir}/../ambari-admin</ambari-admin-dir>
  39. <contrib-views-dir>${basedir}/../contrib/views</contrib-views-dir>
  40. <resourceManagementSrcLocation>${project.basedir}/../ambari-common/src/main/python/resource_management</resourceManagementSrcLocation>
  41. <customActionsRoot>src/main/resources/custom_actions</customActionsRoot>
  42. <ambariProperties>conf/unix/ambari.properties</ambariProperties>
  43. <commonServicesSrcLocation>src/main/resources/common-services</commonServicesSrcLocation>
  44. <stacksSrcLocation>src/main/resources/stacks/${stack.distribution}</stacksSrcLocation>
  45. <tarballResourcesFolder>src/main/resources</tarballResourcesFolder>
  46. <skipPythonTests>false</skipPythonTests>
  47. <hadoop.version>2.7.1</hadoop.version>
  48. <jetty.version>9.2.11.v20150529</jetty.version>
  49. <empty.dir>src/main/package</empty.dir> <!-- any directory in project with not very big amount of files (not to waste-load them) -->
  50. </properties>
  51. <build>
  52. <plugins>
  53. <plugin>
  54. <groupId>org.codehaus.mojo</groupId>
  55. <artifactId>build-helper-maven-plugin</artifactId>
  56. <version>1.8</version>
  57. <executions>
  58. <execution>
  59. <id>parse-version</id>
  60. <phase>validate</phase>
  61. <goals>
  62. <goal>parse-version</goal>
  63. </goals>
  64. </execution>
  65. <execution>
  66. <id>regex-property</id>
  67. <goals>
  68. <goal>regex-property</goal>
  69. </goals>
  70. <configuration>
  71. <name>ambariVersion</name>
  72. <value>${project.version}</value>
  73. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  74. <replacement>$1.$2.$3.$4</replacement>
  75. <failIfNoMatch>false</failIfNoMatch>
  76. </configuration>
  77. </execution>
  78. <execution>
  79. <id>full-version</id>
  80. <goals>
  81. <goal>regex-property</goal>
  82. </goals>
  83. <configuration>
  84. <name>ambariFullVersion</name>
  85. <value>${project.version}</value>
  86. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-)([0-9]+).*</regex>
  87. <replacement>$1.$2.$3.$4-$6</replacement>
  88. <failIfNoMatch>false</failIfNoMatch>
  89. </configuration>
  90. </execution>
  91. <execution>
  92. <id>regex-schema-version</id>
  93. <goals>
  94. <goal>regex-property</goal>
  95. </goals>
  96. <configuration>
  97. <name>ambariSchemaVersion</name>
  98. <value>${project.version}</value>
  99. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  100. <replacement>$1.$2.$3</replacement>
  101. <failIfNoMatch>false</failIfNoMatch>
  102. </configuration>
  103. </execution>
  104. </executions>
  105. </plugin>
  106. <plugin>
  107. <artifactId>maven-compiler-plugin</artifactId>
  108. <version>3.0</version>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-antrun-plugin</artifactId>
  113. <version>1.7</version>
  114. <executions>
  115. <execution>
  116. <phase>package</phase>
  117. <configuration>
  118. <tasks>
  119. <jar destfile="target/DBConnectionVerification.jar">
  120. <fileset dir="${basedir}/target/classes/"
  121. includes="**/DBConnectionVerification.class" />
  122. <manifest>
  123. <attribute name="Main-Class"
  124. value="org.apache.ambari.server.DBConnectionVerification" />
  125. </manifest>
  126. </jar>
  127. </tasks>
  128. </configuration>
  129. <goals>
  130. <goal>run</goal>
  131. </goals>
  132. </execution>
  133. <!-- Copies compiled views into known location for RPM builds -->
  134. <execution>
  135. <id>copy-view-jars</id>
  136. <phase>package</phase>
  137. <goals>
  138. <goal>run</goal>
  139. </goals>
  140. <configuration>
  141. <target>
  142. <copy todir="${ambari-admin-dir}/target" flatten="true">
  143. <fileset dir="${contrib-views-dir}">
  144. <include name="*/target/*jar" />
  145. <exclude name="**/ambari-views-utils*jar" />
  146. <exclude name="**/ambari-views-commons*jar" />
  147. </fileset>
  148. </copy>
  149. </target>
  150. </configuration>
  151. </execution>
  152. </executions>
  153. </plugin>
  154. <plugin>
  155. <artifactId>maven-assembly-plugin</artifactId>
  156. <configuration>
  157. <descriptors>
  158. <descriptor>${assemblydescriptor}</descriptor>
  159. </descriptors>
  160. <tarLongFileMode>gnu</tarLongFileMode>
  161. </configuration>
  162. <executions>
  163. <execution>
  164. <id>build-tarball</id>
  165. <phase>${assemblyPhase}</phase>
  166. <goals>
  167. <goal>single</goal>
  168. </goals>
  169. </execution>
  170. </executions>
  171. </plugin>
  172. <plugin>
  173. <artifactId>maven-resources-plugin</artifactId>
  174. <version>2.6</version>
  175. <executions>
  176. <execution>
  177. <id>copy-resources</id>
  178. <phase>generate-test-resources</phase>
  179. <goals>
  180. <goal>copy-resources</goal>
  181. </goals>
  182. <configuration>
  183. <outputDirectory>${basedir}/target/</outputDirectory>
  184. <resources>
  185. <resource>
  186. <directory>${basedir}/../</directory>
  187. <includes>
  188. <include>version</include>
  189. </includes>
  190. <filtering>true</filtering>
  191. </resource>
  192. <resource>
  193. <directory>${basedir}/sbin/</directory>
  194. <includes>
  195. <include>ambari-server</include>
  196. </includes>
  197. <filtering>true</filtering>
  198. </resource>
  199. </resources>
  200. </configuration>
  201. </execution>
  202. <execution>
  203. <id>copy-repo-resources</id>
  204. <phase>${assemblyPhase}</phase>
  205. <goals>
  206. <goal>copy-resources</goal>
  207. </goals>
  208. <configuration>
  209. <outputDirectory>${basedir}/target/repo</outputDirectory>
  210. <resources>
  211. <resource>
  212. <directory>${project.basedir}/../ambari-common/src/main/repo</directory>
  213. </resource>
  214. <resource>
  215. <directory>${project.build.directory}</directory>
  216. <includes>
  217. <include>${project.artifactId}-${project.version}-dist.tar.gz</include>
  218. </includes>
  219. </resource>
  220. <resource>
  221. <directory>${basedir}/src/main/package/deb/control</directory>
  222. </resource>
  223. <resource>
  224. <directory>${basedir}/src/main/package</directory>
  225. <includes>
  226. <include>dependencies.properties</include>
  227. </includes>
  228. </resource>
  229. <resource>
  230. <directory>${project.basedir}/../ambari-common/src/main/python/ambari_commons</directory>
  231. <includes>
  232. <include>os_check.py</include>
  233. <include>resources/os_family.json</include>
  234. </includes>
  235. </resource>
  236. </resources>
  237. </configuration>
  238. </execution>
  239. </executions>
  240. </plugin>
  241. <plugin>
  242. <groupId>com.coderplus.maven.plugins</groupId>
  243. <artifactId>copy-rename-maven-plugin</artifactId>
  244. <version>1.0.1</version>
  245. <executions>
  246. <execution>
  247. <id>rename-file</id>
  248. <phase>${assemblyPhase}</phase>
  249. <goals>
  250. <goal>rename</goal>
  251. </goals>
  252. <configuration>
  253. <sourceFile>${basedir}/target/repo/${project.artifactId}-${project.version}-dist.tar.gz</sourceFile>
  254. <destinationFile>${basedir}/target/repo/${project.artifactId}.tar.gz</destinationFile>
  255. </configuration>
  256. </execution>
  257. </executions>
  258. </plugin>
  259. <plugin>
  260. <groupId>org.apache.rat</groupId>
  261. <artifactId>apache-rat-plugin</artifactId>
  262. <configuration>
  263. <excludes>
  264. <exclude>pass.txt</exclude>
  265. <exclude>derby.log</exclude>
  266. <exclude>src/test/resources/version</exclude>
  267. <exclude>src/test/resources/users.ldif</exclude>
  268. <exclude>src/test/resources/gsInstaller-hosts.txt</exclude>
  269. <exclude>src/test/resources/temporal_ganglia_data.txt</exclude>
  270. <exclude>src/test/resources/users.ldif</exclude>
  271. <exclude>src/test/resources/mpacks_replay.log</exclude>
  272. <exclude>src/test/python/stacks/2.5/HIVE/*.txt</exclude>
  273. <exclude>src/main/resources/hive-schema-0.10.0.oracle.sql</exclude>
  274. <exclude>src/main/resources/hive-schema-0.12.0.oracle.sql</exclude>
  275. <exclude>src/main/resources/db/serial</exclude>
  276. <exclude>src/main/resources/db/index.txt</exclude>
  277. <exclude>src/main/resources/stacks/HDP/2.1.GlusterFS/services/YARN/package/templates/exclude_hosts_list.j2</exclude>
  278. <exclude>src/main/windows/ambari-server.cmd</exclude>
  279. <exclude>src/main/windows/ambari-server.ps1</exclude>
  280. <exclude>src/main/package/choco/ambari-server.nuspec</exclude>
  281. <exclude>src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/templates/smoketest_metrics.json.j2</exclude>
  282. <exclude>src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/files/service-metrics/*.txt</exclude>
  283. <exclude>src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/balancer-emulator/balancer-err.log</exclude>
  284. <exclude>src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/balancer-emulator/balancer.log</exclude>
  285. <exclude>src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/scripts/balancer-emulator/balancer.log</exclude>
  286. <exclude>src/main/resources/stacks/BIGTOP/0.8/services/HDFS/package/scripts/balancer-emulator/balancer-err.log</exclude>
  287. <exclude>src/main/resources/stacks/PHD/3.0.0.0/services/HDFS/package/scripts/balancer-emulator/balancer.log</exclude>
  288. <exclude>src/main/resources/stacks/PHD/3.0.0.0/services/HDFS/package/scripts/balancer-emulator/balancer-err.log</exclude>
  289. <exclude>conf/unix/ca.config</exclude>
  290. <exclude>conf/unix/krb5JAASLogin.conf</exclude>
  291. <exclude>conf/windows/ca.config</exclude>
  292. <exclude>conf/windows/krb5JAASLogin.conf</exclude>
  293. <exclude>**/*.iml</exclude>
  294. <exclude>**/*.json</exclude>
  295. <exclude>**/*.sql</exclude>
  296. <exclude>**/repo_suse_rhel.j2</exclude>
  297. <exclude>**/repo_debian.j2</exclude>
  298. <exclude>**/cluster.properties.j2</exclude>
  299. <exclude>**/repo_ubuntu.j2</exclude>
  300. <exclude>**/.pydev*</exclude>
  301. <!--gitignore content -->
  302. <exclude>src/main/resources/db/newcerts/**</exclude>
  303. <!-- Stack definitions -->
  304. <exclude>src/main/resources/stacks/HDP/2.0._/services/HBASE/package/templates/regionservers.j2</exclude>
  305. <exclude>src/main/resources/stacks/HDPWIN/2.1/services/*/configuration*/*</exclude>
  306. <!--test samples -->
  307. <exclude>src/test/resources/TestAmbaryServer.samples/**</exclude>
  308. <exclude>src/test/resources/*.txt</exclude>
  309. <exclude>src/test/resources/users_for_dn_with_space.ldif</exclude>
  310. <exclude>src/test/resources/users_with_duplicate_uid.ldif</exclude>
  311. <!--Velocity log -->
  312. <exclude>**/velocity.log*</exclude>
  313. </excludes>
  314. </configuration>
  315. <executions>
  316. <execution>
  317. <phase>test</phase>
  318. <goals>
  319. <goal>check</goal>
  320. </goals>
  321. </execution>
  322. </executions>
  323. </plugin>
  324. <plugin>
  325. <artifactId>eclipselink-staticweave-maven-plugin</artifactId>
  326. <groupId>au.com.alderaan</groupId>
  327. <version>1.0.4</version>
  328. <executions>
  329. <execution>
  330. <goals>
  331. <goal>weave</goal>
  332. </goals>
  333. <phase>process-classes</phase>
  334. <configuration>
  335. <logLevel>ALL</logLevel>
  336. <includeProjectClasspath>true</includeProjectClasspath>
  337. </configuration>
  338. </execution>
  339. </executions>
  340. <dependencies>
  341. <dependency>
  342. <groupId>org.eclipse.persistence</groupId>
  343. <artifactId>eclipselink</artifactId>
  344. <version>2.6.2</version>
  345. </dependency>
  346. </dependencies>
  347. </plugin>
  348. <plugin>
  349. <groupId>org.codehaus.mojo</groupId>
  350. <artifactId>properties-maven-plugin</artifactId>
  351. <executions>
  352. <execution>
  353. <phase>package</phase>
  354. <goals>
  355. <goal>read-project-properties</goal>
  356. </goals>
  357. <configuration>
  358. <files>
  359. <file>${basedir}/src/main/package/dependencies.properties</file>
  360. </files>
  361. </configuration>
  362. </execution>
  363. </executions>
  364. </plugin>
  365. <plugin>
  366. <groupId>org.codehaus.mojo</groupId>
  367. <artifactId>rpm-maven-plugin</artifactId>
  368. <version>2.1.4</version>
  369. <executions>
  370. <execution>
  371. <!-- unbinds rpm creation from maven lifecycle -->
  372. <phase>none</phase>
  373. <goals>
  374. <goal>rpm</goal>
  375. </goals>
  376. </execution>
  377. </executions>
  378. <configuration>
  379. <copyright>2012, Apache Software Foundation</copyright>
  380. <group>Development</group>
  381. <description>Maven Recipe: RPM Package.</description>
  382. <autoRequires>no</autoRequires>
  383. <prefix>/</prefix>
  384. <requires>
  385. <require>${rpm.dependency.list}</require>
  386. </requires>
  387. <postinstallScriptlet>
  388. <scriptFile>src/main/package/rpm/postinstall.sh</scriptFile>
  389. <fileEncoding>utf-8</fileEncoding>
  390. </postinstallScriptlet>
  391. <preinstallScriptlet>
  392. <scriptFile>src/main/package/rpm/preinstall.sh</scriptFile>
  393. <fileEncoding>utf-8</fileEncoding>
  394. </preinstallScriptlet>
  395. <preremoveScriptlet>
  396. <scriptFile>src/main/package/rpm/preremove.sh</scriptFile>
  397. <fileEncoding>utf-8</fileEncoding>
  398. </preremoveScriptlet>
  399. <posttransScriptlet>
  400. <scriptFile>src/main/package/rpm/posttrans_server.sh</scriptFile>
  401. <fileEncoding>utf-8</fileEncoding>
  402. </posttransScriptlet>
  403. <needarch>x86_64</needarch>
  404. <mappings>
  405. <mapping>
  406. <directory>/etc</directory>
  407. <username>root</username>
  408. <groupname>root</groupname>
  409. <directoryIncluded>false</directoryIncluded> <!-- avoid managing /etc/init.d -->
  410. <sources>
  411. <source>
  412. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/etc</location>
  413. </source>
  414. </sources>
  415. </mapping>
  416. <mapping>
  417. <directory>/usr/sbin</directory>
  418. <username>root</username>
  419. <groupname>root</groupname>
  420. <directoryIncluded>false</directoryIncluded> <!-- avoid managing /usr/sbin -->
  421. <sources>
  422. <source>
  423. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/usr/sbin</location>
  424. </source>
  425. </sources>
  426. </mapping>
  427. <mapping>
  428. <directory>/usr/lib/ambari-server</directory>
  429. <username>root</username>
  430. <groupname>root</groupname>
  431. <sources>
  432. <source>
  433. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/usr/lib/ambari-server</location>
  434. </source>
  435. </sources>
  436. </mapping>
  437. <mapping>
  438. <directory>/var/lib/ambari-server</directory>
  439. <username>root</username>
  440. <groupname>root</groupname>
  441. <sources>
  442. <source>
  443. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/var/lib/ambari-server</location>
  444. </source>
  445. </sources>
  446. </mapping>
  447. <mapping>
  448. <directory>/usr/lib/python2.6/site-packages</directory>
  449. <username>root</username>
  450. <groupname>root</groupname>
  451. <sources>
  452. <source>
  453. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/usr/lib/python2.6/site-packages</location>
  454. </source>
  455. </sources>
  456. </mapping>
  457. <mapping>
  458. <directory>/var/log/ambari-server</directory>
  459. <username>root</username>
  460. <groupname>root</groupname>
  461. <sources>
  462. <source>
  463. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/var/log/ambari-server</location>
  464. </source>
  465. </sources>
  466. </mapping>
  467. <mapping>
  468. <directory>/var/run/ambari-server</directory>
  469. <username>root</username>
  470. <groupname>root</groupname>
  471. <sources>
  472. <source>
  473. <location>${project.build.directory}${dirsep}${project.artifactId}-${project.version}-dist/var/run/ambari-server</location>
  474. </source>
  475. </sources>
  476. </mapping>
  477. </mappings>
  478. </configuration>
  479. </plugin>
  480. <plugin>
  481. <groupId>org.vafer</groupId>
  482. <artifactId>jdeb</artifactId>
  483. <version>1.4</version>
  484. <executions>
  485. <execution>
  486. <!-- unbinds rpm creation from maven lifecycle -->
  487. <phase>none</phase>
  488. <goals>
  489. <goal>jdeb</goal>
  490. </goals>
  491. </execution>
  492. </executions>
  493. <configuration>
  494. <controlDir>${basedir}/src/main/package/deb/control</controlDir>
  495. <deb>${basedir}/target/${project.artifactId}_${package-version}-${package-release}-dist.deb</deb>
  496. <skip>false</skip>
  497. <skipPOMs>false</skipPOMs>
  498. <dataSet>
  499. <data>
  500. <src>${project.build.directory}/${project.artifactId}-${project.version}-dist.tar.gz</src>
  501. <type>archive</type>
  502. <mapper>
  503. <type>perm</type>
  504. <user>root</user>
  505. <group>root</group>
  506. </mapper>
  507. </data>
  508. </dataSet>
  509. </configuration>
  510. </plugin>
  511. <plugin>
  512. <groupId>org.codehaus.mojo</groupId>
  513. <artifactId>findbugs-maven-plugin</artifactId>
  514. <version>3.0.3</version>
  515. <configuration>
  516. <failOnError>false</failOnError>
  517. <threshold>Low</threshold>
  518. <findbugsXmlOutputDirectory>${project.basedir}/target/findbugs</findbugsXmlOutputDirectory>
  519. </configuration>
  520. <executions>
  521. <execution>
  522. <phase>verify</phase>
  523. <goals>
  524. <goal>check</goal>
  525. </goals>
  526. </execution>
  527. </executions>
  528. </plugin>
  529. <plugin>
  530. <groupId>org.codehaus.mojo</groupId>
  531. <artifactId>xml-maven-plugin</artifactId>
  532. <version>1.0</version>
  533. <executions>
  534. <execution>
  535. <phase>verify</phase>
  536. <goals>
  537. <goal>transform</goal>
  538. </goals>
  539. </execution>
  540. </executions>
  541. <configuration>
  542. <transformationSets>
  543. <transformationSet>
  544. <dir>${project.basedir}/target/findbugs</dir>
  545. <outputDir>${project.basedir}/target/findbugs</outputDir>
  546. <stylesheet>fancy-hist.xsl</stylesheet>
  547. <fileMappers>
  548. <fileMapper
  549. implementation="org.codehaus.plexus.components.io.filemappers.FileExtensionMapper">
  550. <targetExtension>.html</targetExtension>
  551. </fileMapper>
  552. </fileMappers>
  553. </transformationSet>
  554. </transformationSets>
  555. </configuration>
  556. <dependencies>
  557. <dependency>
  558. <groupId>com.google.code.findbugs</groupId>
  559. <artifactId>findbugs</artifactId>
  560. <version>2.0.0</version>
  561. </dependency>
  562. </dependencies>
  563. </plugin>
  564. <plugin>
  565. <groupId>org.apache.maven.plugins</groupId>
  566. <artifactId>maven-surefire-plugin</artifactId>
  567. <configuration>
  568. <skip>${skipSurefireTests}</skip>
  569. <argLine>-Xmx1024m -XX:MaxPermSize=512m -Xms512m</argLine>
  570. </configuration>
  571. </plugin>
  572. <plugin>
  573. <groupId>org.codehaus.mojo</groupId>
  574. <artifactId>exec-maven-plugin</artifactId>
  575. <version>1.2.1</version>
  576. <executions>
  577. <execution>
  578. <configuration>
  579. <executable>${executable.python}</executable>
  580. <workingDirectory>src/test/python</workingDirectory>
  581. <arguments>
  582. <argument>unitTests.py</argument>
  583. <argument>${custom.tests}</argument>
  584. </arguments>
  585. <environmentVariables>
  586. <PYTHONPATH>${path.python.1}${pathsep}$PYTHONPATH</PYTHONPATH>
  587. </environmentVariables>
  588. <skip>${skipPythonTests}</skip>
  589. </configuration>
  590. <id>python-test</id>
  591. <phase>test</phase>
  592. <goals>
  593. <goal>exec</goal>
  594. </goals>
  595. </execution>
  596. </executions>
  597. </plugin>
  598. <plugin>
  599. <groupId>com.atlassian.maven.plugins</groupId>
  600. <artifactId>maven-clover2-plugin</artifactId>
  601. <version>3.1.11</version>
  602. <!-- <configuration> <licenseLocation>/path/to/clover.license</licenseLocation>
  603. </configuration> -->
  604. </plugin>
  605. <plugin>
  606. <groupId>org.codehaus.mojo</groupId>
  607. <artifactId>buildnumber-maven-plugin</artifactId>
  608. <version>${buildnumber-maven-plugin-version}</version>
  609. <configuration>
  610. <urlScm>scm:git:https://git-wip-us.apache.org/repos/asf/incubator-ambari.git</urlScm>
  611. </configuration>
  612. <executions>
  613. <execution>
  614. <phase>validate</phase>
  615. <goals>
  616. <goal>create</goal>
  617. </goals>
  618. </execution>
  619. </executions>
  620. </plugin>
  621. <plugin>
  622. <groupId>org.eclipse.jetty</groupId>
  623. <artifactId>jetty-maven-plugin</artifactId>
  624. <version>${jetty.version}</version>
  625. </plugin>
  626. </plugins>
  627. <resources>
  628. <resource>
  629. <directory>src/main/resources</directory>
  630. <filtering>true</filtering>
  631. <excludes>
  632. <exclude>stacks/**</exclude>
  633. <exclude>common-services/**</exclude>
  634. </excludes>
  635. </resource>
  636. </resources>
  637. </build>
  638. <profiles>
  639. <profile>
  640. <id>replaceurl</id>
  641. <build>
  642. <plugins>
  643. <plugin>
  644. <groupId>org.apache.maven.plugins</groupId>
  645. <artifactId>maven-antrun-plugin</artifactId>
  646. <version>1.7</version>
  647. <executions>
  648. <execution>
  649. <id>set-hdp-url-classes</id>
  650. <phase>process-classes</phase>
  651. <goals>
  652. <goal>run</goal>
  653. </goals>
  654. <configuration>
  655. <target name="ambari-server-compile">
  656. <exec dir="${basedir}" executable="bash"
  657. failonerror="true">
  658. <arg value="${basedir}/set-hdp-repo-url.sh" />
  659. <arg value="${hdpUrlForCentos6}" />
  660. <arg value="${hdpLatestUrl}" />
  661. </exec>
  662. </target>
  663. </configuration>
  664. </execution>
  665. <execution>
  666. <id>set-hdp-url-packages</id>
  667. <phase>package</phase>
  668. <goals>
  669. <goal>run</goal>
  670. </goals>
  671. <configuration>
  672. <target name="ambari-server-compile">
  673. <exec dir="${basedir}" executable="bash"
  674. failonerror="true">
  675. <arg value="${basedir}/set-hdp-repo-url.sh" />
  676. <arg value="${hdpUrlForCentos6}" />
  677. <arg value="${hdpLatestUrl}" />
  678. <arg
  679. value="${project.build.directory}/ambari-server-${project.version}-dist/ambari-server-${project.version}" />
  680. </exec>
  681. </target>
  682. </configuration>
  683. </execution>
  684. </executions>
  685. </plugin>
  686. </plugins>
  687. </build>
  688. </profile>
  689. <profile>
  690. <id>skipTestRun</id>
  691. <activation>
  692. <property>
  693. <name>skipTests</name>
  694. </property>
  695. </activation>
  696. <properties>
  697. <skipPythonTests>true</skipPythonTests>
  698. </properties>
  699. </profile>
  700. <profile>
  701. <id>windows</id>
  702. <activation>
  703. <os>
  704. <family>win</family>
  705. </os>
  706. </activation>
  707. <properties>
  708. <envClassifier>win</envClassifier>
  709. <dirsep>\</dirsep>
  710. <pathsep>;</pathsep>
  711. <executable.python>python</executable.python>
  712. <executable.shell>cmd</executable.shell>
  713. <fileextension.shell>cmd</fileextension.shell>
  714. <fileextension.dot.shell-default>.cmd</fileextension.dot.shell-default>
  715. <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\scripts;${project.basedir}\src\main\resources\scripts;${project.basedir}\src\test\python</path.python.1>
  716. <assemblydescriptor>src/main/assemblies/server-windows.xml</assemblydescriptor>
  717. <assemblybootstrap>src/main/assemblies/bootstrap-windows.xml</assemblybootstrap>
  718. <assemblychocodescriptor>src/main/assemblies/server-windows-choco.xml</assemblychocodescriptor>
  719. <packagingFormat>jar</packagingFormat>
  720. </properties>
  721. <build>
  722. <plugins>
  723. <plugin>
  724. <artifactId>maven-assembly-plugin</artifactId>
  725. <configuration>
  726. <descriptors>
  727. <descriptor>../ambari-project/src/main/assemblies/empty.xml</descriptor>
  728. </descriptors>
  729. </configuration>
  730. <executions>
  731. <execution>
  732. <id>bootstrap-zip</id>
  733. <phase>prepare-package</phase>
  734. <goals>
  735. <goal>single</goal>
  736. </goals>
  737. <configuration>
  738. <attach>false</attach>
  739. <finalName>bootstrap</finalName>
  740. <appendAssemblyId>false</appendAssemblyId>
  741. <tarLongFileMode>gnu</tarLongFileMode>
  742. <descriptors>
  743. <descriptor>${assemblybootstrap}</descriptor>
  744. </descriptors>
  745. </configuration>
  746. </execution>
  747. <execution>
  748. <id>build-tarball</id>
  749. <phase>package</phase>
  750. <goals>
  751. <goal>single</goal>
  752. </goals>
  753. <configuration>
  754. <attach>false</attach>
  755. <appendAssemblyId>true</appendAssemblyId>
  756. <tarLongFileMode>gnu</tarLongFileMode>
  757. <descriptors>
  758. <descriptor>${assemblydescriptor}</descriptor>
  759. </descriptors>
  760. </configuration>
  761. </execution>
  762. <execution>
  763. <id>build-choco-dir</id>
  764. <phase>package</phase>
  765. <goals>
  766. <goal>single</goal>
  767. </goals>
  768. <configuration>
  769. <attach>false</attach>
  770. <appendAssemblyId>true</appendAssemblyId>
  771. <tarLongFileMode>gnu</tarLongFileMode>
  772. <descriptors>
  773. <descriptor>${assemblychocodescriptor}</descriptor>
  774. </descriptors>
  775. </configuration>
  776. </execution>
  777. </executions>
  778. </plugin>
  779. <plugin>
  780. <groupId>org.codehaus.mojo</groupId>
  781. <artifactId>exec-maven-plugin</artifactId>
  782. <version>1.2.1</version>
  783. <executions>
  784. <execution>
  785. <id>build-choco-package</id>
  786. <phase>package</phase>
  787. <goals>
  788. <goal>exec</goal>
  789. </goals>
  790. <configuration>
  791. <executable>choco.exe</executable>
  792. <arguments>
  793. <argument>pack</argument>
  794. <argument>--version=${project.version}</argument>
  795. <argument>${basedir}/target/ambari-server-${project.version}-choco/ambari-server.nuspec</argument>
  796. </arguments>
  797. <workingDirectory>target/ambari-server-${project.version}-choco</workingDirectory>
  798. </configuration>
  799. </execution>
  800. </executions>
  801. </plugin>
  802. </plugins>
  803. </build>
  804. </profile>
  805. <profile>
  806. <id>linux</id>
  807. <activation>
  808. <os>
  809. <family>unix</family>
  810. </os>
  811. </activation>
  812. <properties>
  813. <envClassifier>linux</envClassifier>
  814. <dirsep>/</dirsep>
  815. <pathsep>:</pathsep>
  816. <executable.python>${project.basedir}/../ambari-common/src/main/unix/ambari-python-wrap</executable.python>
  817. <executable.shell>sh</executable.shell>
  818. <fileextension.shell>sh</fileextension.shell>
  819. <fileextension.dot.shell-default></fileextension.dot.shell-default>
  820. <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>
  821. <assemblydescriptor>src/main/assemblies/server.xml</assemblydescriptor>
  822. <packagingFormat>jar</packagingFormat>
  823. </properties>
  824. </profile>
  825. <profile>
  826. <id>suse11</id>
  827. <properties>
  828. <rpm.dependency.list>${rpm.dependency.list.suse}</rpm.dependency.list>
  829. </properties>
  830. </profile>
  831. <profile>
  832. <id>pluggable-stack-definition</id>
  833. <activation>
  834. <activeByDefault>false</activeByDefault>
  835. <property>
  836. <name>pluggableStackDefinitionConfig</name>
  837. </property>
  838. </activation>
  839. <properties>
  840. <customActionsRoot>target/pluggable-stack-definition/custom_actions</customActionsRoot>
  841. <ambariProperties>target/pluggable-stack-definition/conf/unix/ambari.properties</ambariProperties>
  842. <resourceManagementSrcLocation>target/pluggable-stack-definition/python/resource_management</resourceManagementSrcLocation>
  843. <commonServicesSrcLocation>target/pluggable-stack-definition/common-services</commonServicesSrcLocation>
  844. <stacksSrcLocation>target/pluggable-stack-definition/stacks/${stack.distribution}</stacksSrcLocation>
  845. <resourcesSrcLocation>src/main/resources</resourcesSrcLocation>
  846. <tarballResourcesFolder>target/pluggable-stack-definition</tarballResourcesFolder>
  847. <pluggableStackDefinitionScriptLocation>${project.basedir}/../ambari-common/src/main/python/pluggable_stack_definition/GenerateStackDefinition.py</pluggableStackDefinitionScriptLocation>
  848. <pluggableStackDefinitionConfig>${project.basedir}/../ambari-common/src/main/python/pluggable_stack_definition/configs/${stack.distribution}.json</pluggableStackDefinitionConfig>
  849. <pluggableStackDefinitionOutput>target/pluggable-stack-definition</pluggableStackDefinitionOutput>
  850. </properties>
  851. <build>
  852. <plugins>
  853. <plugin>
  854. <groupId>org.codehaus.mojo</groupId>
  855. <artifactId>exec-maven-plugin</artifactId>
  856. <version>1.2.1</version>
  857. <executions>
  858. <execution>
  859. <configuration>
  860. <executable>${executable.python}</executable>
  861. <arguments>
  862. <argument>${pluggableStackDefinitionScriptLocation}</argument>
  863. <argument>-c</argument>
  864. <argument>${pluggableStackDefinitionConfig}</argument>
  865. <argument>-r</argument>
  866. <argument>${resourcesSrcLocation}</argument>
  867. <argument>-o</argument>
  868. <argument>${pluggableStackDefinitionOutput}</argument>
  869. </arguments>
  870. </configuration>
  871. <id>pluggable-stack-definition-generate</id>
  872. <phase>prepare-package</phase>
  873. <goals>
  874. <goal>exec</goal>
  875. </goals>
  876. </execution>
  877. </executions>
  878. </plugin>
  879. </plugins>
  880. </build>
  881. </profile>
  882. <profile>
  883. <id>replaceBaseUrl</id>
  884. <activation>
  885. <activeByDefault>false</activeByDefault>
  886. <property>
  887. <name>urlInfoPath</name>
  888. </property>
  889. </activation>
  890. <properties>
  891. <urlinfo_processor_script_location>${project.basedir}/../ambari-common/src/main/python/urlinfo_processor/urlinfo_processor.py</urlinfo_processor_script_location>
  892. </properties>
  893. <build>
  894. <plugins>
  895. <plugin>
  896. <groupId>org.codehaus.mojo</groupId>
  897. <artifactId>exec-maven-plugin</artifactId>
  898. <version>1.2.1</version>
  899. <executions>
  900. <execution>
  901. <configuration>
  902. <executable>${executable.python}</executable>
  903. <arguments>
  904. <argument>${urlinfo_processor_script_location}</argument>
  905. <argument>-u</argument>
  906. <argument>${urlInfoPath}</argument>
  907. <argument>-s</argument>
  908. <argument>${stacksSrcLocation}</argument>
  909. </arguments>
  910. </configuration>
  911. <id>replace-base-url</id>
  912. <phase>prepare-package</phase>
  913. <goals>
  914. <goal>exec</goal>
  915. </goals>
  916. </execution>
  917. </executions>
  918. </plugin>
  919. </plugins>
  920. </build>
  921. </profile>
  922. </profiles>
  923. <dependencies>
  924. <dependency>
  925. <groupId>${project.groupId}</groupId>
  926. <artifactId>ambari-views</artifactId>
  927. <version>${project.version}</version>
  928. </dependency>
  929. <dependency>
  930. <groupId>commons-io</groupId>
  931. <artifactId>commons-io</artifactId>
  932. <version>1.4</version>
  933. </dependency>
  934. <dependency>
  935. <groupId>org.apache.commons</groupId>
  936. <artifactId>commons-csv</artifactId>
  937. </dependency>
  938. <dependency>
  939. <groupId>uk.com.robust-it</groupId>
  940. <artifactId>cloning</artifactId>
  941. <version>1.9.2</version>
  942. </dependency>
  943. <dependency>
  944. <groupId>com.google.inject.extensions</groupId>
  945. <artifactId>guice-assistedinject</artifactId>
  946. </dependency>
  947. <dependency>
  948. <groupId>com.google.inject.extensions</groupId>
  949. <artifactId>guice-persist</artifactId>
  950. </dependency>
  951. <dependency>
  952. <groupId>com.google.inject.extensions</groupId>
  953. <artifactId>guice-servlet</artifactId>
  954. </dependency>
  955. <dependency>
  956. <groupId>com.google.inject.extensions</groupId>
  957. <artifactId>guice-multibindings</artifactId>
  958. <version>3.0</version>
  959. </dependency>
  960. <dependency>
  961. <groupId>org.apache.derby</groupId>
  962. <artifactId>derby</artifactId>
  963. </dependency>
  964. <dependency>
  965. <groupId>org.apache.derby</groupId>
  966. <artifactId>derbytools</artifactId>
  967. <version>10.11.1.1</version>
  968. <scope>test</scope>
  969. </dependency>
  970. <dependency>
  971. <groupId>org.springframework.security</groupId>
  972. <artifactId>spring-security-core</artifactId>
  973. </dependency>
  974. <dependency>
  975. <groupId>org.springframework.security</groupId>
  976. <artifactId>spring-security-config</artifactId>
  977. </dependency>
  978. <dependency>
  979. <groupId>org.springframework.security</groupId>
  980. <artifactId>spring-security-web</artifactId>
  981. </dependency>
  982. <dependency>
  983. <groupId>org.springframework</groupId>
  984. <artifactId>spring-mock</artifactId>
  985. <scope>test</scope>
  986. </dependency>
  987. <dependency>
  988. <groupId>org.springframework.security</groupId>
  989. <artifactId>spring-security-ldap</artifactId>
  990. </dependency>
  991. <dependency>
  992. <groupId>org.springframework.ldap</groupId>
  993. <artifactId>spring-ldap-core</artifactId>
  994. </dependency>
  995. <dependency>
  996. <groupId>org.apache.directory.server</groupId>
  997. <artifactId>apacheds-server-annotations</artifactId>
  998. <scope>test</scope>
  999. <exclusions>
  1000. <exclusion>
  1001. <groupId>net.sf.ehcache</groupId>
  1002. <artifactId>ehcache-core</artifactId>
  1003. </exclusion>
  1004. </exclusions>
  1005. </dependency>
  1006. <dependency>
  1007. <groupId>org.apache.directory.server</groupId>
  1008. <artifactId>apacheds-core-integ</artifactId>
  1009. <scope>test</scope>
  1010. <exclusions>
  1011. <exclusion>
  1012. <groupId>net.sf.ehcache</groupId>
  1013. <artifactId>ehcache-core</artifactId>
  1014. </exclusion>
  1015. </exclusions>
  1016. </dependency>
  1017. <dependency>
  1018. <groupId>org.apache.directory.server</groupId>
  1019. <artifactId>apacheds-server-integ</artifactId>
  1020. <scope>test</scope>
  1021. </dependency>
  1022. <dependency>
  1023. <groupId>org.apache.directory.server</groupId>
  1024. <artifactId>apacheds-jdbm</artifactId>
  1025. <scope>test</scope>
  1026. </dependency>
  1027. <dependency>
  1028. <groupId>org.apache.directory.server</groupId>
  1029. <artifactId>apacheds-kerberos-codec</artifactId>
  1030. <exclusions>
  1031. <exclusion>
  1032. <groupId>net.sf.ehcache</groupId>
  1033. <artifactId>ehcache-core</artifactId>
  1034. </exclusion>
  1035. </exclusions>
  1036. </dependency>
  1037. <dependency>
  1038. <groupId>org.apache.directory.server</groupId>
  1039. <artifactId>apacheds-core</artifactId>
  1040. <scope>test</scope>
  1041. <exclusions>
  1042. <exclusion>
  1043. <groupId>net.sf.ehcache</groupId>
  1044. <artifactId>ehcache-core</artifactId>
  1045. </exclusion>
  1046. </exclusions>
  1047. </dependency>
  1048. <dependency>
  1049. <groupId>org.apache.directory.server</groupId>
  1050. <artifactId>apacheds-protocol-ldap</artifactId>
  1051. <scope>test</scope>
  1052. </dependency>
  1053. <dependency>
  1054. <groupId>org.apache.directory.server</groupId>
  1055. <artifactId>kerberos-client</artifactId>
  1056. </dependency>
  1057. <dependency>
  1058. <groupId>org.apache.directory.shared</groupId>
  1059. <artifactId>shared-ldap</artifactId>
  1060. <scope>test</scope>
  1061. </dependency>
  1062. <dependency>
  1063. <groupId>org.slf4j</groupId>
  1064. <artifactId>slf4j-api</artifactId>
  1065. </dependency>
  1066. <dependency>
  1067. <groupId>org.slf4j</groupId>
  1068. <artifactId>slf4j-log4j12</artifactId>
  1069. </dependency>
  1070. <dependency>
  1071. <groupId>log4j</groupId>
  1072. <artifactId>log4j</artifactId>
  1073. </dependency>
  1074. <dependency>
  1075. <groupId>log4j</groupId>
  1076. <artifactId>apache-log4j-extras</artifactId>
  1077. </dependency>
  1078. <dependency>
  1079. <groupId>org.eclipse.persistence</groupId>
  1080. <artifactId>eclipselink</artifactId>
  1081. </dependency>
  1082. <dependency>
  1083. <groupId>org.mockito</groupId>
  1084. <artifactId>mockito-core</artifactId>
  1085. <scope>test</scope>
  1086. </dependency>
  1087. <dependency>
  1088. <groupId>org.eclipse.jetty</groupId>
  1089. <artifactId>jetty-security</artifactId>
  1090. </dependency>
  1091. <dependency>
  1092. <groupId>org.eclipse.jetty</groupId>
  1093. <artifactId>jetty-servlet</artifactId>
  1094. </dependency>
  1095. <dependency>
  1096. <groupId>org.eclipse.jetty</groupId>
  1097. <artifactId>jetty-servlets</artifactId>
  1098. </dependency>
  1099. <dependency>
  1100. <groupId>org.eclipse.jetty</groupId>
  1101. <artifactId>jetty-webapp</artifactId>
  1102. </dependency>
  1103. <dependency>
  1104. <groupId>org.eclipse.jetty</groupId>
  1105. <artifactId>jetty-jsp</artifactId>
  1106. </dependency>
  1107. <dependency>
  1108. <groupId>org.apache.ant</groupId>
  1109. <artifactId>ant-launcher</artifactId>
  1110. </dependency>
  1111. <dependency>
  1112. <groupId>org.eclipse.jetty</groupId>
  1113. <artifactId>jetty-server</artifactId>
  1114. </dependency>
  1115. <dependency>
  1116. <groupId>commons-logging</groupId>
  1117. <artifactId>commons-logging</artifactId>
  1118. </dependency>
  1119. <dependency>
  1120. <groupId>commons-codec</groupId>
  1121. <artifactId>commons-codec</artifactId>
  1122. </dependency>
  1123. <dependency>
  1124. <groupId>commons-lang</groupId>
  1125. <artifactId>commons-lang</artifactId>
  1126. </dependency>
  1127. <dependency>
  1128. <groupId>commons-net</groupId>
  1129. <artifactId>commons-net</artifactId>
  1130. <version>1.4.1</version>
  1131. </dependency>
  1132. <dependency>
  1133. <groupId>javax.servlet</groupId>
  1134. <artifactId>javax.servlet-api</artifactId>
  1135. </dependency>
  1136. <dependency>
  1137. <groupId>com.sun.jersey</groupId>
  1138. <artifactId>jersey-json</artifactId>
  1139. <exclusions>
  1140. <exclusion>
  1141. <groupId>org.codehaus.jackson</groupId>
  1142. <artifactId>jackson-xc</artifactId>
  1143. </exclusion>
  1144. <exclusion>
  1145. <groupId>org.codehaus.jettison</groupId>
  1146. <artifactId>jettison</artifactId>
  1147. </exclusion>
  1148. <exclusion>
  1149. <groupId>org.codehaus.jackson</groupId>
  1150. <artifactId>jackson-mapper-asl</artifactId>
  1151. </exclusion>
  1152. </exclusions>
  1153. </dependency>
  1154. <dependency>
  1155. <groupId>com.sun.jersey</groupId>
  1156. <artifactId>jersey-server</artifactId>
  1157. </dependency>
  1158. <dependency>
  1159. <groupId>com.sun.jersey</groupId>
  1160. <artifactId>jersey-client</artifactId>
  1161. </dependency>
  1162. <dependency>
  1163. <groupId>com.sun.jersey.contribs</groupId>
  1164. <artifactId>jersey-multipart</artifactId>
  1165. </dependency>
  1166. <dependency>
  1167. <groupId>com.sun.jersey.contribs</groupId>
  1168. <artifactId>jersey-guice</artifactId>
  1169. </dependency>
  1170. <dependency>
  1171. <groupId>org.codehaus.jackson</groupId>
  1172. <artifactId>jackson-mapper-asl</artifactId>
  1173. <version>1.9.2</version>
  1174. </dependency>
  1175. <dependency>
  1176. <groupId>org.codehaus.jackson</groupId>
  1177. <artifactId>jackson-core-asl</artifactId>
  1178. </dependency>
  1179. <dependency>
  1180. <groupId>org.codehaus.jackson</groupId>
  1181. <artifactId>jackson-jaxrs</artifactId>
  1182. </dependency>
  1183. <dependency>
  1184. <groupId>org.codehaus.jackson</groupId>
  1185. <artifactId>jackson-xc</artifactId>
  1186. </dependency>
  1187. <dependency>
  1188. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1189. <artifactId>jersey-test-framework-core</artifactId>
  1190. <scope>test</scope>
  1191. </dependency>
  1192. <dependency>
  1193. <groupId>com.sun.jersey.jersey-test-framework</groupId>
  1194. <artifactId>jersey-test-framework-grizzly2</artifactId>
  1195. <scope>test</scope>
  1196. </dependency>
  1197. <dependency>
  1198. <groupId>org.codehaus.jettison</groupId>
  1199. <artifactId>jettison</artifactId>
  1200. <scope>test</scope>
  1201. </dependency>
  1202. <dependency>
  1203. <groupId>junit</groupId>
  1204. <artifactId>junit</artifactId>
  1205. <scope>test</scope>
  1206. </dependency>
  1207. <dependency>
  1208. <groupId>org.easymock</groupId>
  1209. <artifactId>easymock</artifactId>
  1210. <version>3.4</version>
  1211. <scope>test</scope>
  1212. </dependency>
  1213. <dependency>
  1214. <groupId>org.powermock</groupId>
  1215. <artifactId>powermock-module-junit4</artifactId>
  1216. <scope>test</scope>
  1217. </dependency>
  1218. <dependency>
  1219. <groupId>org.powermock</groupId>
  1220. <artifactId>powermock-api-easymock</artifactId>
  1221. <scope>test</scope>
  1222. </dependency>
  1223. <dependency>
  1224. <groupId>org.powermock</groupId>
  1225. <artifactId>powermock-core</artifactId>
  1226. <scope>test</scope>
  1227. </dependency>
  1228. <dependency>
  1229. <groupId>org.powermock</groupId>
  1230. <artifactId>powermock-reflect</artifactId>
  1231. <scope>test</scope>
  1232. </dependency>
  1233. <dependency>
  1234. <groupId>org.powermock</groupId>
  1235. <artifactId>powermock-api-mockito</artifactId>
  1236. <scope>test</scope>
  1237. </dependency>
  1238. <dependency>
  1239. <groupId>nl.jqno.equalsverifier</groupId>
  1240. <artifactId>equalsverifier</artifactId>
  1241. <version>1.7.4</version>
  1242. <scope>test</scope>
  1243. </dependency>
  1244. <dependency>
  1245. <groupId>org.objenesis</groupId>
  1246. <artifactId>objenesis-tck</artifactId>
  1247. <version>1.2</version>
  1248. </dependency>
  1249. <dependency>
  1250. <groupId>cglib</groupId>
  1251. <artifactId>cglib</artifactId>
  1252. <version>2.2.2</version>
  1253. </dependency>
  1254. <dependency>
  1255. <groupId>asm</groupId>
  1256. <artifactId>asm</artifactId>
  1257. <version>3.3.1</version>
  1258. </dependency>
  1259. <dependency>
  1260. <groupId>com.google.inject</groupId>
  1261. <artifactId>guice</artifactId>
  1262. <version>3.0</version>
  1263. </dependency>
  1264. <dependency>
  1265. <groupId>com.google.code.gson</groupId>
  1266. <artifactId>gson</artifactId>
  1267. <version>2.2.2</version>
  1268. </dependency>
  1269. <dependency>
  1270. <groupId>org.postgresql</groupId>
  1271. <artifactId>postgresql</artifactId>
  1272. <version>9.3-1101-jdbc4</version>
  1273. </dependency>
  1274. <dependency>
  1275. <groupId>org.apache.httpcomponents</groupId>
  1276. <artifactId>httpclient</artifactId>
  1277. <version>4.2.5</version>
  1278. </dependency>
  1279. <dependency>
  1280. <groupId>com.google.code.findbugs</groupId>
  1281. <artifactId>jsr305</artifactId>
  1282. <version>1.3.9</version>
  1283. </dependency>
  1284. <dependency>
  1285. <groupId>org.quartz-scheduler</groupId>
  1286. <artifactId>quartz</artifactId>
  1287. <version>2.2.1</version>
  1288. <exclusions>
  1289. <exclusion>
  1290. <groupId>c3p0</groupId>
  1291. <artifactId>c3p0</artifactId>
  1292. </exclusion>
  1293. </exclusions>
  1294. </dependency>
  1295. <dependency>
  1296. <groupId>org.quartz-scheduler</groupId>
  1297. <artifactId>quartz-jobs</artifactId>
  1298. <version>2.2.1</version>
  1299. </dependency>
  1300. <dependency>
  1301. <groupId>org.apache.velocity</groupId>
  1302. <artifactId>velocity</artifactId>
  1303. <version>1.7</version>
  1304. </dependency>
  1305. <dependency>
  1306. <groupId>com.sun.mail</groupId>
  1307. <artifactId>mailapi</artifactId>
  1308. <version>1.5.2</version>
  1309. </dependency>
  1310. <dependency>
  1311. <groupId>com.sun.mail</groupId>
  1312. <artifactId>smtp</artifactId>
  1313. <version>1.5.2</version>
  1314. </dependency>
  1315. <dependency>
  1316. <groupId>org.snmp4j</groupId>
  1317. <artifactId>snmp4j</artifactId>
  1318. <version>1.10.1</version>
  1319. </dependency>
  1320. <dependency>
  1321. <groupId>org.apache.ambari</groupId>
  1322. <artifactId>ambari-metrics-common</artifactId>
  1323. <version>${project.version}</version>
  1324. </dependency>
  1325. <dependency>
  1326. <groupId>com.fasterxml.jackson.core</groupId>
  1327. <artifactId>jackson-annotations</artifactId>
  1328. <version>2.1.4</version>
  1329. </dependency>
  1330. <dependency>
  1331. <groupId>net.sf.ehcache</groupId>
  1332. <artifactId>ehcache</artifactId>
  1333. <version>2.10.0</version>
  1334. </dependency>
  1335. <dependency>
  1336. <groupId>com.nimbusds</groupId>
  1337. <artifactId>nimbus-jose-jwt</artifactId>
  1338. <version>3.9</version>
  1339. <scope>compile</scope>
  1340. <exclusions>
  1341. <exclusion>
  1342. <groupId>org.bouncycastle</groupId>
  1343. <artifactId>bcprov-jdk15on</artifactId>
  1344. </exclusion>
  1345. </exclusions>
  1346. </dependency>
  1347. <dependency>
  1348. <groupId>org.apache.hadoop</groupId>
  1349. <artifactId>hadoop-auth</artifactId>
  1350. <version>${hadoop.version}</version>
  1351. </dependency>
  1352. <dependency>
  1353. <groupId>org.eclipse.jetty</groupId>
  1354. <artifactId>jetty-util</artifactId>
  1355. <version>${jetty.version}</version>
  1356. </dependency>
  1357. <dependency>
  1358. <groupId>org.eclipse.jetty</groupId>
  1359. <artifactId>jetty-util-ajax</artifactId>
  1360. <version>${jetty.version}</version>
  1361. </dependency>
  1362. <dependency>
  1363. <groupId>commons-cli</groupId>
  1364. <artifactId>commons-cli</artifactId>
  1365. <version>1.3.1</version>
  1366. </dependency>
  1367. <dependency>
  1368. <groupId>com.mchange</groupId>
  1369. <artifactId>c3p0</artifactId>
  1370. <version>[0.9.5.2]</version>
  1371. <scope>compile</scope>
  1372. </dependency>
  1373. <dependency>
  1374. <groupId>org.slf4j</groupId>
  1375. <artifactId>jul-to-slf4j</artifactId>
  1376. <version>1.7.2</version>
  1377. </dependency>
  1378. </dependencies>
  1379. <pluginRepositories>
  1380. <pluginRepository>
  1381. <id>oss.sonatype.org</id>
  1382. <name>OSS Sonatype Staging</name>
  1383. <url>https://oss.sonatype.org/content/groups/staging</url>
  1384. </pluginRepository>
  1385. </pluginRepositories>
  1386. </project>