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.

307 lines
10 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
4 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-hadoop2-client</artifactId>
  12. <version>${seaweedfs.client.version}</version>
  13. <build>
  14. <plugins>
  15. <plugin>
  16. <artifactId>maven-compiler-plugin</artifactId>
  17. <configuration>
  18. <source>8</source>
  19. <target>8</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. <relocation>
  65. <pattern>org.apache.http</pattern>
  66. <shadedPattern>shaded.org.apache.http</shadedPattern>
  67. </relocation>
  68. </relocations>
  69. </configuration>
  70. </execution>
  71. </executions>
  72. </plugin>
  73. <plugin>
  74. <artifactId>maven-gpg-plugin</artifactId>
  75. <version>1.5</version>
  76. <executions>
  77. <execution>
  78. <id>sign-artifacts</id>
  79. <phase>verify</phase>
  80. <goals>
  81. <goal>sign</goal>
  82. </goals>
  83. </execution>
  84. </executions>
  85. </plugin>
  86. <plugin>
  87. <groupId>org.sonatype.plugins</groupId>
  88. <artifactId>nexus-staging-maven-plugin</artifactId>
  89. <version>1.6.7</version>
  90. <extensions>true</extensions>
  91. <configuration>
  92. <serverId>ossrh</serverId>
  93. <nexusUrl>https://oss.sonatype.org/</nexusUrl>
  94. <autoReleaseAfterClose>true</autoReleaseAfterClose>
  95. </configuration>
  96. </plugin>
  97. <plugin>
  98. <artifactId>maven-source-plugin</artifactId>
  99. <version>2.2.1</version>
  100. <executions>
  101. <execution>
  102. <id>attach-sources</id>
  103. <goals>
  104. <goal>jar-no-fork</goal>
  105. </goals>
  106. </execution>
  107. </executions>
  108. </plugin>
  109. <plugin>
  110. <artifactId>maven-javadoc-plugin</artifactId>
  111. <version>2.9.1</version>
  112. <executions>
  113. <execution>
  114. <id>attach-javadocs</id>
  115. <goals>
  116. <goal>jar</goal>
  117. </goals>
  118. </execution>
  119. </executions>
  120. </plugin>
  121. </plugins>
  122. </build>
  123. <dependencies>
  124. <dependency>
  125. <groupId>org.apache.hadoop</groupId>
  126. <artifactId>hadoop-client</artifactId>
  127. <version>2.9.2</version>
  128. <scope>provided</scope>
  129. <exclusions>
  130. <exclusion>
  131. <artifactId>hadoop-hdfs-client</artifactId>
  132. <groupId>org.apache.hadoop</groupId>
  133. </exclusion>
  134. <exclusion>
  135. <artifactId>hadoop-mapreduce-client-app</artifactId>
  136. <groupId>org.apache.hadoop</groupId>
  137. </exclusion>
  138. <exclusion>
  139. <artifactId>hadoop-yarn-api</artifactId>
  140. <groupId>org.apache.hadoop</groupId>
  141. </exclusion>
  142. <exclusion>
  143. <artifactId>hadoop-mapreduce-client-core</artifactId>
  144. <groupId>org.apache.hadoop</groupId>
  145. </exclusion>
  146. <exclusion>
  147. <artifactId>hadoop-mapreduce-client-jobclient</artifactId>
  148. <groupId>org.apache.hadoop</groupId>
  149. </exclusion>
  150. <exclusion>
  151. <artifactId>hadoop-annotations</artifactId>
  152. <groupId>org.apache.hadoop</groupId>
  153. </exclusion>
  154. </exclusions>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.apache.hadoop</groupId>
  158. <artifactId>hadoop-common</artifactId>
  159. <version>2.9.2</version>
  160. <scope>provided</scope>
  161. <exclusions>
  162. <exclusion>
  163. <artifactId>commons-cli</artifactId>
  164. <groupId>commons-cli</groupId>
  165. </exclusion>
  166. <exclusion>
  167. <artifactId>commons-math3</artifactId>
  168. <groupId>org.apache.commons</groupId>
  169. </exclusion>
  170. <exclusion>
  171. <artifactId>xmlenc</artifactId>
  172. <groupId>xmlenc</groupId>
  173. </exclusion>
  174. <exclusion>
  175. <artifactId>commons-io</artifactId>
  176. <groupId>commons-io</groupId>
  177. </exclusion>
  178. <exclusion>
  179. <artifactId>commons-net</artifactId>
  180. <groupId>commons-net</groupId>
  181. </exclusion>
  182. <exclusion>
  183. <artifactId>commons-collections</artifactId>
  184. <groupId>commons-collections</groupId>
  185. </exclusion>
  186. <exclusion>
  187. <artifactId>servlet-api</artifactId>
  188. <groupId>javax.servlet</groupId>
  189. </exclusion>
  190. <exclusion>
  191. <artifactId>jetty</artifactId>
  192. <groupId>org.mortbay.jetty</groupId>
  193. </exclusion>
  194. <exclusion>
  195. <artifactId>jetty-util</artifactId>
  196. <groupId>org.mortbay.jetty</groupId>
  197. </exclusion>
  198. <exclusion>
  199. <artifactId>jetty-sslengine</artifactId>
  200. <groupId>org.mortbay.jetty</groupId>
  201. </exclusion>
  202. <exclusion>
  203. <artifactId>jsp-api</artifactId>
  204. <groupId>javax.servlet.jsp</groupId>
  205. </exclusion>
  206. <exclusion>
  207. <artifactId>jersey-core</artifactId>
  208. <groupId>com.sun.jersey</groupId>
  209. </exclusion>
  210. <exclusion>
  211. <artifactId>jersey-json</artifactId>
  212. <groupId>com.sun.jersey</groupId>
  213. </exclusion>
  214. <exclusion>
  215. <artifactId>jersey-server</artifactId>
  216. <groupId>com.sun.jersey</groupId>
  217. </exclusion>
  218. <exclusion>
  219. <artifactId>log4j</artifactId>
  220. <groupId>log4j</groupId>
  221. </exclusion>
  222. <exclusion>
  223. <artifactId>jets3t</artifactId>
  224. <groupId>net.java.dev.jets3t</groupId>
  225. </exclusion>
  226. <exclusion>
  227. <artifactId>commons-lang</artifactId>
  228. <groupId>commons-lang</groupId>
  229. </exclusion>
  230. <exclusion>
  231. <artifactId>commons-configuration</artifactId>
  232. <groupId>commons-configuration</groupId>
  233. </exclusion>
  234. <exclusion>
  235. <artifactId>commons-lang3</artifactId>
  236. <groupId>org.apache.commons</groupId>
  237. </exclusion>
  238. <exclusion>
  239. <artifactId>slf4j-log4j12</artifactId>
  240. <groupId>org.slf4j</groupId>
  241. </exclusion>
  242. <exclusion>
  243. <artifactId>jackson-core-asl</artifactId>
  244. <groupId>org.codehaus.jackson</groupId>
  245. </exclusion>
  246. <exclusion>
  247. <artifactId>jackson-mapper-asl</artifactId>
  248. <groupId>org.codehaus.jackson</groupId>
  249. </exclusion>
  250. <exclusion>
  251. <artifactId>avro</artifactId>
  252. <groupId>org.apache.avro</groupId>
  253. </exclusion>
  254. <exclusion>
  255. <artifactId>hadoop-auth</artifactId>
  256. <groupId>org.apache.hadoop</groupId>
  257. </exclusion>
  258. <exclusion>
  259. <artifactId>jsch</artifactId>
  260. <groupId>com.jcraft</groupId>
  261. </exclusion>
  262. <exclusion>
  263. <artifactId>curator-client</artifactId>
  264. <groupId>org.apache.curator</groupId>
  265. </exclusion>
  266. <exclusion>
  267. <artifactId>curator-recipes</artifactId>
  268. <groupId>org.apache.curator</groupId>
  269. </exclusion>
  270. <exclusion>
  271. <artifactId>htrace-core4</artifactId>
  272. <groupId>org.apache.htrace</groupId>
  273. </exclusion>
  274. <exclusion>
  275. <artifactId>zookeeper</artifactId>
  276. <groupId>org.apache.zookeeper</groupId>
  277. </exclusion>
  278. <exclusion>
  279. <artifactId>commons-compress</artifactId>
  280. <groupId>org.apache.commons</groupId>
  281. </exclusion>
  282. <exclusion>
  283. <artifactId>stax2-api</artifactId>
  284. <groupId>org.codehaus.woodstox</groupId>
  285. </exclusion>
  286. <exclusion>
  287. <artifactId>woodstox-core</artifactId>
  288. <groupId>com.fasterxml.woodstox</groupId>
  289. </exclusion>
  290. <exclusion>
  291. <artifactId>hadoop-annotations</artifactId>
  292. <groupId>org.apache.hadoop</groupId>
  293. </exclusion>
  294. </exclusions>
  295. </dependency>
  296. </dependencies>
  297. <distributionManagement>
  298. <snapshotRepository>
  299. <id>ossrh</id>
  300. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  301. </snapshotRepository>
  302. </distributionManagement>
  303. <properties>
  304. <seaweedfs.client.version>1.4.8</seaweedfs.client.version>
  305. <hadoop.version>2.9.2</hadoop.version>
  306. </properties>
  307. </project>