pom.xml 12 KB

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