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.

159 lines
6.5 KiB

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. <properties>
  7. <seaweedfs.client.version>1.0.8</seaweedfs.client.version>
  8. <hadoop.version>3.1.1</hadoop.version>
  9. </properties>
  10. <groupId>com.github.chrislusf</groupId>
  11. <artifactId>seaweedfs-hadoop-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>7</source>
  31. <target>7</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. </relocations>
  79. </configuration>
  80. </execution>
  81. </executions>
  82. </plugin>
  83. <plugin>
  84. <groupId>org.apache.maven.plugins</groupId>
  85. <artifactId>maven-gpg-plugin</artifactId>
  86. <version>1.5</version>
  87. <executions>
  88. <execution>
  89. <id>sign-artifacts</id>
  90. <phase>verify</phase>
  91. <goals>
  92. <goal>sign</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.sonatype.plugins</groupId>
  99. <artifactId>nexus-staging-maven-plugin</artifactId>
  100. <version>1.6.7</version>
  101. <extensions>true</extensions>
  102. <configuration>
  103. <serverId>ossrh</serverId>
  104. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  105. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  106. </configuration>
  107. </plugin>
  108. <plugin>
  109. <groupId>org.apache.maven.plugins</groupId>
  110. <artifactId>maven-source-plugin</artifactId>
  111. <version>2.2.1</version>
  112. <executions>
  113. <execution>
  114. <id>attach-sources</id>
  115. <goals>
  116. <goal>jar-no-fork</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. <plugin>
  122. <groupId>org.apache.maven.plugins</groupId>
  123. <artifactId>maven-javadoc-plugin</artifactId>
  124. <version>2.9.1</version>
  125. <executions>
  126. <execution>
  127. <id>attach-javadocs</id>
  128. <goals>
  129. <goal>jar</goal>
  130. </goals>
  131. </execution>
  132. </executions>
  133. </plugin>
  134. </plugins>
  135. </build>
  136. <dependencies>
  137. <dependency>
  138. <groupId>org.apache.hadoop</groupId>
  139. <artifactId>hadoop-client</artifactId>
  140. <version>${hadoop.version}</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>com.github.chrislusf</groupId>
  144. <artifactId>seaweedfs-client</artifactId>
  145. <version>${seaweedfs.client.version}</version>
  146. </dependency>
  147. <dependency>
  148. <groupId>org.apache.hadoop</groupId>
  149. <artifactId>hadoop-common</artifactId>
  150. <version>${hadoop.version}</version>
  151. </dependency>
  152. </dependencies>
  153. </project>