pom.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.4.1</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>com.example</groupId>
  12. <artifactId>java_compile</artifactId>
  13. <version>0.0.1-SNAPSHOT</version>
  14. <name>java_compile</name>
  15. <description>Demo project for Spring Boot</description>
  16. <properties>
  17. <java.version>1.8</java.version>
  18. </properties>
  19. <dependencies>
  20. <!-- https://mvnrepository.com/artifact/org.scala-lang/scala-library -->
  21. <dependency>
  22. <groupId>org.scala-lang</groupId>
  23. <artifactId>scala-library</artifactId>
  24. <version>2.12.10</version>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.scala-lang</groupId>
  28. <artifactId>scala-compiler</artifactId>
  29. <version>2.12.10</version>
  30. <exclusions>
  31. <exclusion>
  32. <artifactId>scala-library</artifactId>
  33. <groupId>org.scala-lang</groupId>
  34. </exclusion>
  35. </exclusions>
  36. </dependency>
  37. <dependency>
  38. <groupId>org.scala-lang</groupId>
  39. <artifactId>scala-reflect</artifactId>
  40. <version>2.12.10</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>com.fasterxml.jackson.module</groupId>
  44. <artifactId>jackson-module-paranamer</artifactId>
  45. <version>2.12.0</version>
  46. </dependency>
  47. <dependency>
  48. <groupId>com.fasterxml.jackson.module</groupId>
  49. <artifactId>jackson-module-scala_2.12</artifactId>
  50. <version>2.11.3</version>
  51. <exclusions>
  52. <exclusion>
  53. <artifactId>scala-library</artifactId>
  54. <groupId>org.scala-lang</groupId>
  55. </exclusion>
  56. <exclusion>
  57. <artifactId>jackson-module-paranamer</artifactId>
  58. <groupId>com.fasterxml.jackson.module</groupId>
  59. </exclusion>
  60. </exclusions>
  61. </dependency>
  62. <!-- Spark Series-->
  63. <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-core -->
  64. <dependency>
  65. <groupId>org.apache.spark</groupId>
  66. <artifactId>spark-core_2.12</artifactId>
  67. <version>3.0.1</version>
  68. </dependency>
  69. <dependency>
  70. <groupId>org.codehaus.janino</groupId>
  71. <artifactId>janino</artifactId>
  72. <version>3.0.8</version>
  73. </dependency>
  74. <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-sql -->
  75. <dependency>
  76. <groupId>org.apache.spark</groupId>
  77. <artifactId>spark-sql_2.12</artifactId>
  78. <version>3.0.1</version>
  79. <exclusions>
  80. <exclusion>
  81. <artifactId>jsr305</artifactId>
  82. <groupId>com.google.code.findbugs</groupId>
  83. </exclusion>
  84. <exclusion>
  85. <artifactId>scala-reflect</artifactId>
  86. <groupId>org.scala-lang</groupId>
  87. </exclusion>
  88. <exclusion>
  89. <artifactId>snappy-java</artifactId>
  90. <groupId>org.xerial.snappy</groupId>
  91. </exclusion>
  92. </exclusions>
  93. </dependency>
  94. <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-mllib -->
  95. <dependency>
  96. <groupId>org.apache.spark</groupId>
  97. <artifactId>spark-mllib_2.12</artifactId>
  98. <version>3.0.1</version>
  99. <scope>provided</scope>
  100. <exclusions>
  101. <exclusion>
  102. <artifactId>scala-library</artifactId>
  103. <groupId>org.scala-lang</groupId>
  104. </exclusion>
  105. <exclusion>
  106. <artifactId>scala-reflect</artifactId>
  107. <groupId>org.scala-lang</groupId>
  108. </exclusion>
  109. </exclusions>
  110. </dependency>
  111. <!-- /* Spring Boot Frameworks */-->
  112. <dependency>
  113. <groupId>org.projectlombok</groupId>
  114. <artifactId>lombok</artifactId>
  115. <version>1.18.16</version>
  116. <scope>provided</scope>
  117. </dependency>
  118. <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot</artifactId>
  121. <version>2.4.1</version>
  122. </dependency>
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-starter-web</artifactId>
  126. <exclusions>
  127. <exclusion>
  128. <groupId>org.springframework.boot</groupId>
  129. <artifactId>spring-boot-starter-logging</artifactId>
  130. </exclusion>
  131. </exclusions>
  132. </dependency>
  133. <dependency>
  134. <groupId>org.apache.logging.log4j</groupId>
  135. <artifactId>log4j-slf4j-impl</artifactId>
  136. </dependency>
  137. <dependency>
  138. <groupId>org.springframework.boot</groupId>
  139. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  140. <version>2.4.1</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>org.springframework.boot</groupId>
  144. <artifactId>spring-boot-maven-plugin</artifactId>
  145. <version>2.4.1</version>
  146. <exclusions>
  147. <exclusion>
  148. <artifactId>plexus-utils</artifactId>
  149. <groupId>org.codehaus.plexus</groupId>
  150. </exclusion>
  151. <exclusion>
  152. <artifactId>plexus-component-annotations</artifactId>
  153. <groupId>org.codehaus.plexus</groupId>
  154. </exclusion>
  155. <exclusion>
  156. <artifactId>maven-plugin-api</artifactId>
  157. <groupId>org.apache.maven</groupId>
  158. </exclusion>
  159. <exclusion>
  160. <artifactId>commons-io</artifactId>
  161. <groupId>commons-io</groupId>
  162. </exclusion>
  163. <exclusion>
  164. <artifactId>jna</artifactId>
  165. <groupId>net.java.dev.jna</groupId>
  166. </exclusion>
  167. </exclusions>
  168. </dependency>
  169. <dependency>
  170. <groupId>org.springframework.boot</groupId>
  171. <artifactId>spring-boot-starter-test</artifactId>
  172. <version>2.4.1</version>
  173. <scope>test</scope>
  174. </dependency>
  175. <!-- jwt-->
  176. <!-- https://mvnrepository.com/artifact/io.jsonwebtoken/jjwt -->
  177. <dependency>
  178. <groupId>io.jsonwebtoken</groupId>
  179. <artifactId>jjwt</artifactId>
  180. <version>0.9.1</version>
  181. </dependency>
  182. <!-- Parso and OpenCsv-->
  183. <!-- https://mvnrepository.com/artifact/com.epam/parso -->
  184. <dependency>
  185. <groupId>com.epam</groupId>
  186. <artifactId>parso</artifactId>
  187. <version>2.0.13</version>
  188. </dependency>
  189. <!-- https://mvnrepository.com/artifact/com.opencsv/opencsv -->
  190. <dependency>
  191. <groupId>com.opencsv</groupId>
  192. <artifactId>opencsv</artifactId>
  193. <version>5.3</version>
  194. <exclusions>
  195. <exclusion>
  196. <artifactId>commons-text</artifactId>
  197. <groupId>org.apache.commons</groupId>
  198. </exclusion>
  199. </exclusions>
  200. </dependency>
  201. <dependency>
  202. <groupId>org.apache.tomcat</groupId>
  203. <artifactId>tomcat-servlet-api</artifactId>
  204. <version>8.0.36</version>
  205. <scope>provided</scope>
  206. </dependency>
  207. <dependency>
  208. <groupId>org.springframework.boot</groupId>
  209. <artifactId>spring-boot-starter-jdbc</artifactId>
  210. </dependency>
  211. <dependency>
  212. <groupId>org.springframework.boot</groupId>
  213. <artifactId>spring-boot-starter-data-jpa</artifactId>
  214. </dependency>
  215. <dependency>
  216. <groupId>mysql</groupId>
  217. <artifactId>mysql-connector-java</artifactId>
  218. </dependency>
  219. <!-- https://mvnrepository.com/artifact/com.alibaba/fastjson -->
  220. <dependency>
  221. <groupId>com.alibaba</groupId>
  222. <artifactId>fastjson</artifactId>
  223. <version>1.2.75</version>
  224. </dependency>
  225. </dependencies>
  226. <build>
  227. <defaultGoal>compile</defaultGoal>
  228. <pluginManagement>
  229. <plugins>
  230. <!--<plugin>
  231. <groupId>net.alchim31.maven</groupId>
  232. <artifactId>scala-maven-plugin</artifactId>
  233. <version>3.3.1</version>
  234. </plugin>-->
  235. <plugin>
  236. <groupId>org.apache.maven.plugins</groupId>
  237. <artifactId>maven-compiler-plugin</artifactId>
  238. <configuration>
  239. <source>1.8</source>
  240. <target>1.8</target>
  241. </configuration>
  242. </plugin>
  243. </plugins>
  244. </pluginManagement>
  245. <plugins>
  246. <!--<plugin>
  247. <groupId>net.alchim31.maven</groupId>
  248. <artifactId>scala-maven-plugin</artifactId>
  249. <executions>
  250. <execution>
  251. <id>scala-compile-first</id>
  252. <phase>process-resources</phase>
  253. <goals>
  254. <goal>add-source</goal>
  255. <goal>compile</goal>
  256. </goals>
  257. </execution>
  258. <execution>
  259. <id>scala-test-compile</id>
  260. <phase>process-test-resources</phase>
  261. <goals>
  262. <goal>testCompile</goal>
  263. </goals>
  264. </execution>
  265. </executions>
  266. <configuration>
  267. <scalaVersion>2.12.10</scalaVersion>
  268. </configuration>
  269. </plugin>-->
  270. <plugin>
  271. <groupId>org.scala-tools</groupId>
  272. <artifactId>maven-scala-plugin</artifactId>
  273. <version>2.15.2</version>
  274. <executions>
  275. <execution>
  276. <id>scala-compile-first</id>
  277. <goals>
  278. <goal>compile</goal>
  279. </goals>
  280. <configuration>
  281. <!--includes是一个数组,包含要编译的code-->
  282. <includes>
  283. <include>**/*.scala</include>
  284. </includes>
  285. </configuration>
  286. </execution>
  287. </executions>
  288. </plugin>
  289. <plugin>
  290. <groupId>org.apache.maven.plugins</groupId>
  291. <artifactId>maven-compiler-plugin</artifactId>
  292. <version>3.1</version>
  293. <executions>
  294. <execution>
  295. <phase>compile</phase>
  296. <goals>
  297. <goal>compile</goal>
  298. </goals>
  299. </execution>
  300. </executions>
  301. </plugin>
  302. <plugin>
  303. <groupId>org.springframework.boot</groupId>
  304. <artifactId>spring-boot-maven-plugin</artifactId>
  305. </plugin>
  306. </plugins>
  307. </build>
  308. </project>