pom.xml 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>org.apache.hadoop</groupId>
  19. <artifactId>hadoop-project</artifactId>
  20. <version>3.5.0-SNAPSHOT</version>
  21. <relativePath>../../../hadoop-project/pom.xml</relativePath>
  22. </parent>
  23. <artifactId>hadoop-tos-core</artifactId>
  24. <version>3.5.0-SNAPSHOT</version>
  25. <name>Apache Hadoop Volcano Engine Services Core</name>
  26. <description>
  27. This module contains code to support integration with Volcano Engine TOS.
  28. It also declares the dependencies needed to work with Volcano Engine services.
  29. </description>
  30. <packaging>jar</packaging>
  31. <properties>
  32. <file.encoding>UTF-8</file.encoding>
  33. <ve-tos-java-sdk.version>2.8.6</ve-tos-java-sdk.version>
  34. <tos.shading.prefix>org.apache.hadoop.fs.tosfs.shaded</tos.shading.prefix>
  35. </properties>
  36. <dependencyManagement>
  37. <dependencies>
  38. <!-- The ve-tos-java-sdk 2.8.6 depends on okhttp, but okhttp violates dependency convergence.
  39. The com.squareup.okhttp3:okhttp:jar:4.10.0 depends on org.jetbrains.kotlin:kotlin-stdlib-common,
  40. with 2 different versions: 1.5.31 and 1.6.20. Force configure it to 1.6.20. -->
  41. <dependency>
  42. <groupId>org.jetbrains.kotlin</groupId>
  43. <artifactId>kotlin-stdlib-common</artifactId>
  44. <version>1.6.20</version>
  45. </dependency>
  46. </dependencies>
  47. </dependencyManagement>
  48. <dependencies>
  49. <dependency>
  50. <groupId>org.apache.hadoop</groupId>
  51. <artifactId>hadoop-common</artifactId>
  52. <scope>provided</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.apache.hadoop</groupId>
  56. <artifactId>hadoop-mapreduce-client-core</artifactId>
  57. <scope>provided</scope>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.apache.hadoop</groupId>
  61. <artifactId>hadoop-tos-shade</artifactId>
  62. <exclusions>
  63. <exclusion>
  64. <groupId>com.volcengine</groupId>
  65. <artifactId>ve-tos-java-sdk</artifactId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <!-- Test dependencies -->
  70. <dependency>
  71. <groupId>org.apache.hadoop</groupId>
  72. <artifactId>hadoop-common</artifactId>
  73. <scope>test</scope>
  74. <type>test-jar</type>
  75. </dependency>
  76. <!-- Artifacts needed to bring up a Mini MR Yarn cluster-->
  77. <dependency>
  78. <groupId>org.apache.hadoop</groupId>
  79. <artifactId>hadoop-mapreduce-examples</artifactId>
  80. <scope>test</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.apache.hadoop</groupId>
  84. <artifactId>hadoop-minicluster</artifactId>
  85. <scope>test</scope>
  86. </dependency>
  87. <dependency>
  88. <groupId>org.apache.hadoop</groupId>
  89. <artifactId>hadoop-distcp</artifactId>
  90. <version>${hadoop.version}</version>
  91. <scope>test</scope>
  92. </dependency>
  93. <dependency>
  94. <groupId>org.apache.hadoop</groupId>
  95. <artifactId>hadoop-distcp</artifactId>
  96. <version>${hadoop.version}</version>
  97. <scope>test</scope>
  98. <type>test-jar</type>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.assertj</groupId>
  102. <artifactId>assertj-core</artifactId>
  103. <scope>test</scope>
  104. </dependency>
  105. <dependency>
  106. <groupId>junit</groupId>
  107. <artifactId>junit</artifactId>
  108. <scope>test</scope>
  109. </dependency>
  110. <dependency>
  111. <groupId>org.mockito</groupId>
  112. <artifactId>mockito-core</artifactId>
  113. <version>4.11.0</version>
  114. <scope>test</scope>
  115. </dependency>
  116. </dependencies>
  117. <build>
  118. <plugins>
  119. <plugin>
  120. <groupId>org.apache.maven.plugins</groupId>
  121. <artifactId>maven-surefire-plugin</artifactId>
  122. <version>2.21.0</version>
  123. <configuration>
  124. <parallel>classes</parallel>
  125. <threadCount>1</threadCount>
  126. <perCoreThreadCount>true</perCoreThreadCount>
  127. <rerunFailingTestsCount>2</rerunFailingTestsCount>
  128. <forkCount>8</forkCount>
  129. <argLine>-Xmx2048m</argLine>
  130. </configuration>
  131. </plugin>
  132. <plugin>
  133. <groupId>org.apache.maven.plugins</groupId>
  134. <artifactId>maven-shade-plugin</artifactId>
  135. <version>${maven-shade-plugin.version}</version>
  136. <executions>
  137. <execution>
  138. <id>package-dependency</id>
  139. <phase>package</phase>
  140. <goals>
  141. <goal>shade</goal>
  142. </goals>
  143. <configuration>
  144. <shadeSourcesContent>true</shadeSourcesContent>
  145. <createSourcesJar>true</createSourcesJar>
  146. <artifactSet>
  147. <includes>
  148. <include>org.apache.hadoop:hadoop-tos-shade</include>
  149. </includes>
  150. </artifactSet>
  151. </configuration>
  152. </execution>
  153. </executions>
  154. </plugin>
  155. </plugins>
  156. </build>
  157. </project>