pom.xml 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  3. <modelVersion>4.0.0</modelVersion>
  4. <groupId>com.pj</groupId>
  5. <artifactId>sp-server</artifactId>
  6. <version>0.0.1-SNAPSHOT</version>
  7. <!-- SpringBoot -->
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>2.3.3.RELEASE</version>
  12. </parent>
  13. <!-- 指定一些属性 -->
  14. <properties>
  15. <java.version>1.8</java.version>
  16. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  17. <!-- 主类地址,一定要配置,否则打包时运行会出错 -->
  18. <java.run.main.class>com.pj.SpServerApplication</java.run.main.class>
  19. </properties>
  20. <dependencies>
  21. <!-- springboot依赖 -->
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-web</artifactId>
  25. <exclusions>
  26. <exclusion>
  27. <groupId>org.apache.logging.log4j</groupId>
  28. <artifactId>log4j-api</artifactId>
  29. </exclusion>
  30. <exclusion>
  31. <groupId>org.apache.logging.log4j</groupId>
  32. <artifactId>log4j-to-slf4j</artifactId>
  33. </exclusion>
  34. </exclusions>
  35. </dependency>
  36. <dependency>
  37. <groupId>org.springframework.boot</groupId>
  38. <artifactId>spring-boot-starter-aop</artifactId>
  39. </dependency>
  40. <!-- springboot集成 mybatis-plus -->
  41. <dependency>
  42. <groupId>com.baomidou</groupId>
  43. <artifactId>mybatis-plus-boot-starter</artifactId>
  44. <version>3.4.2</version>
  45. </dependency>
  46. <!-- pagehelper分页插件 -->
  47. <dependency>
  48. <groupId>com.github.pagehelper</groupId>
  49. <artifactId>pagehelper-spring-boot-starter</artifactId>
  50. <version>1.2.13</version>
  51. </dependency>
  52. <dependency>
  53. <groupId>org.springframework.retry</groupId>
  54. <artifactId>spring-retry</artifactId>
  55. </dependency>
  56. <!-- mysql -->
  57. <dependency>
  58. <groupId>mysql</groupId>
  59. <artifactId>mysql-connector-java</artifactId>
  60. </dependency>
  61. <!-- 阿里 druid 连接池 -->
  62. <dependency>
  63. <groupId>com.alibaba</groupId>
  64. <artifactId>druid-spring-boot-starter</artifactId>
  65. <version>1.1.10</version>
  66. </dependency>
  67. <!-- 神器lombok插件 -->
  68. <dependency>
  69. <groupId>org.projectlombok</groupId>
  70. <artifactId>lombok</artifactId>
  71. <optional>true</optional>
  72. </dependency>
  73. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  74. <dependency>
  75. <groupId>cn.dev33</groupId>
  76. <artifactId>sa-token-spring-boot-starter</artifactId>
  77. <version>1.28.0</version>
  78. </dependency>
  79. <!-- Sa-Token 整合 Redis (使用jackson序列化方式) -->
  80. <dependency>
  81. <groupId>cn.dev33</groupId>
  82. <artifactId>sa-token-dao-redis-jackson</artifactId>
  83. <version>1.28.0</version>
  84. <exclusions>
  85. <exclusion>
  86. <groupId>io.lettuce</groupId>
  87. <artifactId>lettuce-core</artifactId>
  88. </exclusion>
  89. </exclusions>
  90. </dependency>
  91. <dependency>
  92. <groupId>redis.clients</groupId>
  93. <artifactId>jedis</artifactId>
  94. </dependency>
  95. <!-- 工具类大全 - 在线文档:https://hutool.cn/docs/#/ -->
  96. <dependency>
  97. <groupId>cn.hutool</groupId>
  98. <artifactId>hutool-all</artifactId>
  99. <version>5.7.15</version>
  100. </dependency>
  101. <!-- OkHttps网络请求库: http://okhttps.ejlchina.com/ -->
  102. <dependency>
  103. <groupId>com.ejlchina</groupId>
  104. <artifactId>okhttps</artifactId>
  105. <version>3.2.0</version>
  106. </dependency>
  107. <!-- redis java客户端jar包 -->
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-data-redis</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.apache.commons</groupId>
  114. <artifactId>commons-pool2</artifactId>
  115. </dependency>
  116. <!--Alijson插件-->
  117. <dependency>
  118. <groupId>com.alibaba</groupId>
  119. <artifactId>fastjson</artifactId>
  120. <version>2.0.6</version>
  121. </dependency>
  122. <!-- ConfigurationProperties -->
  123. <dependency>
  124. <groupId>org.springframework.boot</groupId>
  125. <artifactId>spring-boot-configuration-processor</artifactId>
  126. <optional>true</optional>
  127. </dependency>
  128. <dependency>
  129. <groupId>com.fasterxml.jackson.dataformat</groupId>
  130. <artifactId>jackson-dataformat-xml</artifactId>
  131. <version>2.9.7</version>
  132. </dependency>
  133. <dependency>
  134. <groupId>com.alibaba</groupId>
  135. <artifactId>easyexcel</artifactId>
  136. <version>3.0.5</version>
  137. </dependency>
  138. <dependency>
  139. <groupId>com.google.guava</groupId>
  140. <artifactId>guava</artifactId>
  141. <version>20.0</version>
  142. </dependency>
  143. <!-- AES加密解密 PKCS7Padding-->
  144. <dependency>
  145. <groupId>org.bouncycastle</groupId>
  146. <artifactId>bcprov-jdk15on</artifactId>
  147. <version>1.68</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>com.google.guava</groupId>
  151. <artifactId>guava</artifactId>
  152. <version>20.0</version>
  153. </dependency>
  154. <!-- httpclient -->
  155. <dependency>
  156. <groupId>org.apache.httpcomponents</groupId>
  157. <artifactId>httpclient</artifactId>
  158. <version>4.5.13</version>
  159. </dependency>
  160. <dependency>
  161. <groupId>com.google.code.gson</groupId>
  162. <artifactId>gson</artifactId>
  163. <version>2.9.0</version>
  164. </dependency>
  165. <dependency>
  166. <groupId>cn.com.btxc.micro.uni.openapi</groupId>
  167. <artifactId>encrypt-rsa-md5</artifactId>
  168. <version>1.0.3</version>
  169. <scope>system</scope>
  170. <systemPath>${project.basedir}/src/main/resources/lib/encrypt-rsa-md5-1.0.3.jar</systemPath>
  171. </dependency>
  172. <dependency>
  173. <groupId>cn.com.btxc.micro.uni.openapi</groupId>
  174. <artifactId>encrypt-base</artifactId>
  175. <version>1.0.3</version>
  176. <scope>system</scope>
  177. <systemPath>${project.basedir}/src/main/resources/lib/encrypt-base-1.0.3.jar</systemPath>
  178. </dependency>
  179. <dependency>
  180. <groupId>com.github.whvcse</groupId>
  181. <artifactId>easy-captcha</artifactId>
  182. <version>1.6.2</version>
  183. </dependency>
  184. <dependency>
  185. <groupId>net.dreamlu</groupId>
  186. <artifactId>mica-ip2region</artifactId>
  187. <version>2.5.6</version>
  188. </dependency>
  189. </dependencies>
  190. <!-- 构建配置 -->
  191. <build>
  192. <!-- 配置资源目录 -->
  193. <finalName>server</finalName>
  194. <resources>
  195. <resource>
  196. <directory>src/main/java</directory>
  197. <includes>
  198. <include>**/*.xml</include>
  199. </includes>
  200. </resource>
  201. <resource>
  202. <directory>src/main/resources</directory>
  203. <includes>
  204. <include>**/*.*</include>
  205. </includes>
  206. </resource>
  207. </resources>
  208. <plugins>
  209. <!-- 打包jar文件时,配置manifest文件,加入lib包的jar依赖 -->
  210. <plugin>
  211. <groupId>org.springframework.boot</groupId>
  212. <artifactId>spring-boot-maven-plugin</artifactId>
  213. <configuration>
  214. <includeSystemScope>true</includeSystemScope>
  215. </configuration>
  216. <executions>
  217. <execution>
  218. <goals>
  219. <goal>repackage</goal>
  220. </goals>
  221. </execution>
  222. </executions>
  223. </plugin>
  224. <!-- 拷贝依赖的jar包到lib目录 -->
  225. <plugin>
  226. <groupId>org.apache.maven.plugins</groupId>
  227. <artifactId>maven-dependency-plugin</artifactId>
  228. <executions>
  229. <execution>
  230. <id>copy</id>
  231. <phase>package</phase>
  232. <goals>
  233. <goal>copy-dependencies</goal>
  234. </goals>
  235. <configuration>
  236. <outputDirectory>
  237. ${project.build.directory}/lib
  238. </outputDirectory>
  239. </configuration>
  240. </execution>
  241. </executions>
  242. </plugin>
  243. </plugins>
  244. </build>
  245. </project>