pom.xml 12 KB

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