pom.xml 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <parent>
  5. <artifactId>pfr</artifactId>
  6. <groupId>com.jiayue.ssi</groupId>
  7. <version>1.0.0</version>
  8. </parent>
  9. <modelVersion>4.0.0</modelVersion>
  10. <artifactId>backend</artifactId>
  11. <version>1.0.0</version>
  12. <name>backend</name>
  13. <repositories>
  14. <repository>
  15. <id>jiayue-releases</id>
  16. <name>嘉越云仓库</name>
  17. <url>http://49.4.68.219:8888/repository/jiayue-releases/</url>
  18. </repository>
  19. </repositories>
  20. <properties>
  21. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  22. <java.version>1.8</java.version>
  23. <spring-boot.version>2.2.1.RELEASE</spring-boot.version>
  24. <spring-platform.version>Cairo-SR8</spring-platform.version>
  25. <spring-boot-admin.version>2.2.0</spring-boot-admin.version>
  26. <jjwt.version>0.9.0</jjwt.version>
  27. <javajwt.version>3.4.0</javajwt.version>
  28. <slf4j.version>1.7.26</slf4j.version>
  29. <commons-lang3.version>3.9</commons-lang3.version>
  30. <byte-buddy.version>1.8.17</byte-buddy.version>
  31. <jackson-databind.version>2.9.8</jackson-databind.version>
  32. <!--<mysql.connector.version>5.1.46</mysql.connector.version>-->
  33. <mysql.connector.version>8.0.18</mysql.connector.version>
  34. <hibernate.version>6.0.14.Final</hibernate.version>
  35. <jasypt-boot.version>3.0.3</jasypt-boot.version>
  36. <commons-pool2.version>2.7.0</commons-pool2.version>
  37. <jedis.version>3.1.0</jedis.version>
  38. <quartz.version>2.3.1</quartz.version>
  39. <hutool.version>5.8.12</hutool.version>
  40. <knife4j.version>2.0.1</knife4j.version>
  41. <ttl.version>2.11.2</ttl.version>
  42. <swagger.core.version>1.5.22</swagger.core.version>
  43. <mybatis-plus-generator.version>3.1.1</mybatis-plus-generator.version>
  44. <maven.compiler.source>1.8</maven.compiler.source>
  45. <maven.compiler.target>1.8</maven.compiler.target>
  46. <aviator.version>5.0.0</aviator.version>
  47. </properties>
  48. <dependencies>
  49. <dependency>
  50. <groupId>org.bouncycastle</groupId>
  51. <artifactId>bcpkix-jdk15on</artifactId>
  52. <version>1.68</version>
  53. </dependency>
  54. <dependency>
  55. <groupId>org.springframework.boot</groupId>
  56. <artifactId>spring-boot-dependencies</artifactId>
  57. <version>${spring-boot.version}</version>
  58. <type>pom</type>
  59. </dependency>
  60. <!--web 模块-->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-web</artifactId>
  64. <version>${spring-boot.version}</version>
  65. <exclusions>
  66. <!--排除tomcat依赖-->
  67. <exclusion>
  68. <artifactId>spring-boot-starter-tomcat</artifactId>
  69. <groupId>org.springframework.boot</groupId>
  70. </exclusion>
  71. </exclusions>
  72. </dependency>
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-undertow</artifactId>
  76. </dependency>
  77. <!--mysql 驱动-->
  78. <dependency>
  79. <groupId>mysql</groupId>
  80. <artifactId>mysql-connector-java</artifactId>
  81. <version>${mysql.connector.version}</version>
  82. </dependency>
  83. <!--swagger 最新依赖内置版本-->
  84. <dependency>
  85. <groupId>io.swagger</groupId>
  86. <artifactId>swagger-models</artifactId>
  87. <version>${swagger.core.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>io.swagger</groupId>
  91. <artifactId>swagger-annotations</artifactId>
  92. <version>${swagger.core.version}</version>
  93. </dependency>
  94. <!-- <dependency>-->
  95. <!-- <groupId>io.jsonwebtoken</groupId>-->
  96. <!-- <artifactId>jjwt</artifactId>-->
  97. <!-- <version>${jjwt.version}</version>-->
  98. <!-- </dependency>-->
  99. <dependency>
  100. <groupId>cn.hutool</groupId>
  101. <artifactId>hutool-all</artifactId>
  102. <version>5.8.18</version>
  103. </dependency>
  104. <!-- Quartz定时任务 -->
  105. <dependency>
  106. <groupId>org.springframework.boot</groupId>
  107. <artifactId>spring-boot-starter-quartz</artifactId>
  108. </dependency>
  109. <!-- MybatisPlus -->
  110. <dependency>
  111. <groupId>com.baomidou</groupId>
  112. <artifactId>mybatis-plus-boot-starter</artifactId>
  113. <version>3.4.1</version>
  114. </dependency>
  115. <!-- 验证码 -->
  116. <dependency>
  117. <groupId>com.github.penggle</groupId>
  118. <artifactId>kaptcha</artifactId>
  119. <version>2.3.2</version>
  120. </dependency>
  121. <!-- druid 连接池 -->
  122. <dependency>
  123. <groupId>com.alibaba</groupId>
  124. <artifactId>druid-spring-boot-starter</artifactId>
  125. <version>1.1.22</version>
  126. </dependency>
  127. <!-- <dependency>-->
  128. <!-- <groupId>org.springframework.boot</groupId>-->
  129. <!-- <artifactId>spring-boot-starter-security</artifactId>-->
  130. <!-- </dependency>-->
  131. <dependency>
  132. <groupId>cn.dev33</groupId>
  133. <artifactId>sa-token-spring-boot-starter</artifactId>
  134. <version>1.36.0</version>
  135. </dependency>
  136. <!-- Sa-Token 整合 jwt -->
  137. <dependency>
  138. <groupId>cn.dev33</groupId>
  139. <artifactId>sa-token-jwt</artifactId>
  140. <version>1.36.0</version>
  141. </dependency>
  142. <dependency>
  143. <groupId>junit</groupId>
  144. <artifactId>junit</artifactId>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.jsoup</groupId>
  148. <artifactId>jsoup</artifactId>
  149. <version>1.10.2</version>
  150. </dependency>
  151. <dependency>
  152. <groupId>org.projectlombok</groupId>
  153. <artifactId>lombok</artifactId>
  154. </dependency>
  155. <dependency>
  156. <groupId>org.springframework.boot</groupId>
  157. <artifactId>spring-boot-starter-test</artifactId>
  158. <scope>test</scope>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.github.pagehelper</groupId>
  162. <artifactId>pagehelper-spring-boot-starter</artifactId>
  163. <version>1.3.0</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>org.apache.commons</groupId>
  167. <artifactId>commons-lang3</artifactId>
  168. <version>3.12.0</version>
  169. </dependency>
  170. <!--配置文件处理器-->
  171. <dependency>
  172. <groupId>org.springframework.boot</groupId>
  173. <artifactId>spring-boot-configuration-processor</artifactId>
  174. <optional>true</optional>
  175. </dependency>
  176. <dependency>
  177. <groupId>wei.yigulu</groupId>
  178. <artifactId>protocol-all</artifactId>
  179. <version>2.3.18</version>
  180. </dependency>
  181. <dependency>
  182. <groupId>com.github.whvcse</groupId>
  183. <artifactId>easy-captcha</artifactId>
  184. <version>1.6.2</version>
  185. </dependency>
  186. <dependency>
  187. <groupId>org.springframework.boot</groupId>
  188. <artifactId>spring-boot-starter-mail</artifactId>
  189. </dependency>
  190. <dependency>
  191. <groupId>commons-io</groupId>
  192. <artifactId>commons-io</artifactId>
  193. <version>2.6</version>
  194. </dependency>
  195. <!-- AOP依赖 -->
  196. <dependency>
  197. <groupId>org.springframework.boot</groupId>
  198. <artifactId>spring-boot-starter-aop</artifactId>
  199. </dependency>
  200. <dependency>
  201. <groupId>org.bouncycastle</groupId>
  202. <artifactId>bcprov-jdk15to18</artifactId>
  203. <version>1.72</version>
  204. </dependency>
  205. <!-- 获取系统信息 -->
  206. <dependency>
  207. <groupId>com.github.oshi</groupId>
  208. <artifactId>oshi-core</artifactId>
  209. <version>6.4.0</version>
  210. </dependency>
  211. <!-- 解析客户端操作系统、浏览器等 -->
  212. <dependency>
  213. <groupId>eu.bitwalker</groupId>
  214. <artifactId>UserAgentUtils</artifactId>
  215. <version>1.21</version>
  216. </dependency>
  217. <!-- 阿里JSON解析器 -->
  218. <dependency>
  219. <groupId>com.alibaba.fastjson2</groupId>
  220. <artifactId>fastjson2</artifactId>
  221. <version>2.0.23</version>
  222. </dependency>
  223. <dependency>
  224. <groupId>org.springframework.boot</groupId>
  225. <artifactId>spring-boot-starter-websocket</artifactId>
  226. </dependency>
  227. <dependency>
  228. <groupId>net.sf.ehcache</groupId>
  229. <artifactId>ehcache</artifactId>
  230. </dependency>
  231. <dependency>
  232. <groupId>com.googlecode.aviator</groupId>
  233. <artifactId>aviator</artifactId>
  234. <version>${aviator.version}</version>
  235. </dependency>
  236. <dependency>
  237. <groupId>net.sf.json-lib</groupId>
  238. <artifactId>json-lib</artifactId>
  239. <version>2.4</version>
  240. <classifier>jdk15</classifier>
  241. </dependency>
  242. </dependencies>
  243. <build>
  244. <finalName>ssi</finalName>
  245. <plugins>
  246. <!--跳过test类-->
  247. <plugin>
  248. <groupId>org.apache.maven.plugins</groupId>
  249. <artifactId>maven-surefire-plugin</artifactId>
  250. <version>2.21.0</version>
  251. <configuration>
  252. <skipTests>true</skipTests>
  253. </configuration>
  254. </plugin>
  255. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  256. <plugin>
  257. <groupId>org.apache.maven.plugins</groupId>
  258. <artifactId>maven-clean-plugin</artifactId>
  259. <version>3.1.0</version>
  260. <configuration>
  261. <filesets>
  262. <fileset>
  263. <!-- 前端资源目录,即:存放前端包目录-->
  264. <directory>src/main/resources/static</directory>
  265. </fileset>
  266. <fileset>
  267. <!-- Vue项目打包自动生成的dist目录 -->
  268. <directory>../ui/dist</directory>
  269. </fileset>
  270. </filesets>
  271. </configuration>
  272. </plugin>
  273. <!--frontend-maven-plugin为项目本地下载/安装Node和NPM,运行npm install命令-->
  274. <plugin>
  275. <groupId>com.github.eirslett</groupId>
  276. <artifactId>frontend-maven-plugin</artifactId>
  277. <version>1.6</version>
  278. <configuration>
  279. <workingDirectory>../ui</workingDirectory>
  280. <nodeVersion>v16.13.1</nodeVersion>
  281. <npmVersion>8.1.2</npmVersion>
  282. <nodeDownloadRoot>https://npm.taobao.org/mirrors/node/</nodeDownloadRoot>
  283. <npmDownloadRoot>https://registry.npm.taobao.org/npm/-/</npmDownloadRoot>
  284. </configuration>
  285. <executions>
  286. <execution>
  287. <id>install node and npm</id>
  288. <goals>
  289. <goal>install-node-and-npm</goal>
  290. </goals>
  291. </execution>
  292. <!-- Install all project dependencies -->
  293. <execution>
  294. <id>npm install</id>
  295. <goals>
  296. <goal>npm</goal>
  297. </goals>
  298. <phase>generate-resources</phase>
  299. <configuration>
  300. <arguments>install</arguments>
  301. </configuration>
  302. </execution>
  303. <!-- Build and minify static files -->
  304. <execution>
  305. <id>npm run build</id>
  306. <goals>
  307. <goal>npm</goal>
  308. </goals>
  309. <configuration>
  310. <arguments>run build:prod</arguments>
  311. </configuration>
  312. </execution>
  313. </executions>
  314. </plugin>
  315. <!--资源插件,主要为了从前端项目里复制打包好的文件到springboot项目-->
  316. <plugin>
  317. <groupId>org.apache.maven.plugins</groupId>
  318. <artifactId>maven-resources-plugin</artifactId>
  319. <version>3.1.0</version>
  320. <executions>
  321. <execution>
  322. <id>copy static</id>
  323. <phase>generate-resources</phase>
  324. <goals>
  325. <goal>copy-resources</goal>
  326. </goals>
  327. <configuration>
  328. <!-- 复制前端打包文件到这里 -->
  329. <outputDirectory>src/main/resources/static</outputDirectory>
  330. <overwrite>true</overwrite>
  331. <resources>
  332. <resource>
  333. <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
  334. <directory>${project.parent.basedir}/ui/dist</directory>
  335. <includes>
  336. <!-- 具体根据实际前端代码、及目录结构进行配置-->
  337. <include>assets/</include>
  338. <include>favicon.ico</include>
  339. <include>index.html</include>
  340. </includes>
  341. </resource>
  342. </resources>
  343. </configuration>
  344. </execution>
  345. </executions>
  346. </plugin>
  347. <plugin>
  348. <groupId>org.springframework.boot</groupId>
  349. <artifactId>spring-boot-maven-plugin</artifactId>
  350. <version>2.1.7.RELEASE</version>
  351. <configuration>
  352. <!--控制是否启用支持Linux下service方式运行-->
  353. <executable>true</executable>
  354. <!--打包后自动运行程序-->
  355. <!-- <includeSystemScope>true</includeSystemScope>-->
  356. </configuration>
  357. <executions>
  358. <execution>
  359. <goals>
  360. <goal>build-info</goal>
  361. <goal>repackage</goal>
  362. </goals>
  363. </execution>
  364. </executions>
  365. </plugin>
  366. </plugins>
  367. </build>
  368. <!--上传配置 必须 -->
  369. <distributionManagement>
  370. <repository>
  371. <id>jiayue-releases</id>
  372. <name>Nexus Release Repository</name>
  373. <url>http://49.4.68.219:8888/repository/jiayue-releases/</url>
  374. </repository>
  375. <snapshotRepository>
  376. <id>jiayue-snapshots</id>
  377. <name>Nexus Snapshot Repository</name>
  378. <url>http://49.4.68.219:8888/repository/jiayue-snapshots/</url>
  379. </snapshotRepository>
  380. </distributionManagement>
  381. </project>