pom.xml 15 KB

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