You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

169 lines
6.7 KiB

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