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.

149 lines
5.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. <groupId>com.github.chrislusf</groupId>
  7. <artifactId>seaweedfs-hadoop-client</artifactId>
  8. <version>1.0</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. <transformers>
  42. <transformer
  43. implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
  44. </transformers>
  45. <relocations>
  46. <relocation>
  47. <pattern>com.google</pattern>
  48. <shadedPattern>shaded.com.google</shadedPattern>
  49. </relocation>
  50. <relocation>
  51. <pattern>io.grpc.internal</pattern>
  52. <shadedPattern>shaded.io.grpc.internal</shadedPattern>
  53. </relocation>
  54. </relocations>
  55. </configuration>
  56. </execution>
  57. </executions>
  58. </plugin>
  59. <plugin>
  60. <groupId>org.apache.maven.plugins</groupId>
  61. <artifactId>maven-gpg-plugin</artifactId>
  62. <version>1.5</version>
  63. <executions>
  64. <execution>
  65. <id>sign-artifacts</id>
  66. <phase>verify</phase>
  67. <goals>
  68. <goal>sign</goal>
  69. </goals>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <groupId>org.sonatype.plugins</groupId>
  75. <artifactId>nexus-staging-maven-plugin</artifactId>
  76. <version>1.6.7</version>
  77. <extensions>true</extensions>
  78. <configuration>
  79. <serverId>ossrh</serverId>
  80. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  81. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  82. </configuration>
  83. </plugin>
  84. <plugin>
  85. <groupId>org.apache.maven.plugins</groupId>
  86. <artifactId>maven-source-plugin</artifactId>
  87. <version>2.2.1</version>
  88. <executions>
  89. <execution>
  90. <id>attach-sources</id>
  91. <goals>
  92. <goal>jar-no-fork</goal>
  93. </goals>
  94. </execution>
  95. </executions>
  96. </plugin>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-javadoc-plugin</artifactId>
  100. <version>2.9.1</version>
  101. <executions>
  102. <execution>
  103. <id>attach-javadocs</id>
  104. <goals>
  105. <goal>jar</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. </plugins>
  111. </build>
  112. <properties>
  113. <hadoop.version>3.1.1</hadoop.version>
  114. </properties>
  115. <dependencies>
  116. <dependency>
  117. <groupId>org.apache.hadoop</groupId>
  118. <artifactId>hadoop-client</artifactId>
  119. <version>${hadoop.version}</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.github.chrislusf</groupId>
  123. <artifactId>seaweedfs-client</artifactId>
  124. <version>1.0</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.apache.hadoop</groupId>
  128. <artifactId>hadoop-common</artifactId>
  129. <version>${hadoop.version}</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.apache.httpcomponents</groupId>
  133. <artifactId>httpmime</artifactId>
  134. <version>4.5.6</version>
  135. </dependency>
  136. <dependency>
  137. <groupId>junit</groupId>
  138. <artifactId>junit</artifactId>
  139. <version>4.12</version>
  140. <scope>test</scope>
  141. </dependency>
  142. </dependencies>
  143. </project>