pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397
  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.winhc</groupId>
  7. <artifactId>Spark_Max</artifactId>
  8. <version>1.0</version>
  9. <properties>
  10. <spark.version>2.3.0</spark.version>
  11. <cupid.sdk.version>3.3.8-public</cupid.sdk.version>
  12. <scala.version>2.11.8</scala.version>
  13. <scala.binary.version>2.11</scala.binary.version>
  14. <sdk.version>0.33.7-public</sdk.version>
  15. <maven.compiler.source>1.8</maven.compiler.source>
  16. <maven.compiler.target>1.8</maven.compiler.target>
  17. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  18. <phoenix.version>5.0.0-HBase-2.0</phoenix.version>
  19. <ali-phoenix.version>5.2.1-HBase-2.x</ali-phoenix.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>com.aliyun.odps</groupId>
  24. <artifactId>odps-sdk-core</artifactId>
  25. <version>${sdk.version}</version>
  26. <exclusions>
  27. <exclusion>
  28. <groupId>org.slf4j</groupId>
  29. <artifactId>slf4j-log4j12</artifactId>
  30. </exclusion>
  31. <exclusion>
  32. <groupId>log4j</groupId>
  33. <artifactId>log4j</artifactId>
  34. </exclusion>
  35. </exclusions>
  36. </dependency>
  37. <dependency>
  38. <groupId>com.aliyun.odps</groupId>
  39. <artifactId>odps-sdk-udf</artifactId>
  40. <version>${sdk.version}</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.aliyun.odps</groupId>
  44. <artifactId>odps-udf-local</artifactId>
  45. <version>${sdk.version}</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.aliyun.odps</groupId>
  49. <artifactId>odps-sdk-mapred</artifactId>
  50. <version>${sdk.version}</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>com.aliyun.odps</groupId>
  54. <artifactId>odps-mapred-local</artifactId>
  55. <version>${sdk.version}</version>
  56. </dependency>
  57. <dependency>
  58. <groupId>junit</groupId>
  59. <artifactId>junit</artifactId>
  60. <version>4.12</version>
  61. </dependency>
  62. <dependency>
  63. <groupId>org.apache.spark</groupId>
  64. <artifactId>spark-core_${scala.binary.version}</artifactId>
  65. <version>${spark.version}</version>
  66. <scope>provided</scope>
  67. <exclusions>
  68. <exclusion>
  69. <groupId>org.scala-lang</groupId>
  70. <artifactId>scala-library</artifactId>
  71. </exclusion>
  72. <exclusion>
  73. <groupId>org.scala-lang</groupId>
  74. <artifactId>scalap</artifactId>
  75. </exclusion>
  76. <exclusion>
  77. <artifactId>hadoop-yarn-api</artifactId>
  78. <groupId>org.apache.hadoop</groupId>
  79. </exclusion>
  80. <exclusion>
  81. <artifactId>hadoop-yarn-server-common</artifactId>
  82. <groupId>org.apache.hadoop</groupId>
  83. </exclusion>
  84. <exclusion>
  85. <artifactId>hadoop-yarn-client</artifactId>
  86. <groupId>org.apache.hadoop</groupId>
  87. </exclusion>
  88. <exclusion>
  89. <artifactId>hadoop-yarn-common</artifactId>
  90. <groupId>org.apache.hadoop</groupId>
  91. </exclusion>
  92. <exclusion>
  93. <artifactId>hadoop-mapreduce-client-common</artifactId>
  94. <groupId>org.apache.hadoop</groupId>
  95. </exclusion>
  96. </exclusions>
  97. </dependency>
  98. <dependency>
  99. <groupId>org.apache.spark</groupId>
  100. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  101. <version>${spark.version}</version>
  102. <scope>provided</scope>
  103. </dependency>
  104. <dependency>
  105. <groupId>cn.hutool</groupId>
  106. <artifactId>hutool-all</artifactId>
  107. <version>4.5.16</version>
  108. </dependency>
  109. <!-- https://mvnrepository.com/artifact/com.aliyun.odps/odps-common-local -->
  110. <dependency>
  111. <groupId>com.aliyun.odps</groupId>
  112. <artifactId>odps-common-local</artifactId>
  113. <version>0.33.7-public</version>
  114. </dependency>
  115. <!-- https://mvnrepository.com/artifact/org.mongodb.spark/mongo-spark-connector -->
  116. <dependency>
  117. <groupId>org.mongodb.spark</groupId>
  118. <artifactId>mongo-spark-connector_2.11</artifactId>
  119. <version>2.3.3</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>com.aliyun.odps</groupId>
  123. <artifactId>cupid-sdk</artifactId>
  124. <version>${cupid.sdk.version}</version>
  125. <exclusions>
  126. <exclusion>
  127. <artifactId>odps-sdk-core</artifactId>
  128. <groupId>com.aliyun.odps</groupId>
  129. </exclusion>
  130. </exclusions>
  131. <scope>provided</scope>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.aliyun.odps</groupId>
  135. <artifactId>odps-spark-datasource_${scala.binary.version}</artifactId>
  136. <version>${cupid.sdk.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>org.apache.hbase.connectors.spark</groupId>
  140. <artifactId>hbase-spark</artifactId>
  141. <version>1.0.0</version>
  142. <exclusions>
  143. <exclusion>
  144. <groupId>org.apache.spark</groupId>
  145. <artifactId>spark-core_2.11</artifactId>
  146. </exclusion>
  147. <exclusion>
  148. <groupId>org.apache.spark</groupId>
  149. <artifactId>spark-launcher_2.11</artifactId>
  150. </exclusion>
  151. <exclusion>
  152. <groupId>org.apache.spark</groupId>
  153. <artifactId>spark-kvstore_2.11</artifactId>
  154. </exclusion>
  155. <exclusion>
  156. <groupId>org.apache.spark</groupId>
  157. <artifactId>spark-network-common_2.11</artifactId>
  158. </exclusion>
  159. <exclusion>
  160. <groupId>org.apache.spark</groupId>
  161. <artifactId>spark-network-shuffle_2.11</artifactId>
  162. </exclusion>
  163. <exclusion>
  164. <groupId>org.apache.spark</groupId>
  165. <artifactId>spark-unsafe_2.11</artifactId>
  166. </exclusion>
  167. <exclusion>
  168. <groupId>org.apache.spark</groupId>
  169. <artifactId>spark-tags_2.11</artifactId>
  170. </exclusion>
  171. <exclusion>
  172. <groupId>org.apache.spark</groupId>
  173. <artifactId>spark-sql_2.11</artifactId>
  174. </exclusion>
  175. <exclusion>
  176. <groupId>org.apache.spark</groupId>
  177. <artifactId>spark-sketch_2.11</artifactId>
  178. </exclusion>
  179. <exclusion>
  180. <groupId>org.apache.spark</groupId>
  181. <artifactId>spark-catalyst_2.11</artifactId>
  182. </exclusion>
  183. <exclusion>
  184. <artifactId>hadoop-yarn-common</artifactId>
  185. <groupId>org.apache.hadoop</groupId>
  186. </exclusion>
  187. </exclusions>
  188. </dependency>
  189. <!-- https://mvnrepository.com/artifact/com.aliyun.hbase/alihbase-client -->
  190. <dependency>
  191. <groupId>com.aliyun.hbase</groupId>
  192. <artifactId>alihbase-client</artifactId>
  193. <version>2.0.6</version>
  194. </dependency>
  195. <dependency>
  196. <groupId>com.alibaba.hbase</groupId>
  197. <artifactId>alihbase-connector</artifactId>
  198. <version>2.0.16.1</version>
  199. <exclusions>
  200. <exclusion>
  201. <groupId>org.apache.hbase</groupId>
  202. <artifactId>hbase-client</artifactId>
  203. </exclusion>
  204. <exclusion>
  205. <groupId>org.apache.calcite.avatica</groupId>
  206. <artifactId>avatica</artifactId>
  207. </exclusion>
  208. </exclusions>
  209. </dependency>
  210. <dependency>
  211. <groupId>org.projectlombok</groupId>
  212. <artifactId>lombok</artifactId>
  213. <version>1.18.4</version>
  214. <scope>provided</scope>
  215. </dependency>
  216. <dependency>
  217. <groupId>com.alibaba</groupId>
  218. <artifactId>dns-cache-manipulator</artifactId>
  219. <version>1.5.1</version>
  220. </dependency>
  221. <!-- https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch-spark-20 -->
  222. <dependency>
  223. <groupId>org.elasticsearch</groupId>
  224. <artifactId>elasticsearch-spark-20_2.11</artifactId>
  225. <version>6.0.0</version>
  226. </dependency>
  227. <!-- <dependency>
  228. <groupId>com.aliyun.phoenix</groupId>
  229. <artifactId>ali-phoenix-shaded-thin-client</artifactId>
  230. <version>${ali-phoenix.version}</version>
  231. </dependency>-->
  232. <!-- https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-spark -->
  233. <dependency>
  234. <groupId>org.apache.phoenix</groupId>
  235. <artifactId>phoenix-spark</artifactId>
  236. <version>${phoenix.version}</version>
  237. <exclusions>
  238. <exclusion>
  239. <groupId>org.apache.spark</groupId>
  240. <artifactId>spark-core_2.11</artifactId>
  241. </exclusion>
  242. <exclusion>
  243. <groupId>org.apache.spark</groupId>
  244. <artifactId>spark-launcher_2.11</artifactId>
  245. </exclusion>
  246. <exclusion>
  247. <groupId>org.apache.spark</groupId>
  248. <artifactId>spark-kvstore_2.11</artifactId>
  249. </exclusion>
  250. <exclusion>
  251. <groupId>org.apache.spark</groupId>
  252. <artifactId>spark-network-common_2.11</artifactId>
  253. </exclusion>
  254. <exclusion>
  255. <groupId>org.apache.spark</groupId>
  256. <artifactId>spark-network-shuffle_2.11</artifactId>
  257. </exclusion>
  258. <exclusion>
  259. <groupId>org.apache.spark</groupId>
  260. <artifactId>spark-unsafe_2.11</artifactId>
  261. </exclusion>
  262. <exclusion>
  263. <groupId>org.apache.spark</groupId>
  264. <artifactId>spark-tags_2.11</artifactId>
  265. </exclusion>
  266. <exclusion>
  267. <groupId>org.apache.spark</groupId>
  268. <artifactId>spark-sql_2.11</artifactId>
  269. </exclusion>
  270. <exclusion>
  271. <groupId>org.apache.spark</groupId>
  272. <artifactId>spark-sketch_2.11</artifactId>
  273. </exclusion>
  274. <exclusion>
  275. <groupId>org.apache.spark</groupId>
  276. <artifactId>spark-catalyst_2.11</artifactId>
  277. </exclusion>
  278. </exclusions>
  279. </dependency>
  280. <dependency>
  281. <artifactId>protobuf-java</artifactId>
  282. <groupId>com.google.protobuf</groupId>
  283. <version>3.3.0</version>
  284. </dependency>
  285. <dependency>
  286. <groupId>org.yaml</groupId>
  287. <artifactId>snakeyaml</artifactId>
  288. <version>1.17</version>
  289. </dependency>
  290. <dependency>
  291. <groupId>org.elasticsearch.client</groupId>
  292. <artifactId>rest</artifactId>
  293. <version>5.5.3</version>
  294. </dependency>
  295. <dependency>
  296. <groupId>com.alibaba</groupId>
  297. <artifactId>fastjson</artifactId>
  298. <version>1.2.72</version>
  299. </dependency>
  300. <!--图处理框架-->
  301. <dependency>
  302. <groupId>org.apache.spark</groupId>
  303. <artifactId>spark-graphx_${scala.binary.version}</artifactId>
  304. <version>2.4.6</version>
  305. </dependency>
  306. <dependency>
  307. <groupId>com.belerweb</groupId>
  308. <artifactId>pinyin4j</artifactId>
  309. <version>2.5.1</version>
  310. </dependency>
  311. </dependencies>
  312. <build>
  313. <plugins>
  314. <plugin>
  315. <groupId>org.apache.maven.plugins</groupId>
  316. <artifactId>maven-shade-plugin</artifactId>
  317. <version>2.4.3</version>
  318. <executions>
  319. <execution>
  320. <phase>package</phase>
  321. <goals>
  322. <goal>shade</goal>
  323. </goals>
  324. <configuration>
  325. <minimizeJar>false</minimizeJar>
  326. <shadedArtifactAttached>true</shadedArtifactAttached>
  327. <artifactSet>
  328. <excludes>
  329. <exclude>com.winhc:*</exclude>
  330. </excludes>
  331. <includes>
  332. <include>*:*</include>
  333. </includes>
  334. </artifactSet>
  335. <filters>
  336. <filter>
  337. <artifact>*:*</artifact>
  338. <excludes>
  339. <exclude>META-INF/*.SF</exclude>
  340. <exclude>META-INF/*.DSA</exclude>
  341. <exclude>META-INF/*.RSA</exclude>
  342. <exclude>**/log4j.properties</exclude>
  343. </excludes>
  344. </filter>
  345. </filters>
  346. <transformers>
  347. <transformer
  348. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  349. <resource>reference.conf</resource>
  350. </transformer>
  351. <transformer
  352. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  353. <resource>META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
  354. </resource>
  355. </transformer>
  356. </transformers>
  357. </configuration>
  358. </execution>
  359. </executions>
  360. </plugin>
  361. <plugin>
  362. <groupId>net.alchim31.maven</groupId>
  363. <artifactId>scala-maven-plugin</artifactId>
  364. <version>3.3.2</version>
  365. <executions>
  366. <execution>
  367. <id>scala-compile-first</id>
  368. <phase>process-resources</phase>
  369. <goals>
  370. <goal>compile</goal>
  371. </goals>
  372. </execution>
  373. <execution>
  374. <id>scala-test-compile-first</id>
  375. <phase>process-test-resources</phase>
  376. <goals>
  377. <goal>testCompile</goal>
  378. </goals>
  379. </execution>
  380. </executions>
  381. </plugin>
  382. </plugins>
  383. </build>
  384. </project>