pom.xml 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  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. <scala.version>2.11.8</scala.version>
  17. <emr.version>2.0.0</emr.version>
  18. <java.version>1.8</java.version>
  19. <odps.version>0.48.4-public</odps.version>
  20. <fastjson.version>1.2.45</fastjson.version>
  21. <maven.compiler.source>8</maven.compiler.source>
  22. <maven.compiler.target>8</maven.compiler.target>
  23. </properties>
  24. <dependencies>
  25. <dependency>
  26. <groupId>org.apache.spark</groupId>
  27. <artifactId>spark-core_2.11</artifactId>
  28. <version>${spark.version}</version>
  29. <exclusions>
  30. <exclusion>
  31. <groupId>io.netty</groupId>
  32. <artifactId>netty-all</artifactId>
  33. </exclusion>
  34. <exclusion>
  35. <artifactId>slf4j-log4j12</artifactId>
  36. <groupId>org.slf4j</groupId>
  37. </exclusion>
  38. <exclusion>
  39. <artifactId>scala-library</artifactId>
  40. <groupId>org.scala-lang</groupId>
  41. </exclusion>
  42. </exclusions>
  43. </dependency>
  44. <dependency>
  45. <groupId>org.apache.spark</groupId>
  46. <artifactId>spark-mllib_2.11</artifactId>
  47. <version>${spark.version}</version>
  48. <exclusions>
  49. <exclusion>
  50. <artifactId>scala-library</artifactId>
  51. <groupId>org.scala-lang</groupId>
  52. </exclusion>
  53. <exclusion>
  54. <artifactId>hadoop-mapreduce-client-core</artifactId>
  55. <groupId>org.apache.hadoop</groupId>
  56. </exclusion>
  57. </exclusions>
  58. </dependency>
  59. <dependency>
  60. <groupId>io.netty</groupId>
  61. <artifactId>netty-all</artifactId>
  62. <version>4.1.17.Final</version>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.aliyun.emr</groupId>
  66. <artifactId>emr-maxcompute_2.11</artifactId>
  67. <version>${emr.version}</version>
  68. <exclusions>
  69. <exclusion>
  70. <artifactId>spark-core_2.11</artifactId>
  71. <groupId>org.apache.spark</groupId>
  72. </exclusion>
  73. <exclusion>
  74. <artifactId>spark-catalyst_2.11</artifactId>
  75. <groupId>org.apache.spark</groupId>
  76. </exclusion>
  77. </exclusions>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.scala-lang</groupId>
  81. <artifactId>scala-library</artifactId>
  82. <version>${scala.version}</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>com.alibaba</groupId>
  86. <artifactId>fastjson</artifactId>
  87. <version>${fastjson.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>redis.clients</groupId>
  91. <artifactId>jedis</artifactId>
  92. <version>5.1.3</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>com.aliyun.odps</groupId>
  96. <artifactId>odps-sdk-core</artifactId>
  97. <version>${odps.version}</version>
  98. <exclusions>
  99. <exclusion>
  100. <groupId>org.codehaus.jackson</groupId>
  101. <artifactId>jackson-mapper-asl</artifactId>
  102. </exclusion>
  103. <exclusion>
  104. <groupId>org.codehaus.jackson</groupId>
  105. <artifactId>jackson-core-asl</artifactId>
  106. </exclusion>
  107. </exclusions>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.aliyun.odps</groupId>
  111. <artifactId>odps-sdk-commons</artifactId>
  112. <version>${odps.version}</version>
  113. </dependency>
  114. <dependency>
  115. <groupId>org.projectlombok</groupId>
  116. <artifactId>lombok</artifactId>
  117. <version>1.18.24</version>
  118. </dependency>
  119. <dependency>
  120. <groupId>com.ctrip.framework.apollo</groupId>
  121. <artifactId>apollo-client</artifactId>
  122. <version>1.8.0</version>
  123. </dependency>
  124. <dependency>
  125. <groupId>org.slf4j</groupId>
  126. <artifactId>slf4j-simple</artifactId>
  127. <version>1.7.28</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.aliyun.oss</groupId>
  131. <artifactId>aliyun-sdk-oss</artifactId>
  132. <version>3.17.4</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>ml.dmlc</groupId>
  136. <artifactId>xgboost4j-spark</artifactId>
  137. <version>0.90</version>
  138. <exclusions>
  139. <exclusion>
  140. <artifactId>scala-library</artifactId>
  141. <groupId>org.scala-lang</groupId>
  142. </exclusion>
  143. </exclusions>
  144. </dependency>
  145. </dependencies>
  146. <build>
  147. <plugins>
  148. <plugin>
  149. <groupId>org.apache.maven.plugins</groupId>
  150. <artifactId>maven-assembly-plugin</artifactId>
  151. <version>2.5.5</version>
  152. <configuration>
  153. <descriptorRefs>
  154. <descriptorRef>jar-with-dependencies</descriptorRef>
  155. </descriptorRefs>
  156. <finalName>${project.name}</finalName>
  157. </configuration>
  158. <executions>
  159. <execution>
  160. <id>make-assembly</id>
  161. <phase>package</phase>
  162. <goals>
  163. <goal>single</goal>
  164. </goals>
  165. </execution>
  166. </executions>
  167. </plugin>
  168. </plugins>
  169. </build>
  170. </project>