pom.xml 12 KB

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