pom.xml 11 KB

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