pom.xml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180
  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.4.0-SNAPSHOT</version>
  19. <relativePath>../../hadoop-project</relativePath>
  20. </parent>
  21. <artifactId>hadoop-huaweicloud</artifactId>
  22. <version>3.4.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>org.codehaus.mojo</groupId>
  62. <artifactId>findbugs-maven-plugin</artifactId>
  63. <configuration>
  64. <findbugsXmlOutput>true</findbugsXmlOutput>
  65. <xmlOutput>true</xmlOutput>
  66. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
  67. </excludeFilterFile>
  68. <effort>Max</effort>
  69. </configuration>
  70. </plugin>
  71. <plugin>
  72. <groupId>org.apache.maven.plugins</groupId>
  73. <artifactId>maven-surefire-plugin</artifactId>
  74. <configuration>
  75. <forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
  76. </configuration>
  77. </plugin>
  78. <plugin>
  79. <groupId>org.apache.maven.plugins</groupId>
  80. <artifactId>maven-dependency-plugin</artifactId>
  81. <executions>
  82. <execution>
  83. <id>deplist</id>
  84. <phase>compile</phase>
  85. <goals>
  86. <goal>list</goal>
  87. </goals>
  88. <configuration>
  89. <outputFile>${project.basedir}/target/hadoop-cloud-storage-deps/${project.artifactId}.cloud-storage-optional.txt</outputFile>
  90. </configuration>
  91. </execution>
  92. </executions>
  93. </plugin>
  94. </plugins>
  95. </build>
  96. <dependencies>
  97. <dependency>
  98. <groupId>org.apache.hadoop</groupId>
  99. <artifactId>hadoop-common</artifactId>
  100. <scope>provided</scope>
  101. <exclusions>
  102. <exclusion>
  103. <groupId>jdk.tools</groupId>
  104. <artifactId>jdk.tools</artifactId>
  105. </exclusion>
  106. </exclusions>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.apache.hadoop</groupId>
  110. <artifactId>hadoop-common</artifactId>
  111. <scope>test</scope>
  112. <type>test-jar</type>
  113. </dependency>
  114. <dependency>
  115. <groupId>junit</groupId>
  116. <artifactId>junit</artifactId>
  117. <version>${junit.version}</version>
  118. <scope>test</scope>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.mockito</groupId>
  122. <artifactId>mockito-all</artifactId>
  123. <version>1.10.19</version>
  124. <scope>test</scope>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.hadoop</groupId>
  128. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  129. <scope>test</scope>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.hadoop</groupId>
  133. <artifactId>hadoop-yarn-server-tests</artifactId>
  134. <scope>test</scope>
  135. <type>test-jar</type>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.apache.hadoop</groupId>
  139. <artifactId>hadoop-mapreduce-examples</artifactId>
  140. <scope>test</scope>
  141. <type>jar</type>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.apache.hadoop</groupId>
  145. <artifactId>hadoop-distcp</artifactId>
  146. <scope>test</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>org.apache.hadoop</groupId>
  150. <artifactId>hadoop-distcp</artifactId>
  151. <scope>test</scope>
  152. <type>test-jar</type>
  153. </dependency>
  154. <dependency>
  155. <groupId>com.huaweicloud</groupId>
  156. <artifactId>esdk-obs-java</artifactId>
  157. <version>${esdk.version}</version>
  158. <exclusions>
  159. <exclusion>
  160. <artifactId>okio</artifactId>
  161. <groupId>com.squareup.okio</groupId>
  162. </exclusion>
  163. </exclusions>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.powermock</groupId>
  167. <artifactId>powermock-api-mockito</artifactId>
  168. <version>1.7.4</version>
  169. <scope>test</scope>
  170. </dependency>
  171. <dependency>
  172. <groupId>org.powermock</groupId>
  173. <artifactId>powermock-module-junit4</artifactId>
  174. <version>1.7.4</version>
  175. <scope>test</scope>
  176. </dependency>
  177. </dependencies>
  178. </project>