pom.xml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <properties>
  7. <seaweedfs.client.version>3.71</seaweedfs.client.version>
  8. <hadoop.version>3.2.4</hadoop.version>
  9. </properties>
  10. <groupId>com.seaweedfs</groupId>
  11. <artifactId>seaweedfs-hadoop2-client</artifactId>
  12. <version>${seaweedfs.client.version}</version>
  13. <name>SeaweedFS HDFS2 Client</name>
  14. <description>A java client for SeaweedFS.</description>
  15. <url>https://github.com/seaweedfs/seaweedfs</url>
  16. <licenses>
  17. <license>
  18. <name>The Apache License, Version 2.0</name>
  19. <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
  20. </license>
  21. </licenses>
  22. <developers>
  23. <developer>
  24. <name>Chris Lu</name>
  25. <email>chris.lu@gmail.com</email>
  26. <organization>SeaweedFS</organization>
  27. <organizationUrl>https://seaweedfs.com</organizationUrl>
  28. </developer>
  29. </developers>
  30. <scm>
  31. <connection>scm:git:git://github.com/seaweedfs/seaweedfs.git</connection>
  32. <developerConnection>scm:git:ssh://github.com:seaweedfs/seaweedfs.git</developerConnection>
  33. <url>https://github.com/seaweedfs/seaweedfs/tree/master</url>
  34. </scm>
  35. <build>
  36. <plugins>
  37. <plugin>
  38. <groupId>org.apache.maven.plugins</groupId>
  39. <artifactId>maven-compiler-plugin</artifactId>
  40. <configuration>
  41. <source>8</source>
  42. <target>8</target>
  43. <release>8</release>
  44. </configuration>
  45. </plugin>
  46. <plugin>
  47. <groupId>org.apache.maven.plugins</groupId>
  48. <artifactId>maven-shade-plugin</artifactId>
  49. <version>3.2.1</version>
  50. <executions>
  51. <execution>
  52. <phase>package</phase>
  53. <goals>
  54. <goal>shade</goal>
  55. </goals>
  56. <configuration>
  57. <filters>
  58. <filter>
  59. <artifact>*:*</artifact>
  60. <excludes>
  61. <exclude>META-INF/*.SF</exclude>
  62. <exclude>META-INF/*.DSA</exclude>
  63. <exclude>META-INF/*.RSA</exclude>
  64. <exclude>org/slf4j/**</exclude>
  65. <exclude>META-INF/maven/org.slf4j/**</exclude>
  66. </excludes>
  67. </filter>
  68. </filters>
  69. <transformers>
  70. <transformer
  71. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  72. </transformers>
  73. <relocations>
  74. <relocation>
  75. <pattern>com.google</pattern>
  76. <shadedPattern>shaded.com.google</shadedPattern>
  77. </relocation>
  78. <relocation>
  79. <pattern>io.grpc.internal</pattern>
  80. <shadedPattern>shaded.io.grpc.internal</shadedPattern>
  81. </relocation>
  82. <relocation>
  83. <pattern>org.apache.commons</pattern>
  84. <shadedPattern>shaded.org.apache.commons</shadedPattern>
  85. <excludes>
  86. <exclude>org.apache.hadoop</exclude>
  87. <exclude>org.apache.log4j</exclude>
  88. </excludes>
  89. </relocation>
  90. <relocation>
  91. <pattern>org.apache.http</pattern>
  92. <shadedPattern>shaded.org.apache.http</shadedPattern>
  93. </relocation>
  94. </relocations>
  95. </configuration>
  96. </execution>
  97. </executions>
  98. </plugin>
  99. <plugin>
  100. <groupId>org.apache.maven.plugins</groupId>
  101. <artifactId>maven-gpg-plugin</artifactId>
  102. <version>1.5</version>
  103. <executions>
  104. <execution>
  105. <id>sign-artifacts</id>
  106. <phase>verify</phase>
  107. <goals>
  108. <goal>sign</goal>
  109. </goals>
  110. </execution>
  111. </executions>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.sonatype.central</groupId>
  115. <artifactId>central-publishing-maven-plugin</artifactId>
  116. <version>0.5.0</version>
  117. <extensions>true</extensions>
  118. <configuration>
  119. <publishingServerId>central</publishingServerId>
  120. <autoPublish>true</autoPublish>
  121. </configuration>
  122. </plugin>
  123. <plugin>
  124. <groupId>org.apache.maven.plugins</groupId>
  125. <artifactId>maven-source-plugin</artifactId>
  126. <version>2.2.1</version>
  127. <executions>
  128. <execution>
  129. <id>attach-sources</id>
  130. <goals>
  131. <goal>jar-no-fork</goal>
  132. </goals>
  133. </execution>
  134. </executions>
  135. </plugin>
  136. <plugin>
  137. <groupId>org.apache.maven.plugins</groupId>
  138. <artifactId>maven-javadoc-plugin</artifactId>
  139. <version>3.0.1</version>
  140. <executions>
  141. <execution>
  142. <id>attach-javadocs</id>
  143. <goals>
  144. <goal>jar</goal>
  145. </goals>
  146. </execution>
  147. </executions>
  148. </plugin>
  149. </plugins>
  150. </build>
  151. <dependencies>
  152. <dependency>
  153. <groupId>org.apache.hadoop</groupId>
  154. <artifactId>hadoop-client</artifactId>
  155. <version>${hadoop.version}</version>
  156. <scope>provided</scope>
  157. </dependency>
  158. <dependency>
  159. <groupId>com.seaweedfs</groupId>
  160. <artifactId>seaweedfs-client</artifactId>
  161. <version>${seaweedfs.client.version}</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>org.apache.hadoop</groupId>
  165. <artifactId>hadoop-common</artifactId>
  166. <version>${hadoop.version}</version>
  167. <scope>provided</scope>
  168. </dependency>
  169. </dependencies>
  170. </project>