pom.xml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  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.59</seaweedfs.client.version>
  8. <hadoop.version>3.2.4</hadoop.version>
  9. </properties>
  10. <groupId>com.github.chrislusf</groupId>
  11. <artifactId>seaweedfs-hadoop3-client</artifactId>
  12. <version>${seaweedfs.client.version}</version>
  13. <parent>
  14. <groupId>org.sonatype.oss</groupId>
  15. <artifactId>oss-parent</artifactId>
  16. <version>9</version>
  17. </parent>
  18. <distributionManagement>
  19. <snapshotRepository>
  20. <id>ossrh</id>
  21. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  22. </snapshotRepository>
  23. </distributionManagement>
  24. <build>
  25. <plugins>
  26. <plugin>
  27. <groupId>org.apache.maven.plugins</groupId>
  28. <artifactId>maven-compiler-plugin</artifactId>
  29. <configuration>
  30. <source>8</source>
  31. <target>8</target>
  32. <release>8</release>
  33. </configuration>
  34. </plugin>
  35. <plugin>
  36. <groupId>org.apache.maven.plugins</groupId>
  37. <artifactId>maven-shade-plugin</artifactId>
  38. <version>3.2.1</version>
  39. <executions>
  40. <execution>
  41. <phase>package</phase>
  42. <goals>
  43. <goal>shade</goal>
  44. </goals>
  45. <configuration>
  46. <filters>
  47. <filter>
  48. <artifact>*:*</artifact>
  49. <excludes>
  50. <exclude>META-INF/*.SF</exclude>
  51. <exclude>META-INF/*.DSA</exclude>
  52. <exclude>META-INF/*.RSA</exclude>
  53. <exclude>org/slf4j/**</exclude>
  54. <exclude>META-INF/maven/org.slf4j/**</exclude>
  55. </excludes>
  56. </filter>
  57. </filters>
  58. <transformers>
  59. <transformer
  60. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  61. </transformers>
  62. <relocations>
  63. <relocation>
  64. <pattern>com.google</pattern>
  65. <shadedPattern>shaded.com.google</shadedPattern>
  66. </relocation>
  67. <relocation>
  68. <pattern>io.grpc.internal</pattern>
  69. <shadedPattern>shaded.io.grpc.internal</shadedPattern>
  70. </relocation>
  71. <relocation>
  72. <pattern>org.apache.commons</pattern>
  73. <shadedPattern>shaded.org.apache.commons</shadedPattern>
  74. <excludes>
  75. <exclude>org.apache.hadoop</exclude>
  76. <exclude>org.apache.log4j</exclude>
  77. </excludes>
  78. </relocation>
  79. <relocation>
  80. <pattern>org.apache.http</pattern>
  81. <shadedPattern>shaded.org.apache.http</shadedPattern>
  82. </relocation>
  83. </relocations>
  84. </configuration>
  85. </execution>
  86. </executions>
  87. </plugin>
  88. <plugin>
  89. <groupId>org.apache.maven.plugins</groupId>
  90. <artifactId>maven-gpg-plugin</artifactId>
  91. <version>1.5</version>
  92. <executions>
  93. <execution>
  94. <id>sign-artifacts</id>
  95. <phase>verify</phase>
  96. <goals>
  97. <goal>sign</goal>
  98. </goals>
  99. </execution>
  100. </executions>
  101. </plugin>
  102. <plugin>
  103. <groupId>org.sonatype.plugins</groupId>
  104. <artifactId>nexus-staging-maven-plugin</artifactId>
  105. <version>1.6.8</version>
  106. <extensions>true</extensions>
  107. <configuration>
  108. <serverId>ossrh</serverId>
  109. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  110. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-source-plugin</artifactId>
  116. <version>2.2.1</version>
  117. <executions>
  118. <execution>
  119. <id>attach-sources</id>
  120. <goals>
  121. <goal>jar-no-fork</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-javadoc-plugin</artifactId>
  129. <version>3.0.1</version>
  130. <executions>
  131. <execution>
  132. <id>attach-javadocs</id>
  133. <goals>
  134. <goal>jar</goal>
  135. </goals>
  136. </execution>
  137. </executions>
  138. </plugin>
  139. </plugins>
  140. </build>
  141. <dependencies>
  142. <dependency>
  143. <groupId>org.apache.hadoop</groupId>
  144. <artifactId>hadoop-client</artifactId>
  145. <version>${hadoop.version}</version>
  146. <scope>provided</scope>
  147. </dependency>
  148. <dependency>
  149. <groupId>com.github.chrislusf</groupId>
  150. <artifactId>seaweedfs-client</artifactId>
  151. <version>${seaweedfs.client.version}</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.apache.hadoop</groupId>
  155. <artifactId>hadoop-common</artifactId>
  156. <version>${hadoop.version}</version>
  157. <scope>provided</scope>
  158. </dependency>
  159. </dependencies>
  160. </project>