pom.xml 11 KB

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