pom.xml 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386
  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</version>
  22. <relativePath/>
  23. </parent>
  24. <artifactId>hadoop-hdds</artifactId>
  25. <version>0.4.0-SNAPSHOT</version>
  26. <description>Apache Hadoop Distributed Data Store Project</description>
  27. <name>Apache Hadoop HDDS</name>
  28. <packaging>pom</packaging>
  29. <modules>
  30. <module>client</module>
  31. <module>common</module>
  32. <module>framework</module>
  33. <module>container-service</module>
  34. <module>server-scm</module>
  35. <module>tools</module>
  36. <module>docs</module>
  37. </modules>
  38. <properties>
  39. <!-- version for hdds/ozone components -->
  40. <hdds.version>0.4.0-SNAPSHOT</hdds.version>
  41. <!-- Apache Ratis version -->
  42. <ratis.version>0.4.0-f283ffa-SNAPSHOT</ratis.version>
  43. <bouncycastle.version>1.60</bouncycastle.version>
  44. <protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>
  45. <os-maven-plugin.version>1.5.0.Final</os-maven-plugin.version>
  46. <maven-surefire-plugin.version>3.0.0-M1</maven-surefire-plugin.version>
  47. <junit.jupiter.version>5.3.1</junit.jupiter.version>
  48. </properties>
  49. <repositories>
  50. <repository>
  51. <id>apache.snapshots.https</id>
  52. <url>https://repository.apache.org/content/repositories/snapshots</url>
  53. </repository>
  54. </repositories>
  55. <pluginRepositories>
  56. <pluginRepository>
  57. <id>apache.snapshots.https</id>
  58. <url>https://repository.apache.org/content/repositories/snapshots</url>
  59. </pluginRepository>
  60. </pluginRepositories>
  61. <dependencyManagement>
  62. <dependencies>
  63. <dependency>
  64. <groupId>org.apache.hadoop</groupId>
  65. <artifactId>hadoop-hdds-common</artifactId>
  66. <version>${hdds.version}</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>org.apache.hadoop</groupId>
  70. <artifactId>hadoop-hdds-client</artifactId>
  71. <version>${hdds.version}</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.apache.hadoop</groupId>
  75. <artifactId>hadoop-hdds-tools</artifactId>
  76. <version>${hdds.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.hadoop</groupId>
  80. <artifactId>hadoop-hdds-server-framework</artifactId>
  81. <version>${hdds.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>org.apache.hadoop</groupId>
  85. <artifactId>hadoop-hdds-server-scm</artifactId>
  86. <version>${hdds.version}</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.hadoop</groupId>
  90. <artifactId>hadoop-hdds-container-service</artifactId>
  91. <version>${hdds.version}</version>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-hdds-docs</artifactId>
  96. <version>${hdds.version}</version>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.hadoop</groupId>
  100. <artifactId>hadoop-hdds-container-service</artifactId>
  101. <version>${hdds.version}</version>
  102. <type>test-jar</type>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.apache.hadoop</groupId>
  106. <artifactId>hadoop-hdds-server-scm</artifactId>
  107. <type>test-jar</type>
  108. <version>${hdds.version}</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.openjdk.jmh</groupId>
  112. <artifactId>jmh-core</artifactId>
  113. <version>1.19</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>org.openjdk.jmh</groupId>
  117. <artifactId>jmh-generator-annprocess</artifactId>
  118. <version>1.19</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.apache.ratis</groupId>
  122. <artifactId>ratis-proto-shaded</artifactId>
  123. <version>${ratis.version}</version>
  124. </dependency>
  125. <dependency>
  126. <artifactId>ratis-common</artifactId>
  127. <groupId>org.apache.ratis</groupId>
  128. <version>${ratis.version}</version>
  129. </dependency>
  130. <dependency>
  131. <artifactId>ratis-client</artifactId>
  132. <groupId>org.apache.ratis</groupId>
  133. <version>${ratis.version}</version>
  134. </dependency>
  135. <dependency>
  136. <artifactId>ratis-server</artifactId>
  137. <groupId>org.apache.ratis</groupId>
  138. <version>${ratis.version}</version>
  139. </dependency>
  140. <dependency>
  141. <artifactId>ratis-netty</artifactId>
  142. <groupId>org.apache.ratis</groupId>
  143. <version>${ratis.version}</version>
  144. </dependency>
  145. <dependency>
  146. <artifactId>ratis-grpc</artifactId>
  147. <groupId>org.apache.ratis</groupId>
  148. <version>${ratis.version}</version>
  149. </dependency>
  150. <dependency>
  151. <groupId>org.bouncycastle</groupId>
  152. <artifactId>bcprov-jdk15on</artifactId>
  153. <version>${bouncycastle.version}</version>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.bouncycastle</groupId>
  157. <artifactId>bcpkix-jdk15on</artifactId>
  158. <version>${bouncycastle.version}</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>org.junit.jupiter</groupId>
  162. <artifactId>junit-jupiter-api</artifactId>
  163. <version>${junit.jupiter.version}</version>
  164. <scope>test</scope>
  165. </dependency>
  166. <dependency>
  167. <groupId>com.google.code.findbugs</groupId>
  168. <artifactId>findbugs</artifactId>
  169. <version>3.0.1</version>
  170. <scope>provided</scope>
  171. </dependency>
  172. </dependencies>
  173. </dependencyManagement>
  174. <dependencies>
  175. <dependency>
  176. <groupId>org.apache.hadoop</groupId>
  177. <artifactId>hadoop-common</artifactId>
  178. </dependency>
  179. <dependency>
  180. <groupId>org.apache.hadoop</groupId>
  181. <artifactId>hadoop-hdfs</artifactId>
  182. </dependency>
  183. <dependency>
  184. <groupId>org.apache.hadoop</groupId>
  185. <artifactId>hadoop-hdfs-client</artifactId>
  186. <exclusions>
  187. <exclusion>
  188. <groupId>com.squareup.okhttp</groupId>
  189. <artifactId>okhttp</artifactId>
  190. </exclusion>
  191. </exclusions>
  192. </dependency>
  193. <dependency>
  194. <groupId>org.apache.hadoop</groupId>
  195. <artifactId>hadoop-common</artifactId>
  196. <scope>test</scope>
  197. <type>test-jar</type>
  198. </dependency>
  199. <dependency>
  200. <groupId>org.apache.hadoop</groupId>
  201. <artifactId>hadoop-hdfs</artifactId>
  202. <scope>test</scope>
  203. <type>test-jar</type>
  204. </dependency>
  205. <dependency>
  206. <groupId>info.picocli</groupId>
  207. <artifactId>picocli</artifactId>
  208. <version>3.5.2</version>
  209. </dependency>
  210. <dependency>
  211. <groupId>com.google.protobuf</groupId>
  212. <artifactId>protobuf-java</artifactId>
  213. <scope>compile</scope>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.google.guava</groupId>
  217. <artifactId>guava</artifactId>
  218. <scope>compile</scope>
  219. </dependency>
  220. <dependency>
  221. <groupId>junit</groupId>
  222. <artifactId>junit</artifactId>
  223. <scope>test</scope>
  224. </dependency>
  225. </dependencies>
  226. <build>
  227. <plugins>
  228. <plugin>
  229. <groupId>org.apache.maven.plugins</groupId>
  230. <artifactId>maven-enforcer-plugin</artifactId>
  231. <executions>
  232. <execution>
  233. <id>depcheck</id>
  234. <configuration>
  235. <rules>
  236. <DependencyConvergence>
  237. <uniqueVersions>false</uniqueVersions>
  238. </DependencyConvergence>
  239. </rules>
  240. </configuration>
  241. </execution>
  242. </executions>
  243. </plugin>
  244. <plugin>
  245. <groupId>org.apache.rat</groupId>
  246. <artifactId>apache-rat-plugin</artifactId>
  247. <configuration>
  248. <excludes>
  249. <exclude>**/hs_err*.log</exclude>
  250. <exclude>**/target/**</exclude>
  251. <exclude>.gitattributes</exclude>
  252. <exclude>.idea/**</exclude>
  253. <exclude>src/main/resources/webapps/static/angular-1.6.4.min.js</exclude>
  254. <exclude>src/main/resources/webapps/static/angular-nvd3-1.0.9.min.js</exclude>
  255. <exclude>src/main/resources/webapps/static/angular-route-1.6.4.min.js</exclude>
  256. <exclude>src/main/resources/webapps/static/d3-3.5.17.min.js</exclude>
  257. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.css.map</exclude>
  258. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.css</exclude>
  259. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.js.map</exclude>
  260. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.js</exclude>
  261. <exclude>src/test/resources/additionalfields.container</exclude>
  262. <exclude>src/test/resources/incorrect.checksum.container</exclude>
  263. <exclude>src/test/resources/incorrect.container</exclude>
  264. <exclude>src/test/resources/test.db.ini</exclude>
  265. </excludes>
  266. </configuration>
  267. </plugin>
  268. <plugin>
  269. <groupId>org.codehaus.mojo</groupId>
  270. <artifactId>findbugs-maven-plugin</artifactId>
  271. <version>3.0.4</version>
  272. <configuration>
  273. <excludeFilterFile combine.self="override"></excludeFilterFile>
  274. </configuration>
  275. </plugin>
  276. <plugin>
  277. <groupId>org.apache.maven.plugins</groupId>
  278. <artifactId>maven-dependency-plugin</artifactId>
  279. <executions>
  280. <execution>
  281. <id>add-classpath-descriptor</id>
  282. <phase>package</phase>
  283. <goals>
  284. <goal>build-classpath</goal>
  285. </goals>
  286. <configuration>
  287. <attach>true</attach>
  288. <prefix>$HDDS_LIB_JARS_DIR</prefix>
  289. <outputFilterFile>true</outputFilterFile>
  290. <includeScope>runtime</includeScope>
  291. </configuration>
  292. </execution>
  293. </executions>
  294. </plugin>
  295. <plugin>
  296. <groupId>org.apache.maven.plugins</groupId>
  297. <artifactId>maven-jar-plugin</artifactId>
  298. <executions>
  299. <execution>
  300. <goals>
  301. <goal>test-jar</goal>
  302. </goals>
  303. </execution>
  304. </executions>
  305. </plugin>
  306. </plugins>
  307. </build>
  308. <profiles>
  309. <profile>
  310. <id>parallel-tests</id>
  311. <build>
  312. <plugins>
  313. <plugin>
  314. <groupId>org.apache.hadoop</groupId>
  315. <artifactId>hadoop-maven-plugins</artifactId>
  316. <executions>
  317. <execution>
  318. <id>parallel-tests-createdir</id>
  319. <goals>
  320. <goal>parallel-tests-createdir</goal>
  321. </goals>
  322. </execution>
  323. </executions>
  324. </plugin>
  325. <plugin>
  326. <groupId>org.apache.maven.plugins</groupId>
  327. <artifactId>maven-surefire-plugin</artifactId>
  328. <configuration>
  329. <forkCount>${testsThreadCount}</forkCount>
  330. <reuseForks>false</reuseForks>
  331. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  332. <systemPropertyVariables>
  333. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  334. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  335. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  336. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  337. <!-- This is intentionally the same directory for all JUnit -->
  338. <!-- forks, for use in the very rare situation that -->
  339. <!-- concurrent tests need to coordinate, such as using lock -->
  340. <!-- files. -->
  341. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  342. <!-- Due to a Maven quirk, setting this to just -->
  343. <!-- surefire.forkNumber won't do the parameter substitution. -->
  344. <!-- Putting a prefix in front of it like "fork-" makes it -->
  345. <!-- work. -->
  346. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  347. </systemPropertyVariables>
  348. </configuration>
  349. </plugin>
  350. </plugins>
  351. </build>
  352. </profile>
  353. </profiles>
  354. </project>