pom.xml 10 KB

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