pom.xml 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  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>ssi</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>${hutool.version}</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>junit</groupId>
  125. <artifactId>junit</artifactId>
  126. </dependency>
  127. <dependency>
  128. <groupId>org.jsoup</groupId>
  129. <artifactId>jsoup</artifactId>
  130. <version>1.10.2</version>
  131. </dependency>
  132. <dependency>
  133. <groupId>org.projectlombok</groupId>
  134. <artifactId>lombok</artifactId>
  135. </dependency>
  136. <dependency>
  137. <groupId>org.springframework.boot</groupId>
  138. <artifactId>spring-boot-starter-test</artifactId>
  139. <scope>test</scope>
  140. </dependency>
  141. <dependency>
  142. <groupId>com.github.pagehelper</groupId>
  143. <artifactId>pagehelper-spring-boot-starter</artifactId>
  144. <version>1.3.0</version>
  145. </dependency>
  146. <dependency>
  147. <groupId>org.apache.commons</groupId>
  148. <artifactId>commons-lang3</artifactId>
  149. <version>3.12.0</version>
  150. </dependency>
  151. <!--配置文件处理器-->
  152. <dependency>
  153. <groupId>org.springframework.boot</groupId>
  154. <artifactId>spring-boot-configuration-processor</artifactId>
  155. <optional>true</optional>
  156. </dependency>
  157. <!-- &lt;!&ndash;jasypt配置文件加解密&ndash;&gt;-->
  158. <!-- <dependency>-->
  159. <!-- <groupId>com.github.ulisesbocchio</groupId>-->
  160. <!-- <artifactId>jasypt-spring-boot-starter</artifactId>-->
  161. <!-- <version>${jasypt-boot.version}</version>-->
  162. <!-- </dependency>-->
  163. <dependency>
  164. <groupId>com.github.whvcse</groupId>
  165. <artifactId>easy-captcha</artifactId>
  166. <version>1.6.2</version>
  167. </dependency>
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-starter-mail</artifactId>
  171. </dependency>
  172. <dependency>
  173. <groupId>commons-io</groupId>
  174. <artifactId>commons-io</artifactId>
  175. <version>2.6</version>
  176. </dependency>
  177. <!-- AOP依赖 -->
  178. <dependency>
  179. <groupId>org.springframework.boot</groupId>
  180. <artifactId>spring-boot-starter-aop</artifactId>
  181. </dependency>
  182. <dependency>
  183. <groupId>org.bouncycastle</groupId>
  184. <artifactId>bcprov-jdk15to18</artifactId>
  185. <version>1.72</version>
  186. </dependency>
  187. <!-- 获取系统信息 -->
  188. <dependency>
  189. <groupId>com.github.oshi</groupId>
  190. <artifactId>oshi-core</artifactId>
  191. <version>6.4.0</version>
  192. </dependency>
  193. <dependency>
  194. <groupId>net.java.dev.jna</groupId>
  195. <artifactId>jna</artifactId>
  196. <version>5.13.0</version>
  197. </dependency>
  198. <dependency>
  199. <groupId>net.java.dev.jna</groupId>
  200. <artifactId>jna-platform</artifactId>
  201. <version>5.13.0</version>
  202. </dependency>
  203. <!-- 解析客户端操作系统、浏览器等 -->
  204. <dependency>
  205. <groupId>eu.bitwalker</groupId>
  206. <artifactId>UserAgentUtils</artifactId>
  207. <version>1.21</version>
  208. </dependency>
  209. <!-- 阿里JSON解析器 -->
  210. <dependency>
  211. <groupId>com.alibaba.fastjson2</groupId>
  212. <artifactId>fastjson2</artifactId>
  213. <version>2.0.23</version>
  214. </dependency>
  215. <dependency>
  216. <groupId>org.springframework.boot</groupId>
  217. <artifactId>spring-boot-starter-websocket</artifactId>
  218. </dependency>
  219. </dependencies>
  220. <build>
  221. <finalName>ssi</finalName>
  222. <plugins>
  223. <!--跳过test类-->
  224. <plugin>
  225. <groupId>org.apache.maven.plugins</groupId>
  226. <artifactId>maven-surefire-plugin</artifactId>
  227. <version>2.21.0</version>
  228. <configuration>
  229. <skipTests>true</skipTests>
  230. </configuration>
  231. </plugin>
  232. <!-- 插件maven-clean-plugin,用于在编译前,清除之前编译的文件、文件夹等,避免残留之前的内容 -->
  233. <plugin>
  234. <groupId>org.apache.maven.plugins</groupId>
  235. <artifactId>maven-clean-plugin</artifactId>
  236. <version>3.1.0</version>
  237. <configuration>
  238. <filesets>
  239. <fileset>
  240. <!-- 前端资源目录,即:存放前端包目录-->
  241. <directory>src/main/resources/static</directory>
  242. </fileset>
  243. <fileset>
  244. <!-- Vue项目打包自动生成的dist目录 -->
  245. <directory>../ui/dist</directory>
  246. </fileset>
  247. </filesets>
  248. </configuration>
  249. </plugin>
  250. <!--frontend-maven-plugin为项目本地下载/安装Node和NPM,运行npm install命令-->
  251. <plugin>
  252. <groupId>com.github.eirslett</groupId>
  253. <artifactId>frontend-maven-plugin</artifactId>
  254. <version>1.6</version>
  255. <configuration>
  256. <workingDirectory>../ui</workingDirectory>
  257. <nodeVersion>v16.13.1</nodeVersion>
  258. <npmVersion>8.1.2</npmVersion>
  259. <nodeDownloadRoot>https://npm.taobao.org/mirrors/node/</nodeDownloadRoot>
  260. <npmDownloadRoot>https://registry.npm.taobao.org/npm/-/</npmDownloadRoot>
  261. </configuration>
  262. <executions>
  263. <execution>
  264. <id>install node and npm</id>
  265. <goals>
  266. <goal>install-node-and-npm</goal>
  267. </goals>
  268. </execution>
  269. <!-- Install all project dependencies -->
  270. <execution>
  271. <id>npm install</id>
  272. <goals>
  273. <goal>npm</goal>
  274. </goals>
  275. <phase>generate-resources</phase>
  276. <configuration>
  277. <arguments>install</arguments>
  278. </configuration>
  279. </execution>
  280. <!-- Build and minify static files -->
  281. <execution>
  282. <id>npm run build</id>
  283. <goals>
  284. <goal>npm</goal>
  285. </goals>
  286. <configuration>
  287. <arguments>run build:prod</arguments>
  288. </configuration>
  289. </execution>
  290. </executions>
  291. </plugin>
  292. <!--资源插件,主要为了从前端项目里复制打包好的文件到springboot项目-->
  293. <plugin>
  294. <groupId>org.apache.maven.plugins</groupId>
  295. <artifactId>maven-resources-plugin</artifactId>
  296. <version>3.1.0</version>
  297. <executions>
  298. <execution>
  299. <id>copy static</id>
  300. <phase>generate-resources</phase>
  301. <goals>
  302. <goal>copy-resources</goal>
  303. </goals>
  304. <configuration>
  305. <!-- 复制前端打包文件到这里 -->
  306. <outputDirectory>src/main/resources/static</outputDirectory>
  307. <overwrite>true</overwrite>
  308. <resources>
  309. <resource>
  310. <!-- 从前端打包的目录dist进行指定文件、文件夹内容的复制-->
  311. <directory>${project.parent.basedir}/ui/dist</directory>
  312. <includes>
  313. <!-- 具体根据实际前端代码、及目录结构进行配置-->
  314. <include>assets/</include>
  315. <include>favicon.ico</include>
  316. <include>index.html</include>
  317. </includes>
  318. </resource>
  319. </resources>
  320. </configuration>
  321. </execution>
  322. </executions>
  323. </plugin>
  324. <plugin>
  325. <groupId>org.springframework.boot</groupId>
  326. <artifactId>spring-boot-maven-plugin</artifactId>
  327. <version>2.1.7.RELEASE</version>
  328. <configuration>
  329. <!--控制是否启用支持Linux下service方式运行-->
  330. <executable>true</executable>
  331. <!--打包后自动运行程序-->
  332. <!-- <includeSystemScope>true</includeSystemScope>-->
  333. </configuration>
  334. <executions>
  335. <execution>
  336. <goals>
  337. <goal>build-info</goal>
  338. <goal>repackage</goal>
  339. </goals>
  340. </execution>
  341. </executions>
  342. </plugin>
  343. </plugins>
  344. </build>
  345. <!--上传配置 必须 -->
  346. <distributionManagement>
  347. <repository>
  348. <id>jiayue-releases</id>
  349. <name>Nexus Release Repository</name>
  350. <url>http://49.4.68.219:8888/repository/jiayue-releases/</url>
  351. </repository>
  352. <snapshotRepository>
  353. <id>jiayue-snapshots</id>
  354. <name>Nexus Snapshot Repository</name>
  355. <url>http://49.4.68.219:8888/repository/jiayue-snapshots/</url>
  356. </snapshotRepository>
  357. </distributionManagement>
  358. </project>