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