pom.xml 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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. <modelVersion>4.0.0</modelVersion>
  6. <groupId>com.jollychic</groupId>
  7. <artifactId>userprofile-monthly-task</artifactId>
  8. <version>1.0.0</version>
  9. <properties>
  10. <!-- <maven.compiler.source>1.8</maven.compiler.source>-->
  11. <!-- <maven.compiler.target>1.8</maven.compiler.target>-->
  12. <!-- <java.version>1.8</java.version>-->
  13. <scala.version>2.11.12</scala.version>
  14. <spark.version>2.4.0</spark.version>
  15. <mysql.version>5.1.12</mysql.version>
  16. <typesafe.version>2.3.11</typesafe.version>
  17. <fastjson.version>1.2.47</fastjson.version>
  18. <scalikejdbc.version>3.1.0</scalikejdbc.version>
  19. <commons.version>3.4</commons.version>
  20. <encoding>UTF-8</encoding>
  21. </properties>
  22. <dependencies>
  23. <dependency>
  24. <groupId>org.apache.spark</groupId>
  25. <artifactId>spark-core_2.11</artifactId>
  26. <version>${spark.version}</version>
  27. <!-- <scope>provided</scope>-->
  28. </dependency>
  29. <!-- 导入scala的依赖 -->
  30. <dependency>
  31. <groupId>org.scala-lang</groupId>
  32. <artifactId>scala-library</artifactId>
  33. <version>${scala.version}</version>
  34. <!-- <scope>provided</scope>-->
  35. </dependency>
  36. <dependency>
  37. <groupId>org.apache.spark</groupId>
  38. <artifactId>spark-sql_2.11</artifactId>
  39. <version>${spark.version}</version>
  40. <!-- <scope>provided</scope>-->
  41. </dependency>
  42. <!-- <dependency>-->
  43. <!-- <groupId>org.apache.spark</groupId>-->
  44. <!-- <artifactId>spark-hive_2.11</artifactId>-->
  45. <!-- <version>2.1.1</version>-->
  46. <!-- <scope>provided</scope>-->
  47. <!-- </dependency>-->
  48. <dependency>
  49. <groupId>mysql</groupId>
  50. <artifactId>mysql-connector-java</artifactId>
  51. <version>${mysql.version}</version>
  52. <scope>runtime</scope>
  53. </dependency>
  54. <dependency>
  55. <groupId>com.oracle</groupId>
  56. <!-- <artifactId>ojdbc7</artifactId>-->
  57. <!-- <version>12.2.0.1</version>-->
  58. <artifactId>ojdbc6</artifactId>
  59. <version>11.2.0.3</version>
  60. <scope>system</scope>
  61. <!-- <systemPath>${basedir}/lib/ojdbc7-12.2.0.1.jar</systemPath>-->
  62. <systemPath>${basedir}/src/lib/ojdbc6-11.2.0.3.jar</systemPath>
  63. </dependency>
  64. <dependency>
  65. <groupId>com.typesafe.akka</groupId>
  66. <artifactId>akka-actor_2.10</artifactId>
  67. <version>${typesafe.version}</version>
  68. <exclusions>
  69. <exclusion>
  70. <groupId>org.scala-lang</groupId>
  71. <artifactId>scala-library</artifactId>
  72. </exclusion>
  73. </exclusions>
  74. </dependency>
  75. <dependency>
  76. <groupId>com.alibaba</groupId>
  77. <artifactId>fastjson</artifactId>
  78. <version>${fastjson.version}</version>
  79. </dependency>
  80. <dependency>
  81. <groupId>org.scalikejdbc</groupId>
  82. <artifactId>scalikejdbc_2.11</artifactId>
  83. <version>${scalikejdbc.version}</version>
  84. </dependency>
  85. <dependency>
  86. <groupId>org.scalikejdbc</groupId>
  87. <artifactId>scalikejdbc-config_2.11</artifactId>
  88. <version>${scalikejdbc.version}</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.apache.commons</groupId>
  92. <artifactId>commons-lang3</artifactId>
  93. <version>${commons.version}</version>
  94. </dependency>
  95. <dependency>
  96. <groupId>org.elasticsearch.client</groupId>
  97. <artifactId>elasticsearch-rest-high-level-client</artifactId>
  98. <version>7.6.2</version>
  99. </dependency>
  100. <dependency>
  101. <groupId>org.elasticsearch</groupId>
  102. <artifactId>elasticsearch-spark-20_2.11</artifactId>
  103. <version>7.6.2</version>
  104. </dependency>
  105. <!-- clickHouse数据库 -->
  106. <dependency>
  107. <groupId>ru.yandex.clickhouse</groupId>
  108. <artifactId>clickhouse-jdbc</artifactId>
  109. <version>0.3.1</version>
  110. </dependency>
  111. </dependencies>
  112. <build>
  113. <!-- <resources>-->
  114. <!-- <resource>-->
  115. <!-- <directory>src/lib</directory>-->
  116. <!-- <targetPath>BOOT-INF/lib/</targetPath>-->
  117. <!-- <includes>-->
  118. <!-- <include>**/*.jar</include>-->
  119. <!-- </includes>-->
  120. <!-- </resource>-->
  121. <!-- <resource>-->
  122. <!-- <directory>src/main/resources</directory>-->
  123. <!-- <targetPath>BOOT-INF/classes/</targetPath>-->
  124. <!-- </resource>-->
  125. <!-- </resources>-->
  126. <finalName>user-group-tag-task</finalName>
  127. <sourceDirectory>src/main/scala</sourceDirectory>
  128. <plugins>
  129. <!-- 指定编译java的插件 -->
  130. <plugin>
  131. <groupId>org.apache.maven.plugins</groupId>
  132. <artifactId>maven-compiler-plugin</artifactId>
  133. <version>3.6.1</version>
  134. <configuration>
  135. <source>1.8</source>
  136. <target>1.8</target>
  137. </configuration>
  138. </plugin>
  139. <!-- 指定编译scala的插件 -->
  140. <plugin>
  141. <groupId>net.alchim31.maven</groupId>
  142. <artifactId>scala-maven-plugin</artifactId>
  143. <version>3.2.2</version>
  144. <executions>
  145. <execution>
  146. <id>scala-compile-first</id>
  147. <phase>process-resources</phase>
  148. <goals>
  149. <goal>add-source</goal>
  150. <goal>compile</goal>
  151. </goals>
  152. </execution>
  153. <execution>
  154. <goals>
  155. <goal>compile</goal>
  156. <goal>testCompile</goal>
  157. </goals>
  158. <configuration>
  159. <args>
  160. <arg>-dependencyfile</arg>
  161. <arg>${project.build.directory}/.scala_dependencies</arg>
  162. </args>
  163. </configuration>
  164. </execution>
  165. </executions>
  166. </plugin>
  167. <plugin>
  168. <artifactId>maven-assembly-plugin</artifactId>
  169. <configuration>
  170. <descriptorRefs>
  171. <descriptorRef>jar-with-dependencies</descriptorRef>
  172. </descriptorRefs>
  173. <archive>
  174. </archive>
  175. </configuration>
  176. <executions>
  177. <execution>
  178. <id>make-assembly</id>
  179. <phase>package</phase>
  180. <goals>
  181. <goal>single</goal>
  182. </goals>
  183. </execution>
  184. </executions>
  185. </plugin>
  186. </plugins>
  187. </build>
  188. </project>