pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one or more
  4. contributor license agreements. See the NOTICE file distributed with
  5. this work for additional information regarding copyright ownership.
  6. The ASF licenses this file to You under the Apache License, Version 2.0
  7. (the "License"); you may not use this file except in compliance with
  8. the License. You may obtain a copy of the License at
  9. http://www.apache.org/licenses/LICENSE-2.0
  10. Unless required by applicable law or agreed to in writing, software
  11. distributed under the License is distributed on an "AS IS" BASIS,
  12. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. See the License for the specific language governing permissions and
  14. limitations under the License.
  15. --><project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <groupId>org.apache.ambari</groupId>
  17. <modelVersion>4.0.0</modelVersion>
  18. <artifactId>ambari-metrics</artifactId>
  19. <version>2.5.0.0.0</version>
  20. <packaging>pom</packaging>
  21. <modules>
  22. <module>ambari-metrics-common</module>
  23. <module>ambari-metrics-hadoop-sink</module>
  24. <module>ambari-metrics-flume-sink</module>
  25. <module>ambari-metrics-kafka-sink</module>
  26. <module>ambari-metrics-storm-sink</module>
  27. <module>ambari-metrics-storm-sink-legacy</module>
  28. <module>ambari-metrics-timelineservice</module>
  29. <module>ambari-metrics-host-monitoring</module>
  30. <module>ambari-metrics-grafana</module>
  31. <module>ambari-metrics-assembly</module>
  32. <module>../utility</module>
  33. </modules>
  34. <properties>
  35. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  36. <python.ver>python &gt;= 2.6</python.ver>
  37. <deb.python.ver>python (&gt;= 2.6)</deb.python.ver>
  38. <!--TODO change to HDP URL-->
  39. <hbase.tar>http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0-3347/tars/hbase-1.1.2.2.3.4.0-3347.tar.gz</hbase.tar>
  40. <hbase.folder>hbase-1.1.2.2.3.4.0-3347</hbase.folder>
  41. <hadoop.tar>http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0-3347/tars/hadoop-2.7.1.2.3.4.0-3347.tar.gz</hadoop.tar>
  42. <hadoop.folder>hadoop-2.7.1.2.3.4.0-3347</hadoop.folder>
  43. <hbase.winpkg.zip>https://msibuilds.blob.core.windows.net/hdp/2.x/2.2.4.2/2/hbase-0.98.4.2.2.4.2-0002-hadoop2.winpkg.zip</hbase.winpkg.zip>
  44. <hbase.winpkg.folder>hbase-0.98.4.2.2.4.2-0002-hadoop2</hbase.winpkg.folder>
  45. <hadoop.winpkg.zip>https://msibuilds.blob.core.windows.net/hdp/2.x/2.2.4.2/2/hadoop-2.6.0.2.2.4.2-0002.winpkg.zip</hadoop.winpkg.zip>
  46. <hadoop.winpkg.folder>hadoop-2.6.0.2.2.4.2-0002</hadoop.winpkg.folder>
  47. <grafana.folder>grafana-2.6.0</grafana.folder>
  48. <grafana.tar>https://grafanarel.s3.amazonaws.com/builds/grafana-2.6.0.linux-x64.tar.gz</grafana.tar>
  49. <phoenix.tar>http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.0-3347/tars/phoenix-4.4.0.2.3.4.0-3347.tar.gz</phoenix.tar>
  50. <phoenix.folder>phoenix-4.4.0.2.3.4.0-3347</phoenix.folder>
  51. <resmonitor.install.dir>
  52. /usr/lib/python2.6/site-packages/resource_monitoring
  53. </resmonitor.install.dir>
  54. <powermock.version>1.6.2</powermock.version>
  55. <distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
  56. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  57. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  58. <distMgmtStagingId>apache.staging.https</distMgmtStagingId>
  59. <distMgmtStagingName>Apache Release Distribution Repository</distMgmtStagingName>
  60. <distMgmtStagingUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtStagingUrl>
  61. </properties>
  62. <distributionManagement>
  63. <repository>
  64. <id>${distMgmtStagingId}</id>
  65. <name>${distMgmtStagingName}</name>
  66. <url>${distMgmtStagingUrl}</url>
  67. </repository>
  68. <snapshotRepository>
  69. <id>${distMgmtSnapshotsId}</id>
  70. <name>${distMgmtSnapshotsName}</name>
  71. <url>${distMgmtSnapshotsUrl}</url>
  72. </snapshotRepository>
  73. </distributionManagement>
  74. <repositories>
  75. <repository>
  76. <id>apache-hadoop</id>
  77. <name>hdp</name>
  78. <url>http://repo.hortonworks.com/content/groups/public/</url>
  79. </repository>
  80. <repository>
  81. <id>apache-snapshots</id>
  82. <name>snapshots</name>
  83. <url>https://repository.apache.org/content/repositories/snapshots</url>
  84. </repository>
  85. </repositories>
  86. <dependencyManagement>
  87. <dependencies>
  88. <dependency>
  89. <groupId>org.mockito</groupId>
  90. <artifactId>mockito-all</artifactId>
  91. <version>1.10.19</version>
  92. <scope>test</scope>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.powermock</groupId>
  96. <artifactId>powermock-api-mockito</artifactId>
  97. <version>${powermock.version}</version>
  98. <scope>test</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.powermock</groupId>
  102. <artifactId>powermock-api-easymock</artifactId>
  103. <version>${powermock.version}</version>
  104. <scope>test</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.powermock</groupId>
  108. <artifactId>powermock-module-junit4</artifactId>
  109. <version>${powermock.version}</version>
  110. <scope>test</scope>
  111. </dependency>
  112. </dependencies>
  113. </dependencyManagement>
  114. <build>
  115. <plugins>
  116. <plugin>
  117. <groupId>org.apache.maven.plugins</groupId>
  118. <artifactId>maven-surefire-plugin</artifactId>
  119. <version>2.19</version>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.codehaus.mojo</groupId>
  123. <artifactId>build-helper-maven-plugin</artifactId>
  124. <version>1.8</version>
  125. <executions>
  126. <execution>
  127. <id>parse-version</id>
  128. <phase>validate</phase>
  129. <goals>
  130. <goal>parse-version</goal>
  131. </goals>
  132. </execution>
  133. <execution>
  134. <id>regex-property</id>
  135. <goals>
  136. <goal>regex-property</goal>
  137. </goals>
  138. <configuration>
  139. <name>ambariVersion</name>
  140. <value>${project.version}</value>
  141. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  142. <replacement>$1.$2.$3.$4</replacement>
  143. <failIfNoMatch>false</failIfNoMatch>
  144. </configuration>
  145. </execution>
  146. </executions>
  147. </plugin>
  148. <plugin>
  149. <artifactId>maven-assembly-plugin</artifactId>
  150. <configuration>
  151. <descriptors>
  152. <descriptor>../ambari-project/src/main/assemblies/empty.xml</descriptor>
  153. </descriptors>
  154. </configuration>
  155. <executions>
  156. <execution>
  157. <id>build-tarball</id>
  158. <phase>none</phase>
  159. <goals>
  160. <goal>single</goal>
  161. </goals>
  162. </execution>
  163. </executions>
  164. </plugin>
  165. <plugin>
  166. <groupId>org.apache.maven.plugins</groupId>
  167. <artifactId>maven-surefire-plugin</artifactId>
  168. <configuration>
  169. <skip>${skipSurefireTests}</skip>
  170. <!-- Each profile in the top-level pom.xml defines which test group categories to run. -->
  171. <groups>${testcase.groups}</groups>
  172. </configuration>
  173. </plugin>
  174. <plugin>
  175. <artifactId>maven-compiler-plugin</artifactId>
  176. <version>3.2</version>
  177. <configuration>
  178. <source>1.7</source>
  179. <target>1.7</target>
  180. </configuration>
  181. </plugin>
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-clean-plugin</artifactId>
  185. <configuration>
  186. <filesets>
  187. <fileset>
  188. <directory>${basedir}</directory>
  189. <followSymlinks>false</followSymlinks>
  190. <includes>
  191. <include>**/*.pyc</include>
  192. </includes>
  193. </fileset>
  194. </filesets>
  195. </configuration>
  196. </plugin>
  197. <plugin>
  198. <groupId>org.codehaus.mojo</groupId>
  199. <artifactId>build-helper-maven-plugin</artifactId>
  200. <version>1.8</version>
  201. <executions>
  202. <execution>
  203. <id>parse-package-version</id>
  204. <goals>
  205. <goal>regex-property</goal>
  206. </goals>
  207. <configuration>
  208. <name>package-version</name>
  209. <value>${project.version}</value>
  210. <regex>^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-).*</regex>
  211. <replacement>$1.$2.$3.$4</replacement>
  212. <failIfNoMatch>true</failIfNoMatch>
  213. </configuration>
  214. </execution>
  215. <execution>
  216. <id>parse-package-release</id>
  217. <goals>
  218. <goal>regex-property</goal>
  219. </goals>
  220. <configuration>
  221. <name>package-release</name>
  222. <value>${project.version}</value>
  223. <regex>
  224. ^([0-9]+)\.([0-9]+)\.([0-9]+)\.([0-9]+)(\.|-)((([a-zA-Z]+)?([0-9]+))|(SNAPSHOT)).*
  225. </regex>
  226. <replacement>$7</replacement>
  227. <failIfNoMatch>true</failIfNoMatch>
  228. </configuration>
  229. </execution>
  230. </executions>
  231. </plugin>
  232. <plugin>
  233. <!--Stub execution on direct plugin call - workaround for ambari rpm build process-->
  234. <groupId>org.codehaus.mojo</groupId>
  235. <artifactId>rpm-maven-plugin</artifactId>
  236. <version>2.0.1</version>
  237. <executions>
  238. <execution>
  239. <id>stub-execution</id>
  240. <!-- unbinds rpm creation from maven lifecycle -->
  241. <phase>none</phase>
  242. <goals>
  243. <goal>attached-rpm</goal>
  244. </goals>
  245. </execution>
  246. </executions>
  247. <configuration>
  248. <copyright>2012, Apache Software Foundation</copyright>
  249. <group>Development</group>
  250. <description>Maven Recipe: RPM Package.</description>
  251. <release>${package-release}</release>
  252. <version>${package-version}</version>
  253. <mappings/>
  254. </configuration>
  255. </plugin>
  256. <plugin>
  257. <groupId>org.vafer</groupId>
  258. <artifactId>jdeb</artifactId>
  259. <version>1.0.1</version>
  260. <executions>
  261. <execution>
  262. <!--Stub execution on direct plugin call - workaround for ambari deb build process-->
  263. <id>stub-execution</id>
  264. <phase>none</phase>
  265. <goals>
  266. <goal>jdeb</goal>
  267. </goals>
  268. </execution>
  269. </executions>
  270. <configuration>
  271. <skip>true</skip>
  272. <attach>false</attach>
  273. <submodules>true</submodules>
  274. <controlDir>${project.basedir}/src/main/package/deb/control</controlDir>
  275. </configuration>
  276. </plugin>
  277. <plugin>
  278. <groupId>org.apache.rat</groupId>
  279. <artifactId>apache-rat-plugin</artifactId>
  280. <configuration>
  281. <excludes>
  282. <exclude>pass.txt</exclude>
  283. <exclude>derby.log</exclude>
  284. <exclude>**/*.nuspec</exclude>
  285. <exclude>**/*.json</exclude>
  286. </excludes>
  287. </configuration>
  288. <executions>
  289. <execution>
  290. <phase>test</phase>
  291. <goals>
  292. <goal>check</goal>
  293. </goals>
  294. </execution>
  295. </executions>
  296. </plugin>
  297. </plugins>
  298. </build>
  299. <dependencies>
  300. <!-- Dependency in order to annotate unit tests with a category. -->
  301. <dependency>
  302. <groupId>utility</groupId>
  303. <artifactId>utility</artifactId>
  304. <version>1.0.0.0-SNAPSHOT</version>
  305. <scope>test</scope>
  306. </dependency>
  307. </dependencies>
  308. <profiles>
  309. <profile>
  310. <id>FastTests</id>
  311. <properties>
  312. <testcase.groups>category.FastTest</testcase.groups>
  313. </properties>
  314. <dependencies>
  315. <dependency>
  316. <groupId>utility</groupId>
  317. <artifactId>utility</artifactId>
  318. <version>1.0.0.0-SNAPSHOT</version>
  319. </dependency>
  320. </dependencies>
  321. </profile>
  322. </profiles>
  323. </project>