pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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. <parent>
  6. <artifactId>recommend-model</artifactId>
  7. <groupId>com.tzld.piaoquan</groupId>
  8. <version>1.0.0</version>
  9. </parent>
  10. <modelVersion>4.0.0</modelVersion>
  11. <artifactId>recommend-model-produce</artifactId>
  12. <properties>
  13. <!-- <spark.version>3.3.1</spark.version>-->
  14. <!-- <scala.version>2.12.15</scala.version>-->
  15. <!-- <spark.version>2.3.0</spark.version>-->
  16. <spark.version>2.4.8</spark.version>
  17. <scala.version>2.11.8</scala.version>
  18. <emr.version>2.0.0</emr.version>
  19. <java.version>1.8</java.version>
  20. <odps.version>0.48.4-public</odps.version>
  21. <fastjson.version>1.2.45</fastjson.version>
  22. <maven.compiler.source>8</maven.compiler.source>
  23. <maven.compiler.target>8</maven.compiler.target>
  24. </properties>
  25. <dependencies>
  26. <dependency>
  27. <groupId>org.apache.spark</groupId>
  28. <artifactId>spark-core_2.11</artifactId>
  29. <version>${spark.version}</version>
  30. <exclusions>
  31. <exclusion>
  32. <groupId>io.netty</groupId>
  33. <artifactId>netty-all</artifactId>
  34. </exclusion>
  35. <exclusion>
  36. <artifactId>slf4j-log4j12</artifactId>
  37. <groupId>org.slf4j</groupId>
  38. </exclusion>
  39. <exclusion>
  40. <artifactId>scala-library</artifactId>
  41. <groupId>org.scala-lang</groupId>
  42. </exclusion>
  43. <exclusion>
  44. <artifactId>guava</artifactId>
  45. <groupId>com.google.guava</groupId>
  46. </exclusion>
  47. <exclusion>
  48. <artifactId>jersey-server</artifactId>
  49. <groupId>org.glassfish.jersey.core</groupId>
  50. </exclusion>
  51. <exclusion>
  52. <artifactId>jersey-common</artifactId>
  53. <groupId>org.glassfish.jersey.core</groupId>
  54. </exclusion>
  55. <exclusion>
  56. <artifactId>jersey-client</artifactId>
  57. <groupId>org.glassfish.jersey.core</groupId>
  58. </exclusion>
  59. <exclusion>
  60. <artifactId>jersey-container-servlet</artifactId>
  61. <groupId>org.glassfish.jersey.containers</groupId>
  62. </exclusion>
  63. <exclusion>
  64. <artifactId>jersey-container-servlet-core</artifactId>
  65. <groupId>org.glassfish.jersey.containers</groupId>
  66. </exclusion>
  67. </exclusions>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.apache.spark</groupId>
  71. <artifactId>spark-mllib_2.11</artifactId>
  72. <version>${spark.version}</version>
  73. <exclusions>
  74. <exclusion>
  75. <artifactId>scala-library</artifactId>
  76. <groupId>org.scala-lang</groupId>
  77. </exclusion>
  78. <exclusion>
  79. <artifactId>hadoop-mapreduce-client-core</artifactId>
  80. <groupId>org.apache.hadoop</groupId>
  81. </exclusion>
  82. <exclusion>
  83. <artifactId>commons-compiler</artifactId>
  84. <groupId>org.codehaus.janino</groupId>
  85. </exclusion>
  86. <exclusion>
  87. <artifactId>janino</artifactId>
  88. <groupId>org.codehaus.janino</groupId>
  89. </exclusion>
  90. </exclusions>
  91. </dependency>
  92. <dependency>
  93. <groupId>org.glassfish.jersey.core</groupId>
  94. <artifactId>jersey-server</artifactId>
  95. <version>2.22.2</version>
  96. <exclusions>
  97. <exclusion>
  98. <artifactId>jersey-media-jaxb</artifactId>
  99. <groupId>org.glassfish.jersey.media</groupId>
  100. </exclusion>
  101. <exclusion>
  102. <artifactId>jersey-client</artifactId>
  103. <groupId>org.glassfish.jersey.core</groupId>
  104. </exclusion>
  105. <exclusion>
  106. <artifactId>jersey-common</artifactId>
  107. <groupId>org.glassfish.jersey.core</groupId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <!-- <dependency>-->
  112. <!-- <groupId>org.glassfish.jersey</groupId>-->
  113. <!-- <artifactId>project</artifactId>-->
  114. <!-- <version>2.22.2</version>-->
  115. <!-- </dependency>-->
  116. <dependency>
  117. <groupId>org.glassfish.jersey.core</groupId>
  118. <artifactId>jersey-common</artifactId>
  119. <version>2.22.2</version>
  120. </dependency>
  121. <dependency>
  122. <groupId>org.glassfish.jersey.containers</groupId>
  123. <artifactId>jersey-container-servlet</artifactId>
  124. <version>2.22.2</version>
  125. </dependency>
  126. <dependency>
  127. <groupId>org.glassfish.jersey.containers</groupId>
  128. <artifactId>jersey-container-servlet-core</artifactId>
  129. <version>2.22.2</version>
  130. </dependency>
  131. <dependency>
  132. <groupId>org.glassfish.jersey.media</groupId>
  133. <artifactId>jersey-media-jaxb</artifactId>
  134. <version>2.22.2</version>
  135. <exclusions>
  136. <exclusion>
  137. <artifactId>jersey-common</artifactId>
  138. <groupId>org.glassfish.jersey.core</groupId>
  139. </exclusion>
  140. </exclusions>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.glassfish.jersey.core</groupId>
  144. <artifactId>jersey-client</artifactId>
  145. <version>2.22.2</version>
  146. <exclusions>
  147. <exclusion>
  148. <artifactId>jersey-common</artifactId>
  149. <groupId>org.glassfish.jersey.core</groupId>
  150. </exclusion>
  151. </exclusions>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.codehaus.janino</groupId>
  155. <artifactId>janino</artifactId>
  156. <version>3.0.16</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>org.codehaus.janino</groupId>
  160. <artifactId>commons-compiler</artifactId>
  161. <version>3.0.16</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.google.guava</groupId>
  165. <artifactId>guava</artifactId>
  166. <version>14.0.1</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>io.netty</groupId>
  170. <artifactId>netty-all</artifactId>
  171. <version>4.1.17.Final</version>
  172. </dependency>
  173. <dependency>
  174. <groupId>com.aliyun.emr</groupId>
  175. <artifactId>emr-maxcompute_2.11</artifactId>
  176. <version>${emr.version}</version>
  177. <exclusions>
  178. <exclusion>
  179. <artifactId>spark-core_2.11</artifactId>
  180. <groupId>org.apache.spark</groupId>
  181. </exclusion>
  182. <exclusion>
  183. <artifactId>spark-catalyst_2.11</artifactId>
  184. <groupId>org.apache.spark</groupId>
  185. </exclusion>
  186. <exclusion>
  187. <artifactId>guava</artifactId>
  188. <groupId>com.google.guava</groupId>
  189. </exclusion>
  190. </exclusions>
  191. </dependency>
  192. <dependency>
  193. <groupId>org.scala-lang</groupId>
  194. <artifactId>scala-library</artifactId>
  195. <version>${scala.version}</version>
  196. </dependency>
  197. <dependency>
  198. <groupId>com.alibaba</groupId>
  199. <artifactId>fastjson</artifactId>
  200. <version>${fastjson.version}</version>
  201. </dependency>
  202. <dependency>
  203. <groupId>redis.clients</groupId>
  204. <artifactId>jedis</artifactId>
  205. <version>5.1.3</version>
  206. </dependency>
  207. <dependency>
  208. <groupId>com.aliyun.odps</groupId>
  209. <artifactId>odps-sdk-core</artifactId>
  210. <version>${odps.version}</version>
  211. <exclusions>
  212. <exclusion>
  213. <groupId>org.codehaus.jackson</groupId>
  214. <artifactId>jackson-mapper-asl</artifactId>
  215. </exclusion>
  216. <exclusion>
  217. <groupId>org.codehaus.jackson</groupId>
  218. <artifactId>jackson-core-asl</artifactId>
  219. </exclusion>
  220. <exclusion>
  221. <artifactId>guava</artifactId>
  222. <groupId>com.google.guava</groupId>
  223. </exclusion>
  224. </exclusions>
  225. </dependency>
  226. <dependency>
  227. <groupId>com.aliyun.odps</groupId>
  228. <artifactId>odps-sdk-commons</artifactId>
  229. <version>${odps.version}</version>
  230. </dependency>
  231. <dependency>
  232. <groupId>org.projectlombok</groupId>
  233. <artifactId>lombok</artifactId>
  234. <version>1.18.24</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>com.ctrip.framework.apollo</groupId>
  238. <artifactId>apollo-client</artifactId>
  239. <version>1.8.0</version>
  240. <exclusions>
  241. <exclusion>
  242. <artifactId>guava</artifactId>
  243. <groupId>com.google.guava</groupId>
  244. </exclusion>
  245. </exclusions>
  246. </dependency>
  247. <dependency>
  248. <groupId>org.slf4j</groupId>
  249. <artifactId>slf4j-simple</artifactId>
  250. <version>1.7.28</version>
  251. </dependency>
  252. <dependency>
  253. <groupId>com.aliyun.oss</groupId>
  254. <artifactId>aliyun-sdk-oss</artifactId>
  255. <version>3.17.4</version>
  256. </dependency>
  257. <dependency>
  258. <groupId>ml.dmlc</groupId>
  259. <artifactId>xgboost4j-spark</artifactId>
  260. <version>0.90</version>
  261. <exclusions>
  262. <exclusion>
  263. <artifactId>scala-library</artifactId>
  264. <groupId>org.scala-lang</groupId>
  265. </exclusion>
  266. </exclusions>
  267. </dependency>
  268. </dependencies>
  269. <build>
  270. <plugins>
  271. <plugin>
  272. <groupId>org.apache.maven.plugins</groupId>
  273. <artifactId>maven-assembly-plugin</artifactId>
  274. <version>2.5.5</version>
  275. <configuration>
  276. <descriptorRefs>
  277. <descriptorRef>jar-with-dependencies</descriptorRef>
  278. </descriptorRefs>
  279. <finalName>${project.name}</finalName>
  280. </configuration>
  281. <executions>
  282. <execution>
  283. <id>make-assembly</id>
  284. <phase>package</phase>
  285. <goals>
  286. <goal>single</goal>
  287. </goals>
  288. </execution>
  289. </executions>
  290. </plugin>
  291. </plugins>
  292. </build>
  293. </project>