pom.xml 11 KB

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