pom.xml 9.1 KB

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