pom.xml 12 KB

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