pom.xml 14 KB

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