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.

315 lines
11 KiB

5 years ago
5 years ago
5 years ago
5 years ago
4 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>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>3.1.1</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-yarn-api</artifactId>
  136. <groupId>org.apache.hadoop</groupId>
  137. </exclusion>
  138. <exclusion>
  139. <artifactId>hadoop-yarn-client</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>3.1.1</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>commons-io</artifactId>
  172. <groupId>commons-io</groupId>
  173. </exclusion>
  174. <exclusion>
  175. <artifactId>commons-net</artifactId>
  176. <groupId>commons-net</groupId>
  177. </exclusion>
  178. <exclusion>
  179. <artifactId>commons-collections</artifactId>
  180. <groupId>commons-collections</groupId>
  181. </exclusion>
  182. <exclusion>
  183. <artifactId>javax.servlet-api</artifactId>
  184. <groupId>javax.servlet</groupId>
  185. </exclusion>
  186. <exclusion>
  187. <artifactId>jetty-server</artifactId>
  188. <groupId>org.eclipse.jetty</groupId>
  189. </exclusion>
  190. <exclusion>
  191. <artifactId>jetty-util</artifactId>
  192. <groupId>org.eclipse.jetty</groupId>
  193. </exclusion>
  194. <exclusion>
  195. <artifactId>jetty-servlet</artifactId>
  196. <groupId>org.eclipse.jetty</groupId>
  197. </exclusion>
  198. <exclusion>
  199. <artifactId>jetty-webapp</artifactId>
  200. <groupId>org.eclipse.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-servlet</artifactId>
  212. <groupId>com.sun.jersey</groupId>
  213. </exclusion>
  214. <exclusion>
  215. <artifactId>jersey-json</artifactId>
  216. <groupId>com.sun.jersey</groupId>
  217. </exclusion>
  218. <exclusion>
  219. <artifactId>jersey-server</artifactId>
  220. <groupId>com.sun.jersey</groupId>
  221. </exclusion>
  222. <exclusion>
  223. <artifactId>log4j</artifactId>
  224. <groupId>log4j</groupId>
  225. </exclusion>
  226. <exclusion>
  227. <artifactId>commons-lang</artifactId>
  228. <groupId>commons-lang</groupId>
  229. </exclusion>
  230. <exclusion>
  231. <artifactId>commons-beanutils</artifactId>
  232. <groupId>commons-beanutils</groupId>
  233. </exclusion>
  234. <exclusion>
  235. <artifactId>commons-configuration2</artifactId>
  236. <groupId>org.apache.commons</groupId>
  237. </exclusion>
  238. <exclusion>
  239. <artifactId>commons-lang3</artifactId>
  240. <groupId>org.apache.commons</groupId>
  241. </exclusion>
  242. <exclusion>
  243. <artifactId>slf4j-log4j12</artifactId>
  244. <groupId>org.slf4j</groupId>
  245. </exclusion>
  246. <exclusion>
  247. <artifactId>avro</artifactId>
  248. <groupId>org.apache.avro</groupId>
  249. </exclusion>
  250. <exclusion>
  251. <artifactId>re2j</artifactId>
  252. <groupId>com.google.re2j</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>kerb-simplekdc</artifactId>
  284. <groupId>org.apache.kerby</groupId>
  285. </exclusion>
  286. <exclusion>
  287. <artifactId>jackson-databind</artifactId>
  288. <groupId>com.fasterxml.jackson.core</groupId>
  289. </exclusion>
  290. <exclusion>
  291. <artifactId>stax2-api</artifactId>
  292. <groupId>org.codehaus.woodstox</groupId>
  293. </exclusion>
  294. <exclusion>
  295. <artifactId>woodstox-core</artifactId>
  296. <groupId>com.fasterxml.woodstox</groupId>
  297. </exclusion>
  298. <exclusion>
  299. <artifactId>hadoop-annotations</artifactId>
  300. <groupId>org.apache.hadoop</groupId>
  301. </exclusion>
  302. </exclusions>
  303. </dependency>
  304. </dependencies>
  305. <distributionManagement>
  306. <snapshotRepository>
  307. <id>ossrh</id>
  308. <url>https://oss.sonatype.org/content/repositories/snapshots</url>
  309. </snapshotRepository>
  310. </distributionManagement>
  311. <properties>
  312. <seaweedfs.client.version>1.6.5</seaweedfs.client.version>
  313. <hadoop.version>3.1.1</hadoop.version>
  314. </properties>
  315. </project>