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.

129 lines
4.3 KiB

5 years ago
5 years ago
5 years ago
5 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  3. <parent>
  4. <artifactId>oss-parent</artifactId>
  5. <groupId>org.sonatype.oss</groupId>
  6. <version>9</version>
  7. <relativePath>../pom.xml/pom.xml</relativePath>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <groupId>com.github.chrislusf</groupId>
  11. <artifactId>seaweedfs-hadoop3-client</artifactId>
  12. <version>${seaweedfs.client.version}</version>
  13. <build>
  14. <plugins>
  15. <plugin>
  16. <artifactId>maven-compiler-plugin</artifactId>
  17. <configuration>
  18. <source>7</source>
  19. <target>7</target>
  20. </configuration>
  21. </plugin>
  22. <plugin>
  23. <artifactId>maven-shade-plugin</artifactId>
  24. <version>3.2.1</version>
  25. <executions>
  26. <execution>
  27. <phase>package</phase>
  28. <goals>
  29. <goal>shade</goal>
  30. </goals>
  31. <configuration>
  32. <filters>
  33. <filter>
  34. <artifact>*:*</artifact>
  35. <excludes>
  36. <exclude>META-INF/*.SF</exclude>
  37. <exclude>META-INF/*.DSA</exclude>
  38. <exclude>META-INF/*.RSA</exclude>
  39. <exclude>org/slf4j/**</exclude>
  40. <exclude>META-INF/maven/org.slf4j/**</exclude>
  41. </excludes>
  42. </filter>
  43. </filters>
  44. <transformers>
  45. <transformer />
  46. </transformers>
  47. <relocations>
  48. <relocation>
  49. <pattern>com.google</pattern>
  50. <shadedPattern>shaded.com.google</shadedPattern>
  51. </relocation>
  52. <relocation>
  53. <pattern>io.grpc.internal</pattern>
  54. <shadedPattern>shaded.io.grpc.internal</shadedPattern>
  55. </relocation>
  56. <relocation>
  57. <pattern>org.apache.commons</pattern>
  58. <shadedPattern>shaded.org.apache.commons</shadedPattern>
  59. <excludes>
  60. <exclude>org.apache.hadoop</exclude>
  61. <exclude>org.apache.log4j</exclude>
  62. </excludes>
  63. </relocation>
  64. </relocations>
  65. </configuration>
  66. </execution>
  67. </executions>
  68. </plugin>
  69. <plugin>
  70. <artifactId>maven-gpg-plugin</artifactId>
  71. <version>1.5</version>
  72. <executions>
  73. <execution>
  74. <id>sign-artifacts</id>
  75. <phase>verify</phase>
  76. <goals>
  77. <goal>sign</goal>
  78. </goals>
  79. </execution>
  80. </executions>
  81. </plugin>
  82. <plugin>
  83. <groupId>org.sonatype.plugins</groupId>
  84. <artifactId>nexus-staging-maven-plugin</artifactId>
  85. <version>1.6.7</version>
  86. <extensions>true</extensions>
  87. <configuration>
  88. <serverId>ossrh</serverId>
  89. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  90. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  91. </configuration>
  92. </plugin>
  93. <plugin>
  94. <artifactId>maven-source-plugin</artifactId>
  95. <version>2.2.1</version>
  96. <executions>
  97. <execution>
  98. <id>attach-sources</id>
  99. <goals>
  100. <goal>jar-no-fork</goal>
  101. </goals>
  102. </execution>
  103. </executions>
  104. </plugin>
  105. <plugin>
  106. <artifactId>maven-javadoc-plugin</artifactId>
  107. <version>2.9.1</version>
  108. <executions>
  109. <execution>
  110. <id>attach-javadocs</id>
  111. <goals>
  112. <goal>jar</goal>
  113. </goals>
  114. </execution>
  115. </executions>
  116. </plugin>
  117. </plugins>
  118. </build>
  119. <distributionManagement>
  120. <snapshotRepository>
  121. <id>ossrh</id>
  122. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  123. </snapshotRepository>
  124. </distributionManagement>
  125. <properties>
  126. <seaweedfs.client.version>1.1.6</seaweedfs.client.version>
  127. <hadoop.version>3.1.1</hadoop.version>
  128. </properties>
  129. </project>