pom.xml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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.5.0-201fc85-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. </dependencies>
  173. </dependencyManagement>
  174. <dependencies>
  175. <dependency>
  176. <groupId>org.apache.hadoop</groupId>
  177. <artifactId>hadoop-common</artifactId>
  178. <version>${hadoop.version}</version>
  179. </dependency>
  180. <dependency>
  181. <groupId>org.apache.hadoop</groupId>
  182. <artifactId>hadoop-hdfs</artifactId>
  183. <version>${hadoop.version}</version>
  184. </dependency>
  185. <dependency>
  186. <groupId>org.apache.hadoop</groupId>
  187. <artifactId>hadoop-hdfs-client</artifactId>
  188. <version>${hadoop.version}</version>
  189. <exclusions>
  190. <exclusion>
  191. <groupId>com.squareup.okhttp</groupId>
  192. <artifactId>okhttp</artifactId>
  193. </exclusion>
  194. </exclusions>
  195. </dependency>
  196. <dependency>
  197. <groupId>org.apache.hadoop</groupId>
  198. <artifactId>hadoop-common</artifactId>
  199. <version>${hadoop.version}</version>
  200. <scope>test</scope>
  201. <type>test-jar</type>
  202. </dependency>
  203. <dependency>
  204. <groupId>org.apache.hadoop</groupId>
  205. <artifactId>hadoop-hdfs</artifactId>
  206. <version>${hadoop.version}</version>
  207. <scope>test</scope>
  208. <type>test-jar</type>
  209. </dependency>
  210. <dependency>
  211. <groupId>info.picocli</groupId>
  212. <artifactId>picocli</artifactId>
  213. <version>3.9.6</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>com.google.protobuf</groupId>
  217. <artifactId>protobuf-java</artifactId>
  218. <scope>compile</scope>
  219. </dependency>
  220. <dependency>
  221. <groupId>com.google.guava</groupId>
  222. <artifactId>guava</artifactId>
  223. <scope>compile</scope>
  224. </dependency>
  225. <dependency>
  226. <groupId>junit</groupId>
  227. <artifactId>junit</artifactId>
  228. <scope>test</scope>
  229. </dependency>
  230. </dependencies>
  231. <build>
  232. <plugins>
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-enforcer-plugin</artifactId>
  236. <executions>
  237. <execution>
  238. <id>depcheck</id>
  239. <configuration>
  240. <rules>
  241. <DependencyConvergence>
  242. <uniqueVersions>false</uniqueVersions>
  243. </DependencyConvergence>
  244. </rules>
  245. </configuration>
  246. </execution>
  247. </executions>
  248. </plugin>
  249. <plugin>
  250. <groupId>org.apache.rat</groupId>
  251. <artifactId>apache-rat-plugin</artifactId>
  252. <configuration>
  253. <excludes>
  254. <exclude>**/hs_err*.log</exclude>
  255. <exclude>**/target/**</exclude>
  256. <exclude>.gitattributes</exclude>
  257. <exclude>.idea/**</exclude>
  258. <exclude>src/main/resources/webapps/static/angular-1.6.4.min.js</exclude>
  259. <exclude>src/main/resources/webapps/static/angular-nvd3-1.0.9.min.js</exclude>
  260. <exclude>src/main/resources/webapps/static/angular-route-1.6.4.min.js</exclude>
  261. <exclude>src/main/resources/webapps/static/d3-3.5.17.min.js</exclude>
  262. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.css.map</exclude>
  263. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.css</exclude>
  264. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.js.map</exclude>
  265. <exclude>src/main/resources/webapps/static/nvd3-1.8.5.min.js</exclude>
  266. <exclude>src/main/resources/webapps/static/jquery-3.4.1.min.js</exclude>
  267. <exclude>src/main/resources/webapps/static/bootstrap-3.4.1/**</exclude>
  268. <exclude>src/test/resources/additionalfields.container</exclude>
  269. <exclude>src/test/resources/incorrect.checksum.container</exclude>
  270. <exclude>src/test/resources/incorrect.container</exclude>
  271. <exclude>src/test/resources/test.db.ini</exclude>
  272. </excludes>
  273. </configuration>
  274. </plugin>
  275. <plugin>
  276. <groupId>org.apache.maven.plugins</groupId>
  277. <artifactId>maven-dependency-plugin</artifactId>
  278. <executions>
  279. <execution>
  280. <id>add-classpath-descriptor</id>
  281. <phase>package</phase>
  282. <goals>
  283. <goal>build-classpath</goal>
  284. </goals>
  285. <configuration>
  286. <outputFile>${project.build.directory}/classpath</outputFile>
  287. <prefix>$HDDS_LIB_JARS_DIR</prefix>
  288. <outputFilterFile>true</outputFilterFile>
  289. <includeScope>runtime</includeScope>
  290. </configuration>
  291. </execution>
  292. </executions>
  293. </plugin>
  294. <plugin>
  295. <groupId>org.codehaus.mojo</groupId>
  296. <artifactId>build-helper-maven-plugin</artifactId>
  297. <executions>
  298. <execution>
  299. <id>attach-classpath-artifact</id>
  300. <phase>package</phase>
  301. <goals>
  302. <goal>attach-artifact</goal>
  303. </goals>
  304. <configuration>
  305. <artifacts>
  306. <artifact>
  307. <file>${project.build.directory}/classpath</file>
  308. <type>cp</type>
  309. <classifier>classpath</classifier>
  310. </artifact>
  311. </artifacts>
  312. </configuration>
  313. </execution>
  314. </executions>
  315. </plugin>
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-jar-plugin</artifactId>
  319. <executions>
  320. <execution>
  321. <goals>
  322. <goal>test-jar</goal>
  323. </goals>
  324. </execution>
  325. </executions>
  326. </plugin>
  327. </plugins>
  328. </build>
  329. <profiles>
  330. <profile>
  331. <id>parallel-tests</id>
  332. <build>
  333. <plugins>
  334. <plugin>
  335. <groupId>org.apache.hadoop</groupId>
  336. <artifactId>hadoop-maven-plugins</artifactId>
  337. <executions>
  338. <execution>
  339. <id>parallel-tests-createdir</id>
  340. <goals>
  341. <goal>parallel-tests-createdir</goal>
  342. </goals>
  343. </execution>
  344. </executions>
  345. </plugin>
  346. <plugin>
  347. <groupId>org.apache.maven.plugins</groupId>
  348. <artifactId>maven-surefire-plugin</artifactId>
  349. <configuration>
  350. <forkCount>${testsThreadCount}</forkCount>
  351. <reuseForks>false</reuseForks>
  352. <argLine>${maven-surefire-plugin.argLine} -DminiClusterDedicatedDirs=true</argLine>
  353. <systemPropertyVariables>
  354. <testsThreadCount>${testsThreadCount}</testsThreadCount>
  355. <test.build.data>${test.build.data}/${surefire.forkNumber}</test.build.data>
  356. <test.build.dir>${test.build.dir}/${surefire.forkNumber}</test.build.dir>
  357. <hadoop.tmp.dir>${hadoop.tmp.dir}/${surefire.forkNumber}</hadoop.tmp.dir>
  358. <!-- This is intentionally the same directory for all JUnit -->
  359. <!-- forks, for use in the very rare situation that -->
  360. <!-- concurrent tests need to coordinate, such as using lock -->
  361. <!-- files. -->
  362. <test.build.shared.data>${test.build.data}</test.build.shared.data>
  363. <!-- Due to a Maven quirk, setting this to just -->
  364. <!-- surefire.forkNumber won't do the parameter substitution. -->
  365. <!-- Putting a prefix in front of it like "fork-" makes it -->
  366. <!-- work. -->
  367. <test.unique.fork.id>fork-${surefire.forkNumber}</test.unique.fork.id>
  368. </systemPropertyVariables>
  369. </configuration>
  370. </plugin>
  371. </plugins>
  372. </build>
  373. </profile>
  374. </profiles>
  375. </project>