pom.xml 16 KB

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