pom.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  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. <!-- <spark.version>2.3.0</spark.version>-->
  15. <!-- <spark.version>2.4.8</spark.version>-->
  16. <scala.version>2.12.15</scala.version>
  17. <emr.version>2.0.0</emr.version>
  18. <java.version>1.8</java.version>
  19. <fastjson.version>1.2.45</fastjson.version>
  20. <maven.compiler.source>8</maven.compiler.source>
  21. <maven.compiler.target>8</maven.compiler.target>
  22. </properties>
  23. <dependencies>
  24. <dependency>
  25. <groupId>org.apache.spark</groupId>
  26. <artifactId>spark-core_2.12</artifactId>
  27. <version>${spark.version}</version>
  28. <exclusions>
  29. <!-- <exclusion>-->
  30. <!-- <groupId>io.netty</groupId>-->
  31. <!-- <artifactId>netty-all</artifactId>-->
  32. <!-- </exclusion>-->
  33. <exclusion>
  34. <artifactId>slf4j-log4j12</artifactId>
  35. <groupId>org.slf4j</groupId>
  36. </exclusion>
  37. <exclusion>
  38. <artifactId>scala-library</artifactId>
  39. <groupId>org.scala-lang</groupId>
  40. </exclusion>
  41. <exclusion>
  42. <artifactId>guava</artifactId>
  43. <groupId>com.google.guava</groupId>
  44. </exclusion>
  45. <exclusion>
  46. <artifactId>jersey-server</artifactId>
  47. <groupId>org.glassfish.jersey.core</groupId>
  48. </exclusion>
  49. <exclusion>
  50. <artifactId>jersey-common</artifactId>
  51. <groupId>org.glassfish.jersey.core</groupId>
  52. </exclusion>
  53. <exclusion>
  54. <artifactId>jersey-client</artifactId>
  55. <groupId>org.glassfish.jersey.core</groupId>
  56. </exclusion>
  57. <exclusion>
  58. <artifactId>jersey-container-servlet</artifactId>
  59. <groupId>org.glassfish.jersey.containers</groupId>
  60. </exclusion>
  61. <exclusion>
  62. <artifactId>jersey-container-servlet-core</artifactId>
  63. <groupId>org.glassfish.jersey.containers</groupId>
  64. </exclusion>
  65. </exclusions>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.apache.spark</groupId>
  69. <artifactId>spark-mllib_2.12</artifactId>
  70. <version>${spark.version}</version>
  71. <exclusions>
  72. <exclusion>
  73. <artifactId>scala-library</artifactId>
  74. <groupId>org.scala-lang</groupId>
  75. </exclusion>
  76. <exclusion>
  77. <artifactId>hadoop-mapreduce-client-core</artifactId>
  78. <groupId>org.apache.hadoop</groupId>
  79. </exclusion>
  80. <exclusion>
  81. <artifactId>commons-compiler</artifactId>
  82. <groupId>org.codehaus.janino</groupId>
  83. </exclusion>
  84. <exclusion>
  85. <artifactId>janino</artifactId>
  86. <groupId>org.codehaus.janino</groupId>
  87. </exclusion>
  88. </exclusions>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.glassfish.jersey.core</groupId>
  92. <artifactId>jersey-server</artifactId>
  93. <version>2.22.2</version>
  94. <exclusions>
  95. <exclusion>
  96. <artifactId>jersey-media-jaxb</artifactId>
  97. <groupId>org.glassfish.jersey.media</groupId>
  98. </exclusion>
  99. <exclusion>
  100. <artifactId>jersey-client</artifactId>
  101. <groupId>org.glassfish.jersey.core</groupId>
  102. </exclusion>
  103. <exclusion>
  104. <artifactId>jersey-common</artifactId>
  105. <groupId>org.glassfish.jersey.core</groupId>
  106. </exclusion>
  107. </exclusions>
  108. </dependency>
  109. <!-- <dependency>-->
  110. <!-- <groupId>org.glassfish.jersey</groupId>-->
  111. <!-- <artifactId>project</artifactId>-->
  112. <!-- <version>2.22.2</version>-->
  113. <!-- </dependency>-->
  114. <dependency>
  115. <groupId>org.glassfish.jersey.core</groupId>
  116. <artifactId>jersey-common</artifactId>
  117. <version>2.22.2</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>org.glassfish.jersey.containers</groupId>
  121. <artifactId>jersey-container-servlet</artifactId>
  122. <version>2.22.2</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.glassfish.jersey.containers</groupId>
  126. <artifactId>jersey-container-servlet-core</artifactId>
  127. <version>2.22.2</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>org.glassfish.jersey.media</groupId>
  131. <artifactId>jersey-media-jaxb</artifactId>
  132. <version>2.22.2</version>
  133. <exclusions>
  134. <exclusion>
  135. <artifactId>jersey-common</artifactId>
  136. <groupId>org.glassfish.jersey.core</groupId>
  137. </exclusion>
  138. </exclusions>
  139. </dependency>
  140. <dependency>
  141. <groupId>org.glassfish.jersey.core</groupId>
  142. <artifactId>jersey-client</artifactId>
  143. <version>2.22.2</version>
  144. <exclusions>
  145. <exclusion>
  146. <artifactId>jersey-common</artifactId>
  147. <groupId>org.glassfish.jersey.core</groupId>
  148. </exclusion>
  149. </exclusions>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.codehaus.janino</groupId>
  153. <artifactId>janino</artifactId>
  154. <version>3.0.16</version>
  155. </dependency>
  156. <dependency>
  157. <groupId>org.codehaus.janino</groupId>
  158. <artifactId>commons-compiler</artifactId>
  159. <version>3.0.16</version>
  160. </dependency>
  161. <dependency>
  162. <groupId>com.google.guava</groupId>
  163. <artifactId>guava</artifactId>
  164. <version>14.0.1</version>
  165. </dependency>
  166. <dependency>
  167. <groupId>org.scala-lang</groupId>
  168. <artifactId>scala-library</artifactId>
  169. <version>${scala.version}</version>
  170. </dependency>
  171. <dependency>
  172. <groupId>com.alibaba</groupId>
  173. <artifactId>fastjson</artifactId>
  174. <version>${fastjson.version}</version>
  175. </dependency>
  176. <dependency>
  177. <groupId>org.projectlombok</groupId>
  178. <artifactId>lombok</artifactId>
  179. <version>1.18.24</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>org.slf4j</groupId>
  183. <artifactId>slf4j-simple</artifactId>
  184. <version>1.7.28</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>com.aliyun.oss</groupId>
  188. <artifactId>aliyun-sdk-oss</artifactId>
  189. <version>3.17.4</version>
  190. </dependency>
  191. <dependency>
  192. <groupId>ml.dmlc</groupId>
  193. <artifactId>xgboost4j-spark_2.12</artifactId>
  194. <version>1.7.6</version>
  195. <exclusions>
  196. <exclusion>
  197. <artifactId>scala-library</artifactId>
  198. <groupId>org.scala-lang</groupId>
  199. </exclusion>
  200. </exclusions>
  201. </dependency>
  202. </dependencies>
  203. <build>
  204. <plugins>
  205. <plugin>
  206. <groupId>org.apache.maven.plugins</groupId>
  207. <artifactId>maven-assembly-plugin</artifactId>
  208. <version>2.5.5</version>
  209. <configuration>
  210. <descriptorRefs>
  211. <descriptorRef>jar-with-dependencies</descriptorRef>
  212. </descriptorRefs>
  213. <finalName>${project.name}</finalName>
  214. </configuration>
  215. <executions>
  216. <execution>
  217. <id>make-assembly</id>
  218. <phase>package</phase>
  219. <goals>
  220. <goal>single</goal>
  221. </goals>
  222. </execution>
  223. </executions>
  224. </plugin>
  225. <plugin>
  226. <groupId>net.alchim31.maven</groupId>
  227. <artifactId>scala-maven-plugin</artifactId>
  228. <version>3.3.2</version>
  229. <executions>
  230. <execution>
  231. <id>scala-compile-first</id>
  232. <phase>process-resources</phase>
  233. <goals>
  234. <goal>compile</goal>
  235. </goals>
  236. </execution>
  237. <execution>
  238. <id>scala-test-compile-first</id>
  239. <phase>process-test-resources</phase>
  240. <goals>
  241. <goal>testCompile</goal>
  242. </goals>
  243. </execution>
  244. </executions>
  245. </plugin>
  246. </plugins>
  247. </build>
  248. </project>