pom.xml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License. See accompanying LICENSE file.
  12. -->
  13. <project xmlns="http://maven.apache.org/POM/4.0.0"
  14. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  15. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  16. <modelVersion>4.0.0</modelVersion>
  17. <parent>
  18. <groupId>com.tzld.commons</groupId>
  19. <artifactId>supom</artifactId>
  20. <version>1.0.9</version>
  21. </parent>
  22. <properties>
  23. <spark.version>2.3.0</spark.version>
  24. <cupid.sdk.version>3.3.8-public</cupid.sdk.version>
  25. <scala.version>2.11.12</scala.version>
  26. <scala.binary.version>2.11</scala.binary.version>
  27. <java.version>1.8</java.version>
  28. <maven.compiler.source>${java.version}</maven.compiler.source>
  29. <maven.compiler.target>${java.version}</maven.compiler.target>
  30. <emr.version>2.0.0</emr.version>
  31. <odps.version>0.28.4-public</odps.version>
  32. </properties>
  33. <groupId>com.aliyun.odps</groupId>
  34. <artifactId>spark-examples</artifactId>
  35. <version>1.0.0-SNAPSHOT</version>
  36. <packaging>jar</packaging>
  37. <dependencies>
  38. <dependency>
  39. <groupId>com.google.protobuf</groupId>
  40. <artifactId>protobuf-java</artifactId>
  41. <version>3.12.0</version>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.hankcs</groupId>
  45. <artifactId>hanlp</artifactId>
  46. <version>portable-1.8.2</version>
  47. </dependency>
  48. <!-- <dependency>-->
  49. <!-- <groupId>com.medallia.word2vec</groupId>-->
  50. <!-- <artifactId>word2vec</artifactId>-->
  51. <!-- <version>0.1.42</version>-->
  52. <!-- </dependency>-->
  53. <dependency>
  54. <groupId>org.xm</groupId>
  55. <artifactId>similarity</artifactId>
  56. <version>1.1</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>com.alibaba</groupId>
  60. <artifactId>fastjson</artifactId>
  61. <version>1.2.83</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>com.tzld.piaoquan</groupId>
  65. <artifactId>recommend-server-client</artifactId>
  66. <version>1.0.1</version>
  67. </dependency>
  68. <dependency>
  69. <groupId>com.tzld.piaoquan</groupId>
  70. <artifactId>recommend-feature-client</artifactId>
  71. <version>1.0.3</version>
  72. </dependency>
  73. <dependency>
  74. <groupId>com.tzld.piaoquan</groupId>
  75. <artifactId>ad-engine-commons</artifactId>
  76. <version>1.0.0</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.spark</groupId>
  80. <artifactId>spark-core_${scala.binary.version}</artifactId>
  81. <version>${spark.version}</version>
  82. <scope>provided</scope>
  83. <exclusions>
  84. <exclusion>
  85. <groupId>org.scala-lang</groupId>
  86. <artifactId>scala-library</artifactId>
  87. </exclusion>
  88. <exclusion>
  89. <groupId>org.scala-lang</groupId>
  90. <artifactId>scalap</artifactId>
  91. </exclusion>
  92. </exclusions>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.apache.spark</groupId>
  96. <artifactId>spark-sql_${scala.binary.version}</artifactId>
  97. <version>${spark.version}</version>
  98. <scope>provided</scope>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.apache.spark</groupId>
  102. <artifactId>spark-mllib_${scala.binary.version}</artifactId>
  103. <version>${spark.version}</version>
  104. <scope>provided</scope>
  105. </dependency>
  106. <dependency>
  107. <groupId>org.apache.spark</groupId>
  108. <artifactId>spark-streaming_${scala.binary.version}</artifactId>
  109. <version>${spark.version}</version>
  110. <scope>provided</scope>
  111. </dependency>
  112. <dependency>
  113. <groupId>com.aliyun.odps</groupId>
  114. <artifactId>cupid-sdk</artifactId>
  115. <version>${cupid.sdk.version}</version>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>com.aliyun.odps</groupId>
  120. <artifactId>hadoop-fs-oss</artifactId>
  121. <version>${cupid.sdk.version}</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>com.aliyun.odps</groupId>
  125. <artifactId>odps-spark-datasource_${scala.binary.version}</artifactId>
  126. <version>${cupid.sdk.version}</version>
  127. </dependency>
  128. <dependency>
  129. <groupId>org.scala-lang</groupId>
  130. <artifactId>scala-library</artifactId>
  131. <version>${scala.version}</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.scala-lang</groupId>
  135. <artifactId>scala-actors</artifactId>
  136. <version>${scala.version}</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.aliyun.emr</groupId>
  140. <artifactId>emr-maxcompute_2.11</artifactId>
  141. <version>${emr.version}</version>
  142. </dependency>
  143. <dependency>
  144. <groupId>org.springframework.boot</groupId>
  145. <artifactId>spring-boot-starter-data-redis</artifactId>
  146. <version>2.4.2</version>
  147. </dependency>
  148. <dependency>
  149. <groupId>redis.clients</groupId>
  150. <artifactId>jedis</artifactId>
  151. <version>3.3.0</version>
  152. </dependency>
  153. <dependency>
  154. <groupId>org.projectlombok</groupId>
  155. <artifactId>lombok</artifactId>
  156. <version>1.18.24</version>
  157. </dependency>
  158. <dependency>
  159. <groupId>ml.dmlc</groupId>
  160. <artifactId>xgboost4j-spark_2.11</artifactId>
  161. <version>1.1.2</version>
  162. </dependency>
  163. <dependency>
  164. <groupId>com.tzld.piaoquan</groupId>
  165. <artifactId>recommend-similarity</artifactId>
  166. <version>1.0.0</version>
  167. </dependency>
  168. </dependencies>
  169. <build>
  170. <plugins>
  171. <plugin>
  172. <groupId>org.apache.maven.plugins</groupId>
  173. <artifactId>maven-surefire-plugin</artifactId>
  174. <version>2.18.1</version>
  175. <configuration>
  176. <skipTests>true</skipTests>
  177. </configuration>
  178. </plugin>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-compiler-plugin</artifactId>
  182. <configuration>
  183. <compilerVersion>${java.version}</compilerVersion>
  184. <source>1.8</source>
  185. <target>1.8</target>
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.scala-tools</groupId>
  190. <artifactId>maven-scala-plugin</artifactId>
  191. <version>2.15.2</version>
  192. <executions>
  193. <execution>
  194. <goals>
  195. <goal>compile</goal>
  196. <goal>testCompile</goal>
  197. </goals>
  198. </execution>
  199. </executions>
  200. <configuration>
  201. <includes>
  202. <include>**/*.scala</include>
  203. <include>**/*.java</include>
  204. </includes>
  205. <scalaVersion>${scala.version}</scalaVersion>
  206. </configuration>
  207. </plugin>
  208. <plugin>
  209. <artifactId>maven-assembly-plugin</artifactId>
  210. <configuration>
  211. <descriptorRefs>
  212. <descriptorRef>jar-with-dependencies</descriptorRef>
  213. </descriptorRefs>
  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. </plugins>
  226. </build>
  227. </project>