pom.xml 6.8 KB

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