pom.xml 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  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" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  14. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/maven-v4_0_0.xsd">
  15. <modelVersion>4.0.0</modelVersion>
  16. <parent>
  17. <groupId>org.apache.hadoop</groupId>
  18. <artifactId>hadoop-project</artifactId>
  19. <version>3.5.0-SNAPSHOT</version>
  20. <relativePath>../../hadoop-project</relativePath>
  21. </parent>
  22. <artifactId>hadoop-aliyun</artifactId>
  23. <name>Apache Hadoop Aliyun OSS support</name>
  24. <packaging>jar</packaging>
  25. <properties>
  26. <file.encoding>UTF-8</file.encoding>
  27. <downloadSources>true</downloadSources>
  28. </properties>
  29. <profiles>
  30. <profile>
  31. <id>tests-off</id>
  32. <activation>
  33. <file>
  34. <missing>src/test/resources/auth-keys.xml</missing>
  35. </file>
  36. </activation>
  37. <properties>
  38. <maven.test.skip>true</maven.test.skip>
  39. </properties>
  40. </profile>
  41. <profile>
  42. <id>tests-on</id>
  43. <activation>
  44. <file>
  45. <exists>src/test/resources/auth-keys.xml</exists>
  46. </file>
  47. </activation>
  48. <properties>
  49. <maven.test.skip>false</maven.test.skip>
  50. </properties>
  51. </profile>
  52. </profiles>
  53. <build>
  54. <plugins>
  55. <plugin>
  56. <groupId>com.github.spotbugs</groupId>
  57. <artifactId>spotbugs-maven-plugin</artifactId>
  58. <configuration>
  59. <xmlOutput>true</xmlOutput>
  60. <excludeFilterFile>${basedir}/dev-support/findbugs-exclude.xml
  61. </excludeFilterFile>
  62. <effort>Max</effort>
  63. </configuration>
  64. </plugin>
  65. <plugin>
  66. <groupId>org.apache.maven.plugins</groupId>
  67. <artifactId>maven-surefire-plugin</artifactId>
  68. <configuration>
  69. <forkedProcessTimeoutInSeconds>3600</forkedProcessTimeoutInSeconds>
  70. </configuration>
  71. </plugin>
  72. <plugin>
  73. <groupId>org.apache.maven.plugins</groupId>
  74. <artifactId>maven-dependency-plugin</artifactId>
  75. <executions>
  76. <execution>
  77. <id>deplist</id>
  78. <phase>compile</phase>
  79. <goals>
  80. <goal>list</goal>
  81. </goals>
  82. <configuration>
  83. <!-- build a shellprofile -->
  84. <outputFile>${project.basedir}/target/hadoop-tools-deps/${project.artifactId}.tools-optional.txt</outputFile>
  85. </configuration>
  86. </execution>
  87. </executions>
  88. </plugin>
  89. </plugins>
  90. </build>
  91. <dependencies>
  92. <dependency>
  93. <groupId>junit</groupId>
  94. <artifactId>junit</artifactId>
  95. <scope>test</scope>
  96. </dependency>
  97. <dependency>
  98. <groupId>com.aliyun.oss</groupId>
  99. <artifactId>aliyun-sdk-oss</artifactId>
  100. <scope>compile</scope>
  101. </dependency>
  102. <dependency>
  103. <groupId>org.assertj</groupId>
  104. <artifactId>assertj-core</artifactId>
  105. <scope>test</scope>
  106. </dependency>
  107. <dependency>
  108. <groupId>org.apache.hadoop</groupId>
  109. <artifactId>hadoop-common</artifactId>
  110. <scope>provided</scope>
  111. <exclusions>
  112. <exclusion>
  113. <groupId>org.projectlombok</groupId>
  114. <artifactId>lombok</artifactId>
  115. </exclusion>
  116. </exclusions>
  117. </dependency>
  118. <!-- use the hadoop import with its exclusions -->
  119. <dependency>
  120. <groupId>org.codehaus.jettison</groupId>
  121. <artifactId>jettison</artifactId>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.apache.hadoop</groupId>
  125. <artifactId>hadoop-common</artifactId>
  126. <scope>test</scope>
  127. <type>test-jar</type>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.apache.hadoop</groupId>
  131. <artifactId>hadoop-distcp</artifactId>
  132. <scope>test</scope>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.hadoop</groupId>
  136. <artifactId>hadoop-distcp</artifactId>
  137. <scope>test</scope>
  138. <type>test-jar</type>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.apache.hadoop</groupId>
  142. <artifactId>hadoop-yarn-server-tests</artifactId>
  143. <scope>test</scope>
  144. <type>test-jar</type>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.hadoop</groupId>
  148. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  149. <scope>test</scope>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.apache.hadoop</groupId>
  153. <artifactId>hadoop-mapreduce-examples</artifactId>
  154. <scope>test</scope>
  155. <type>jar</type>
  156. </dependency>
  157. </dependencies>
  158. </project>