pom.ozone.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-main-ozone</artifactId>
  19. <version>0.5.0-SNAPSHOT</version>
  20. <description>Apache Hadoop Ozone Main</description>
  21. <name>Apache Hadoop Ozone Main</name>
  22. <packaging>pom</packaging>
  23. <distributionManagement>
  24. <repository>
  25. <id>${distMgmtStagingId}</id>
  26. <name>${distMgmtStagingName}</name>
  27. <url>${distMgmtStagingUrl}</url>
  28. </repository>
  29. <snapshotRepository>
  30. <id>${distMgmtSnapshotsId}</id>
  31. <name>${distMgmtSnapshotsName}</name>
  32. <url>${distMgmtSnapshotsUrl}</url>
  33. </snapshotRepository>
  34. </distributionManagement>
  35. <repositories>
  36. <repository>
  37. <id>${distMgmtSnapshotsId}</id>
  38. <name>${distMgmtSnapshotsName}</name>
  39. <url>${distMgmtSnapshotsUrl}</url>
  40. </repository>
  41. <repository>
  42. <id>repository.jboss.org</id>
  43. <url>http://repository.jboss.org/nexus/content/groups/public/</url>
  44. <snapshots>
  45. <enabled>false</enabled>
  46. </snapshots>
  47. </repository>
  48. </repositories>
  49. <licenses>
  50. <license>
  51. <name>Apache License, Version 2.0</name>
  52. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  53. </license>
  54. </licenses>
  55. <organization>
  56. <name>Apache Software Foundation</name>
  57. <url>http://www.apache.org</url>
  58. </organization>
  59. <properties>
  60. <!-- required as child projects with different version can't use ${project.version} -->
  61. <hadoop.version>3.3.0-SNAPSHOT</hadoop.version>
  62. <distMgmtSnapshotsId>apache.snapshots.https</distMgmtSnapshotsId>
  63. <distMgmtSnapshotsName>Apache Development Snapshot Repository</distMgmtSnapshotsName>
  64. <distMgmtSnapshotsUrl>https://repository.apache.org/content/repositories/snapshots</distMgmtSnapshotsUrl>
  65. <distMgmtStagingId>apache.staging.https</distMgmtStagingId>
  66. <distMgmtStagingName>Apache Release Distribution Repository</distMgmtStagingName>
  67. <distMgmtStagingUrl>https://repository.apache.org/service/local/staging/deploy/maven2</distMgmtStagingUrl>
  68. <!-- platform encoding override -->
  69. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  70. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  71. <shell-executable>bash</shell-executable>
  72. </properties>
  73. <modules>
  74. <module>hadoop-ozone</module>
  75. <module>hadoop-hdds</module>
  76. </modules>
  77. <profiles>
  78. <profile>
  79. <id>src</id>
  80. <activation>
  81. <activeByDefault>false</activeByDefault>
  82. </activation>
  83. <build>
  84. <plugins>
  85. <plugin>
  86. <groupId>org.apache.maven.plugins</groupId>
  87. <artifactId>maven-assembly-plugin</artifactId>
  88. <inherited>false</inherited>
  89. <executions>
  90. <execution>
  91. <id>src-dist</id>
  92. <phase>package</phase>
  93. <goals>
  94. <goal>single</goal>
  95. </goals>
  96. <configuration>
  97. <appendAssemblyId>false</appendAssemblyId>
  98. <attach>false</attach>
  99. <finalName>hadoop-${project.version}-src</finalName>
  100. <outputDirectory>hadoop-dist/target</outputDirectory>
  101. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  102. <!-- to avoid making hadoop-main to depend on a module -->
  103. <descriptors>
  104. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src.xml</descriptor>
  105. </descriptors>
  106. </configuration>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-antrun-plugin</artifactId>
  113. <inherited>false</inherited>
  114. <executions>
  115. <execution>
  116. <id>src-dist-msg</id>
  117. <phase>package</phase>
  118. <goals>
  119. <goal>run</goal>
  120. </goals>
  121. <configuration>
  122. <target>
  123. <echo/>
  124. <echo>Hadoop source tar available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src.tar.gz</echo>
  125. <echo/>
  126. </target>
  127. </configuration>
  128. </execution>
  129. </executions>
  130. </plugin>
  131. </plugins>
  132. </build>
  133. </profile>
  134. <profile>
  135. <id>hdds-src</id>
  136. <activation>
  137. <activeByDefault>false</activeByDefault>
  138. </activation>
  139. <build>
  140. <plugins>
  141. <plugin>
  142. <groupId>org.apache.maven.plugins</groupId>
  143. <artifactId>maven-assembly-plugin</artifactId>
  144. <inherited>false</inherited>
  145. <executions>
  146. <execution>
  147. <id>src-dist</id>
  148. <phase>package</phase>
  149. <goals>
  150. <goal>single</goal>
  151. </goals>
  152. <configuration>
  153. <appendAssemblyId>false</appendAssemblyId>
  154. <attach>false</attach>
  155. <finalName>hadoop-${project.version}-src-with-hdds</finalName>
  156. <outputDirectory>hadoop-dist/target</outputDirectory>
  157. <!-- Not using descriptorRef and hadoop-assembly dependency -->
  158. <!-- to avoid making hadoop-main to depend on a module -->
  159. <descriptors>
  160. <descriptor>hadoop-assemblies/src/main/resources/assemblies/hadoop-src-with-hdds.xml</descriptor>
  161. </descriptors>
  162. </configuration>
  163. </execution>
  164. </executions>
  165. </plugin>
  166. <plugin>
  167. <groupId>org.apache.maven.plugins</groupId>
  168. <artifactId>maven-antrun-plugin</artifactId>
  169. <inherited>false</inherited>
  170. <executions>
  171. <execution>
  172. <id>src-dist-msg</id>
  173. <phase>package</phase>
  174. <goals>
  175. <goal>run</goal>
  176. </goals>
  177. <configuration>
  178. <target>
  179. <echo/>
  180. <echo>Hadoop source tar (including HDDS) available at: ${basedir}/hadoop-dist/target/hadoop-${project.version}-src-with-hdds.tar.gz</echo>
  181. <echo/>
  182. </target>
  183. </configuration>
  184. </execution>
  185. </executions>
  186. </plugin>
  187. </plugins>
  188. </build>
  189. </profile>
  190. <profile>
  191. <id>sign</id>
  192. <build>
  193. <plugins>
  194. <plugin>
  195. <groupId>org.apache.maven.plugins</groupId>
  196. <artifactId>maven-gpg-plugin</artifactId>
  197. <version>${maven-gpg-plugin.version}</version>
  198. <executions>
  199. <execution>
  200. <id>sign-artifacts</id>
  201. <phase>verify</phase>
  202. <goals>
  203. <goal>sign</goal>
  204. </goals>
  205. </execution>
  206. </executions>
  207. </plugin>
  208. </plugins>
  209. </build>
  210. </profile>
  211. <profile>
  212. <id>clover</id>
  213. <activation>
  214. <activeByDefault>false</activeByDefault>
  215. <property>
  216. <name>clover</name>
  217. </property>
  218. </activation>
  219. <properties>
  220. <cloverLicenseLocation>${user.home}/.clover.license</cloverLicenseLocation>
  221. <cloverDatabase>${project.build.directory}/clover/hadoop-coverage.db</cloverDatabase>
  222. <!-- NB: This additional parametrization is made in order
  223. to be able to re-define these properties with "-Dk=v" maven options.
  224. By some reason the expressions declared in clover
  225. docs like "${maven.clover.generateHtml}" do not work in that way.
  226. However, the below properties are confirmed to work: e.g.
  227. -DcloverGenHtml=false switches off the Html generation.
  228. The default values provided here exactly correspond to Clover defaults, so
  229. the behavior is 100% backwards compatible. -->
  230. <cloverAlwaysReport>true</cloverAlwaysReport>
  231. <cloverGenHtml>true</cloverGenHtml>
  232. <cloverGenXml>true</cloverGenXml>
  233. <cloverGenHistorical>false</cloverGenHistorical>
  234. </properties>
  235. <build>
  236. <plugins>
  237. <plugin>
  238. <groupId>com.atlassian.maven.plugins</groupId>
  239. <artifactId>maven-clover2-plugin</artifactId>
  240. <configuration>
  241. <includesAllSourceRoots>false</includesAllSourceRoots>
  242. <includesTestSourceRoots>true</includesTestSourceRoots>
  243. <licenseLocation>${cloverLicenseLocation}</licenseLocation>
  244. <cloverDatabase>${cloverDatabase}</cloverDatabase>
  245. <targetPercentage>50%</targetPercentage>
  246. <outputDirectory>${project.build.directory}/clover</outputDirectory>
  247. <alwaysReport>${cloverAlwaysReport}</alwaysReport>
  248. <generateHtml>${cloverGenHtml}</generateHtml>
  249. <generateXml>${cloverGenXml}</generateXml>
  250. <generateHistorical>${cloverGenHistorical}</generateHistorical>
  251. <excludes>
  252. <exclude>**/examples/**/*.java</exclude>
  253. <exclude>**/hamlet/*.java</exclude>
  254. <exclude>**/ha/proto/*.java</exclude>
  255. <exclude>**/protocol/proto/*.java</exclude>
  256. <exclude>**/compiler/generated/*.java</exclude>
  257. <exclude>**/protobuf/*.java</exclude>
  258. <exclude>**/v2/proto/*.java</exclude>
  259. <exclude>**/yarn/proto/*.java</exclude>
  260. <exclude>**/security/proto/*.java</exclude>
  261. <exclude>**/tools/proto/*.java</exclude>
  262. <exclude>**/hs/proto/*.java</exclude>
  263. </excludes>
  264. </configuration>
  265. <executions>
  266. <execution>
  267. <id>clover-setup</id>
  268. <phase>process-sources</phase>
  269. <goals>
  270. <goal>setup</goal>
  271. </goals>
  272. </execution>
  273. <execution>
  274. <id>clover</id>
  275. <phase>test</phase>
  276. <goals>
  277. <goal>clover</goal>
  278. </goals>
  279. </execution>
  280. </executions>
  281. </plugin>
  282. </plugins>
  283. </build>
  284. </profile>
  285. <profile>
  286. <id>hdds</id>
  287. <activation>
  288. <activeByDefault>false</activeByDefault>
  289. </activation>
  290. <modules>
  291. <module>hadoop-ozone</module>
  292. <module>hadoop-hdds</module>
  293. </modules>
  294. </profile>
  295. </profiles>
  296. </project>