pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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
  16. http://maven.apache.org/xsd/maven-4.0.0.xsd">
  17. <modelVersion>4.0.0</modelVersion>
  18. <parent>
  19. <groupId>org.apache.hadoop</groupId>
  20. <artifactId>hadoop-project</artifactId>
  21. <version>3.2.0-SNAPSHOT</version>
  22. <relativePath>../hadoop-project</relativePath>
  23. </parent>
  24. <artifactId>hadoop-ozone</artifactId>
  25. <version>0.3.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Ozone Project</description>
  27. <name>Apache Hadoop Ozone</name>
  28. <packaging>pom</packaging>
  29. <properties>
  30. <ozone.version>0.3.0-SNAPSHOT</ozone.version>
  31. <ozone.release>Arches</ozone.release>
  32. <declared.ozone.version>${ozone.version}</declared.ozone.version>
  33. </properties>
  34. <modules>
  35. <module>common</module>
  36. <module>client</module>
  37. <module>ozone-manager</module>
  38. <module>tools</module>
  39. <module>ozonefs</module>
  40. <module>integration-test</module>
  41. <module>objectstore-service</module>
  42. <module>datanode</module>
  43. <module>dist</module>
  44. <module>docs</module>
  45. </modules>
  46. <dependencies>
  47. <dependency>
  48. <groupId>org.apache.hadoop</groupId>
  49. <artifactId>hadoop-common</artifactId>
  50. </dependency>
  51. <dependency>
  52. <groupId>org.apache.hadoop</groupId>
  53. <artifactId>hadoop-hdfs</artifactId>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.apache.hadoop</groupId>
  57. <artifactId>hadoop-hdfs-client</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-hdds-common</artifactId>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-hdds-server-framework</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.hadoop</groupId>
  69. <artifactId>hadoop-hdds-server-scm</artifactId>
  70. </dependency>
  71. <dependency>
  72. <groupId>org.apache.hadoop</groupId>
  73. <artifactId>hadoop-hdds-container-service</artifactId>
  74. </dependency>
  75. <dependency>
  76. <groupId>org.apache.hadoop</groupId>
  77. <artifactId>hadoop-hdds-client</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.hadoop</groupId>
  81. <artifactId>hadoop-hdds-tools</artifactId>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-common</artifactId>
  86. <scope>test</scope>
  87. <type>test-jar</type>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.hadoop</groupId>
  91. <artifactId>hadoop-hdfs</artifactId>
  92. <scope>test</scope>
  93. <type>test-jar</type>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.apache.hadoop</groupId>
  97. <artifactId>hadoop-hdds-server-scm</artifactId>
  98. <scope>test</scope>
  99. <type>test-jar</type>
  100. </dependency>
  101. <dependency>
  102. <groupId>org.apache.hadoop</groupId>
  103. <artifactId>hadoop-hdds-container-service</artifactId>
  104. <scope>test</scope>
  105. <type>test-jar</type>
  106. </dependency>
  107. <dependency>
  108. <groupId>junit</groupId>
  109. <artifactId>junit</artifactId>
  110. <scope>test</scope>
  111. </dependency>
  112. </dependencies>
  113. <build>
  114. <plugins>
  115. <plugin>
  116. <groupId>org.apache.rat</groupId>
  117. <artifactId>apache-rat-plugin</artifactId>
  118. <configuration>
  119. <excludes>
  120. <exclude>**/*.json</exclude>
  121. <exclude>**/hs_err*.log</exclude>
  122. <exclude>**/target/**</exclude>
  123. <exclude>.gitattributes</exclude>
  124. <exclude>.idea/**</exclude>
  125. <exclude>dev-support/*tests</exclude>
  126. <exclude>dev-support/checkstyle*</exclude>
  127. <exclude>dev-support/jdiff/**</exclude>
  128. <exclude>src/contrib/**</exclude>
  129. <exclude>src/main/webapps/datanode/robots.txt</exclude>
  130. <exclude>src/main/webapps/hdfs/robots.txt</exclude>
  131. <exclude>src/main/webapps/journal/robots.txt</exclude>
  132. <exclude>src/main/webapps/router/robots.txt</exclude>
  133. <exclude>src/main/webapps/secondary/robots.txt</exclude>
  134. <exclude>src/site/resources/images/*</exclude>
  135. <exclude>src/test/all-tests</exclude>
  136. <exclude>src/test/empty-file</exclude>
  137. <exclude>src/test/resources/*.tgz</exclude>
  138. <exclude>src/test/resources/data*</exclude>
  139. <exclude>src/test/resources/empty-file</exclude>
  140. <exclude>webapps/static/angular-1.6.4.min.js</exclude>
  141. <exclude>webapps/static/angular-nvd3-1.0.9.min.js</exclude>
  142. <exclude>webapps/static/angular-route-1.6.4.min.js</exclude>
  143. <exclude>webapps/static/bootstrap-3.3.7/**</exclude>
  144. <exclude>webapps/static/d3-3.5.17.min.js</exclude>
  145. <exclude>webapps/static/jquery-3.3.1.min.js</exclude>
  146. <exclude>webapps/static/jquery.dataTables.min.js</exclude>
  147. <exclude>webapps/static/nvd3-1.8.5.min.css.map</exclude>
  148. <exclude>webapps/static/nvd3-1.8.5.min.css</exclude>
  149. <exclude>webapps/static/nvd3-1.8.5.min.js.map</exclude>
  150. <exclude>webapps/static/nvd3-1.8.5.min.js</exclude>
  151. </excludes>
  152. </configuration>
  153. </plugin>
  154. <plugin>
  155. <groupId>org.codehaus.mojo</groupId>
  156. <artifactId>findbugs-maven-plugin</artifactId>
  157. <configuration>
  158. <excludeFilterFile combine.self="override"></excludeFilterFile>
  159. </configuration>
  160. </plugin>
  161. <plugin>
  162. <groupId>org.apache.maven.plugins</groupId>
  163. <artifactId>maven-dependency-plugin</artifactId>
  164. <executions>
  165. <execution>
  166. <id>add-classpath-descriptor</id>
  167. <phase>package</phase>
  168. <goals>
  169. <goal>build-classpath</goal>
  170. </goals>
  171. <configuration>
  172. <attach>true</attach>
  173. <prefix>$HDDS_LIB_JARS_DIR</prefix>
  174. <outputFilterFile>true</outputFilterFile>
  175. <includeScope>runtime</includeScope>
  176. </configuration>
  177. </execution>
  178. </executions>
  179. </plugin>
  180. </plugins>
  181. </build>
  182. <profiles>
  183. <profile>
  184. <id>parallel-tests</id>
  185. <build>
  186. <plugins>
  187. <plugin>
  188. <groupId>org.apache.hadoop</groupId>
  189. <artifactId>hadoop-maven-plugins</artifactId>
  190. <executions>
  191. <execution>
  192. <id>parallel-tests-createdir</id>
  193. <goals>
  194. <goal>parallel-tests-createdir</goal>
  195. </goals>
  196. </execution>
  197. </executions>
  198. </plugin>
  199. <plugin>
  200. <groupId>org.apache.maven.plugins</groupId>
  201. <artifactId>maven-surefire-plugin</artifactId>
  202. <configuration>
  203. <forkCount>${testsThreadCount}</forkCount>
  204. <reuseForks>false</reuseForks>
  205. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  206. <systemPropertyVariables>
  207. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  208. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  209. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  210. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  211. <!-- This is intentionally the same directory for all JUnit -->
  212. <!-- forks, for use in the very rare situation that -->
  213. <!-- concurrent tests need to coordinate, such as using lock -->
  214. <!-- files. -->
  215. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  216. <!-- Due to a Maven quirk, setting this to just -->
  217. <!-- surefire.forkNumber won't do the parameter substitution. -->
  218. <!-- Putting a prefix in front of it like "fork-" makes it -->
  219. <!-- work. -->
  220. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  221. </systemPropertyVariables>
  222. </configuration>
  223. </plugin>
  224. </plugins>
  225. </build>
  226. </profile>
  227. </profiles>
  228. </project>