pom.xml 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426
  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. <exclusion>
  188. <artifactId>javax.el</artifactId>
  189. <groupId>org.glassfish</groupId>
  190. </exclusion>
  191. <!-- <exclusion>
  192. <artifactId>javax.el</artifactId>
  193. <groupId>org.glassfish</groupId>
  194. </exclusion>-->
  195. </exclusions>
  196. </dependency>
  197. <!-- https://mvnrepository.com/artifact/com.aliyun.hbase/alihbase-client -->
  198. <dependency>
  199. <groupId>com.aliyun.hbase</groupId>
  200. <artifactId>alihbase-client</artifactId>
  201. <version>2.0.6</version>
  202. </dependency>
  203. <dependency>
  204. <groupId>com.alibaba.hbase</groupId>
  205. <artifactId>alihbase-connector</artifactId>
  206. <version>2.0.16.1</version>
  207. <exclusions>
  208. <exclusion>
  209. <groupId>org.apache.hbase</groupId>
  210. <artifactId>hbase-client</artifactId>
  211. </exclusion>
  212. <exclusion>
  213. <groupId>org.apache.calcite.avatica</groupId>
  214. <artifactId>avatica</artifactId>
  215. </exclusion>
  216. </exclusions>
  217. </dependency>
  218. <dependency>
  219. <groupId>org.projectlombok</groupId>
  220. <artifactId>lombok</artifactId>
  221. <version>1.18.4</version>
  222. <scope>provided</scope>
  223. </dependency>
  224. <dependency>
  225. <groupId>com.alibaba</groupId>
  226. <artifactId>dns-cache-manipulator</artifactId>
  227. <version>1.5.1</version>
  228. </dependency>
  229. <!-- https://mvnrepository.com/artifact/org.elasticsearch/elasticsearch-spark-20 -->
  230. <dependency>
  231. <groupId>org.elasticsearch</groupId>
  232. <artifactId>elasticsearch-spark-20_2.11</artifactId>
  233. <version>6.0.0</version>
  234. </dependency>
  235. <!-- <dependency>
  236. <groupId>com.aliyun.phoenix</groupId>
  237. <artifactId>ali-phoenix-shaded-thin-client</artifactId>
  238. <version>${ali-phoenix.version}</version>
  239. </dependency>-->
  240. <!-- https://mvnrepository.com/artifact/org.apache.phoenix/phoenix-spark -->
  241. <dependency>
  242. <groupId>org.apache.phoenix</groupId>
  243. <artifactId>phoenix-spark</artifactId>
  244. <version>${phoenix.version}</version>
  245. <exclusions>
  246. <exclusion>
  247. <groupId>org.apache.spark</groupId>
  248. <artifactId>spark-core_2.11</artifactId>
  249. </exclusion>
  250. <exclusion>
  251. <groupId>org.apache.spark</groupId>
  252. <artifactId>spark-launcher_2.11</artifactId>
  253. </exclusion>
  254. <exclusion>
  255. <groupId>org.apache.spark</groupId>
  256. <artifactId>spark-kvstore_2.11</artifactId>
  257. </exclusion>
  258. <exclusion>
  259. <groupId>org.apache.spark</groupId>
  260. <artifactId>spark-network-common_2.11</artifactId>
  261. </exclusion>
  262. <exclusion>
  263. <groupId>org.apache.spark</groupId>
  264. <artifactId>spark-network-shuffle_2.11</artifactId>
  265. </exclusion>
  266. <exclusion>
  267. <groupId>org.apache.spark</groupId>
  268. <artifactId>spark-unsafe_2.11</artifactId>
  269. </exclusion>
  270. <exclusion>
  271. <groupId>org.apache.spark</groupId>
  272. <artifactId>spark-tags_2.11</artifactId>
  273. </exclusion>
  274. <exclusion>
  275. <groupId>org.apache.spark</groupId>
  276. <artifactId>spark-sql_2.11</artifactId>
  277. </exclusion>
  278. <exclusion>
  279. <groupId>org.apache.spark</groupId>
  280. <artifactId>spark-sketch_2.11</artifactId>
  281. </exclusion>
  282. <exclusion>
  283. <groupId>org.apache.spark</groupId>
  284. <artifactId>spark-catalyst_2.11</artifactId>
  285. </exclusion>
  286. <exclusion>
  287. <groupId>org.glassfish</groupId>
  288. <artifactId>javax.el</artifactId>
  289. </exclusion>
  290. </exclusions>
  291. </dependency>
  292. <dependency>
  293. <artifactId>protobuf-java</artifactId>
  294. <groupId>com.google.protobuf</groupId>
  295. <version>3.3.0</version>
  296. </dependency>
  297. <dependency>
  298. <groupId>org.yaml</groupId>
  299. <artifactId>snakeyaml</artifactId>
  300. <version>1.17</version>
  301. </dependency>
  302. <dependency>
  303. <groupId>org.elasticsearch.client</groupId>
  304. <artifactId>rest</artifactId>
  305. <version>5.5.3</version>
  306. </dependency>
  307. <dependency>
  308. <groupId>com.alibaba</groupId>
  309. <artifactId>fastjson</artifactId>
  310. <version>1.2.72</version>
  311. </dependency>
  312. <!--图处理框架-->
  313. <dependency>
  314. <groupId>org.apache.spark</groupId>
  315. <artifactId>spark-graphx_${scala.binary.version}</artifactId>
  316. <version>2.4.6</version>
  317. </dependency>
  318. <dependency>
  319. <groupId>com.belerweb</groupId>
  320. <artifactId>pinyin4j</artifactId>
  321. <version>2.5.1</version>
  322. </dependency>
  323. <dependency>
  324. <groupId>org.scalaj</groupId>
  325. <artifactId>scalaj-http_${scala.binary.version}</artifactId>
  326. <version>2.4.1</version>
  327. </dependency>
  328. <!--
  329. <dependency>
  330. <groupId>com.aliyun.phoenix</groupId>
  331. <artifactId>ali-phoenix-spark</artifactId>
  332. <version>5.1.0-HBase-2.0.0.1</version>
  333. </dependency>-->
  334. <!--<dependency>
  335. <groupId>org.json4s</groupId>
  336. <artifactId>json4s-jackson_${scala.binary.version}</artifactId>
  337. <version>3.7.0-M7</version>
  338. </dependency>-->
  339. </dependencies>
  340. <build>
  341. <plugins>
  342. <plugin>
  343. <groupId>org.apache.maven.plugins</groupId>
  344. <artifactId>maven-shade-plugin</artifactId>
  345. <version>2.4.3</version>
  346. <executions>
  347. <execution>
  348. <phase>package</phase>
  349. <goals>
  350. <goal>shade</goal>
  351. </goals>
  352. <configuration>
  353. <minimizeJar>false</minimizeJar>
  354. <shadedArtifactAttached>true</shadedArtifactAttached>
  355. <artifactSet>
  356. <excludes>
  357. <exclude>com.winhc:*</exclude>
  358. </excludes>
  359. <includes>
  360. <include>*:*</include>
  361. </includes>
  362. </artifactSet>
  363. <filters>
  364. <filter>
  365. <artifact>*:*</artifact>
  366. <excludes>
  367. <exclude>META-INF/*.SF</exclude>
  368. <exclude>META-INF/*.DSA</exclude>
  369. <exclude>META-INF/*.RSA</exclude>
  370. <exclude>**/log4j.properties</exclude>
  371. </excludes>
  372. </filter>
  373. </filters>
  374. <transformers>
  375. <transformer
  376. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  377. <resource>reference.conf</resource>
  378. </transformer>
  379. <transformer
  380. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  381. <resource>META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
  382. </resource>
  383. </transformer>
  384. </transformers>
  385. </configuration>
  386. </execution>
  387. </executions>
  388. </plugin>
  389. <plugin>
  390. <groupId>net.alchim31.maven</groupId>
  391. <artifactId>scala-maven-plugin</artifactId>
  392. <version>3.3.2</version>
  393. <executions>
  394. <execution>
  395. <id>scala-compile-first</id>
  396. <phase>process-resources</phase>
  397. <goals>
  398. <goal>compile</goal>
  399. </goals>
  400. </execution>
  401. <execution>
  402. <id>scala-test-compile-first</id>
  403. <phase>process-test-resources</phase>
  404. <goals>
  405. <goal>testCompile</goal>
  406. </goals>
  407. </execution>
  408. </executions>
  409. </plugin>
  410. </plugins>
  411. </build>
  412. </project>