pom.xml 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281
  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-shade-plugin</artifactId>
  174. <version>3.2.4</version>
  175. <executions>
  176. <execution>
  177. <phase>package</phase>
  178. <goals>
  179. <goal>shade</goal>
  180. </goals>
  181. <configuration>
  182. <relocations>
  183. <relocation>
  184. <pattern>com.google.protobuf</pattern>
  185. <shadedPattern>shaded.com.google.protobuf</shadedPattern>
  186. </relocation>
  187. </relocations>
  188. <minimizeJar>false</minimizeJar>
  189. <shadedArtifactAttached>true</shadedArtifactAttached>
  190. <artifactSet>
  191. <includes>
  192. <!-- Include here the dependencies you
  193. want to be packed in your fat jar -->
  194. <include>*:*</include>
  195. </includes>
  196. </artifactSet>
  197. <filters>
  198. <filter>
  199. <artifact>*:*</artifact>
  200. <excludes>
  201. <exclude>META-INF/*.SF</exclude>
  202. <exclude>META-INF/*.DSA</exclude>
  203. <exclude>META-INF/*.RSA</exclude>
  204. <exclude>**/log4j.properties</exclude>
  205. </excludes>
  206. </filter>
  207. </filters>
  208. <transformers>
  209. <transformer
  210. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  211. <resource>reference.conf</resource>
  212. </transformer>
  213. <transformer
  214. implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
  215. <resource>
  216. META-INF/services/org.apache.spark.sql.sources.DataSourceRegister
  217. </resource>
  218. </transformer>
  219. </transformers>
  220. </configuration>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <plugin>
  225. <groupId>net.alchim31.maven</groupId>
  226. <artifactId>scala-maven-plugin</artifactId>
  227. <version>3.3.2</version>
  228. <executions>
  229. <execution>
  230. <id>scala-compile-first</id>
  231. <phase>process-resources</phase>
  232. <goals>
  233. <goal>compile</goal>
  234. </goals>
  235. </execution>
  236. <execution>
  237. <id>scala-test-compile-first</id>
  238. <phase>process-test-resources</phase>
  239. <goals>
  240. <goal>testCompile</goal>
  241. </goals>
  242. </execution>
  243. </executions>
  244. </plugin>
  245. <plugin>
  246. <groupId>org.apache.maven.plugins</groupId>
  247. <artifactId>maven-compiler-plugin</artifactId>
  248. <version>3.8.1</version>
  249. <configuration>
  250. <source>1.8</source>
  251. <target>1.8</target>
  252. <!--<compilerId>scala</compilerId>-->
  253. <!-- <compilerVersion>2.12.10</compilerVersion>-->
  254. </configuration>
  255. </plugin>
  256. </plugins>
  257. </build>
  258. </project>