pom.xml 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--Licensed under the Apache License, Version 2.0 (the "License");
  3. you may not use this file except in compliance with the License.
  4. You may obtain a copy of the License at
  5. http://www.apache.org/licenses/LICENSE-2.0
  6. Unless required by applicable law or agreed to in writing, software
  7. distributed under the License is distributed on an "AS IS" BASIS,
  8. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  9. See the License for the specific language governing permissions and
  10. limitations under the License. See accompanying LICENSE file.-->
  11. <project xmlns="http://maven.apache.org/POM/4.0.0"
  12. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  13. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  14. <modelVersion>4.0.0</modelVersion>
  15. <parent>
  16. <groupId>org.apache.hadoop</groupId>
  17. <artifactId>hadoop-project</artifactId>
  18. <version>3.5.0-SNAPSHOT</version>
  19. <relativePath>../../hadoop-project</relativePath>
  20. </parent>
  21. <artifactId>hadoop-huaweicloud</artifactId>
  22. <version>3.5.0-SNAPSHOT</version>
  23. <name>Apache Hadoop OBS support</name>
  24. <description>
  25. This module contains code to support integration with OBS.
  26. It also declares the dependencies needed to work with OBS services.
  27. </description>
  28. <packaging>jar</packaging>
  29. <properties>
  30. <file.encoding>UTF-8</file.encoding>
  31. <downloadSources>true</downloadSources>
  32. <esdk.version>3.20.4.2</esdk.version>
  33. </properties>
  34. <profiles>
  35. <profile>
  36. <id>tests-off</id>
  37. <activation>
  38. <file>
  39. <missing>src/test/resources/auth-keys.xml</missing>
  40. </file>
  41. </activation>
  42. <properties>
  43. <maven.test.skip>true</maven.test.skip>
  44. </properties>
  45. </profile>
  46. <profile>
  47. <id>tests-on</id>
  48. <activation>
  49. <file>
  50. <exists>src/test/resources/auth-keys.xml</exists>
  51. </file>
  52. </activation>
  53. <properties>
  54. <maven.test.skip>false</maven.test.skip>
  55. </properties>
  56. </profile>
  57. </profiles>
  58. <build>
  59. <plugins>
  60. <plugin>
  61. <groupId>com.github.spotbugs</groupId>
  62. <artifactId>spotbugs-maven-plugin</artifactId>
  63. <configuration>
  64. <xmlOutput>true</xmlOutput>
  65. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
  66. </excludeFilterFile>
  67. <effort>Max</effort>
  68. </configuration>
  69. </plugin>
  70. <plugin>
  71. <groupId>org.apache.maven.plugins</groupId>
  72. <artifactId>maven-surefire-plugin</artifactId>
  73. <configuration>
  74. <forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
  75. </configuration>
  76. </plugin>
  77. <plugin>
  78. <groupId>org.apache.maven.plugins</groupId>
  79. <artifactId>maven-dependency-plugin</artifactId>
  80. <executions>
  81. <execution>
  82. <id>deplist</id>
  83. <phase>compile</phase>
  84. <goals>
  85. <goal>list</goal>
  86. </goals>
  87. <configuration>
  88. <outputFile>${project.basedir}/target/hadoop-cloud-storage-deps/${project.artifactId}.cloud-storage-optional.txt</outputFile>
  89. </configuration>
  90. </execution>
  91. </executions>
  92. </plugin>
  93. </plugins>
  94. </build>
  95. <dependencies>
  96. <dependency>
  97. <groupId>org.apache.hadoop</groupId>
  98. <artifactId>hadoop-common</artifactId>
  99. <scope>provided</scope>
  100. <exclusions>
  101. <exclusion>
  102. <groupId>jdk.tools</groupId>
  103. <artifactId>jdk.tools</artifactId>
  104. </exclusion>
  105. <exclusion>
  106. <groupId>org.javassist</groupId>
  107. <artifactId>javassist</artifactId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <dependency>
  112. <groupId>org.apache.hadoop</groupId>
  113. <artifactId>hadoop-common</artifactId>
  114. <scope>test</scope>
  115. <type>test-jar</type>
  116. </dependency>
  117. <dependency>
  118. <groupId>junit</groupId>
  119. <artifactId>junit</artifactId>
  120. <version>${junit.version}</version>
  121. <scope>test</scope>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.mockito</groupId>
  125. <artifactId>mockito-all</artifactId>
  126. <version>1.10.19</version>
  127. <scope>test</scope>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.hadoop</groupId>
  131. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.hadoop</groupId>
  136. <artifactId>hadoop-yarn-server-tests</artifactId>
  137. <scope>test</scope>
  138. <type>test-jar</type>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.hadoop</groupId>
  142. <artifactId>hadoop-mapreduce-examples</artifactId>
  143. <scope>test</scope>
  144. <type>jar</type>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <artifactId>hadoop-distcp</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-distcp</artifactId>
  154. <scope>test</scope>
  155. <type>test-jar</type>
  156. </dependency>
  157. <dependency>
  158. <groupId>com.huaweicloud</groupId>
  159. <artifactId>esdk-obs-java</artifactId>
  160. <version>${esdk.version}</version>
  161. <exclusions>
  162. <exclusion>
  163. <artifactId>log4j-core</artifactId>
  164. <groupId>org.apache.logging.log4j</groupId>
  165. </exclusion>
  166. <exclusion>
  167. <artifactId>log4j-api</artifactId>
  168. <groupId>org.apache.logging.log4j</groupId>
  169. </exclusion>
  170. </exclusions>
  171. </dependency>
  172. <dependency>
  173. <groupId>org.powermock</groupId>
  174. <artifactId>powermock-api-mockito</artifactId>
  175. <version>1.7.4</version>
  176. <scope>test</scope>
  177. </dependency>
  178. <dependency>
  179. <groupId>org.powermock</groupId>
  180. <artifactId>powermock-module-junit4</artifactId>
  181. <version>1.7.4</version>
  182. <scope>test</scope>
  183. </dependency>
  184. </dependencies>
  185. </project>