pom.xml 8.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252
  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>xmnk-sso</artifactId>
  6. <version>1.0</version>
  7. <!-- SpringBoot -->
  8. <parent>
  9. <groupId>org.springframework.boot</groupId>
  10. <artifactId>spring-boot-starter-parent</artifactId>
  11. <version>2.5.14</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. <sa-token.version>1.34.0</sa-token.version>
  18. <!-- 主类地址,一定要配置,否则打包时运行会出错 -->
  19. <java.run.main.class>com.pj.SspServerApplication</java.run.main.class>
  20. </properties>
  21. <dependencies>
  22. <!-- springboot依赖 -->
  23. <dependency>
  24. <groupId>org.springframework.boot</groupId>
  25. <artifactId>spring-boot-starter-web</artifactId>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-aop</artifactId>
  30. </dependency>
  31. <!-- springboot集成 mybatis-plus -->
  32. <dependency>
  33. <groupId>com.baomidou</groupId>
  34. <artifactId>mybatis-plus-boot-starter</artifactId>
  35. <version>3.3.2</version>
  36. </dependency>
  37. <!-- pagehelper分页插件 -->
  38. <dependency>
  39. <groupId>com.github.pagehelper</groupId>
  40. <artifactId>pagehelper-spring-boot-starter</artifactId>
  41. <version>1.2.13</version>
  42. </dependency>
  43. <!-- mysql -->
  44. <dependency>
  45. <groupId>mysql</groupId>
  46. <artifactId>mysql-connector-java</artifactId>
  47. </dependency>
  48. <!-- 阿里 druid 连接池 -->
  49. <dependency>
  50. <groupId>com.alibaba</groupId>
  51. <artifactId>druid-spring-boot-starter</artifactId>
  52. <version>1.1.10</version>
  53. </dependency>
  54. <!-- 神器lombok插件 -->
  55. <dependency>
  56. <groupId>org.projectlombok</groupId>
  57. <artifactId>lombok</artifactId>
  58. <optional>true</optional>
  59. </dependency>
  60. <!-- Sa-Token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
  61. <dependency>
  62. <groupId>cn.dev33</groupId>
  63. <artifactId>sa-token-spring-boot-starter</artifactId>
  64. <version>${sa-token.version}</version>
  65. </dependency>
  66. <!-- Sa-Token 插件:整合SSO -->
  67. <dependency>
  68. <groupId>cn.dev33</groupId>
  69. <artifactId>sa-token-sso</artifactId>
  70. <version>${sa-token.version}</version>
  71. </dependency>
  72. <!-- Sa-Token 整合 Redis (使用jackson序列化方式) -->
  73. <dependency>
  74. <groupId>cn.dev33</groupId>
  75. <artifactId>sa-token-dao-redis-jackson</artifactId>
  76. <version>${sa-token.version}</version>
  77. </dependency>
  78. <dependency>
  79. <groupId>org.apache.commons</groupId>
  80. <artifactId>commons-pool2</artifactId>
  81. </dependency>
  82. <!-- 视图引擎 -->
  83. <dependency>
  84. <groupId>org.springframework.boot</groupId>
  85. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  86. </dependency>
  87. <!-- 工具类大全 - 在线文档:https://hutool.cn/docs/#/ -->
  88. <dependency>
  89. <groupId>cn.hutool</groupId>
  90. <artifactId>hutool-all</artifactId>
  91. <version>5.6.4</version>
  92. </dependency>
  93. <!-- User-Agent 解析 -->
  94. <dependency>
  95. <groupId>eu.bitwalker</groupId>
  96. <artifactId>UserAgentUtils</artifactId>
  97. <version>1.21</version>
  98. </dependency>
  99. <!-- Forest 网络请求库:https://forest.dtflyx.com/ -->
  100. <dependency>
  101. <groupId>com.dtflys.forest</groupId>
  102. <artifactId>forest-spring-boot-starter</artifactId>
  103. <version>1.5.26</version>
  104. </dependency>
  105. <!-- Json解析 -->
  106. <dependency>
  107. <groupId>com.alibaba.fastjson2</groupId>
  108. <artifactId>fastjson2</artifactId>
  109. <version>2.0.5</version>
  110. </dependency>
  111. <!-- Bouncy Castle -->
  112. <dependency>
  113. <groupId>org.bouncycastle</groupId>
  114. <artifactId>bcprov-jdk15to18</artifactId>
  115. <version>1.69</version>
  116. </dependency>
  117. <!-- 热刷新 -->
  118. <!-- <dependency>
  119. <groupId>org.springframework.boot</groupId>
  120. <artifactId>spring-boot-devtools</artifactId>
  121. <scope>provided</scope>
  122. </dependency> -->
  123. <!-- ConfigurationProperties -->
  124. <dependency>
  125. <groupId>org.springframework.boot</groupId>
  126. <artifactId>spring-boot-configuration-processor</artifactId>
  127. <optional>true</optional>
  128. </dependency>
  129. <dependency>
  130. <groupId>com.alibaba</groupId>
  131. <artifactId>easyexcel</artifactId>
  132. <version>2.1.2</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>org.apache.poi</groupId>
  136. <artifactId>poi</artifactId>
  137. <version>4.1.2</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.poi</groupId>
  141. <artifactId>poi-ooxml</artifactId>
  142. <version>4.1.2</version>
  143. </dependency>
  144. <dependency>
  145. <groupId>org.apache.poi</groupId>
  146. <artifactId>poi-scratchpad</artifactId>
  147. <version>4.1.2</version>
  148. </dependency>
  149. <dependency>
  150. <groupId>log4j</groupId>
  151. <artifactId>log4j</artifactId>
  152. <version>1.2.17</version>
  153. </dependency>
  154. </dependencies>
  155. <!-- 构建配置 -->
  156. <build>
  157. <!-- 配置资源目录 -->
  158. <resources>
  159. <resource>
  160. <directory>src/main/java</directory>
  161. <includes>
  162. <include>**/*.xml</include>
  163. </includes>
  164. </resource>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <includes>
  168. <include>**/*.*</include>
  169. </includes>
  170. </resource>
  171. </resources>
  172. <!--整体打包-->
  173. <plugins>
  174. <plugin>
  175. <groupId>org.springframework.boot</groupId>
  176. <artifactId>spring-boot-maven-plugin</artifactId>
  177. </plugin>
  178. </plugins>
  179. <!--&lt;!&ndash;分开打包&ndash;&gt;
  180. <plugins>
  181. &lt;!&ndash; 打包jar文件时,配置manifest文件,加入lib包的jar依赖 &ndash;&gt;
  182. <plugin>
  183. <groupId>org.apache.maven.plugins</groupId>
  184. <artifactId>maven-jar-plugin</artifactId>
  185. <configuration>
  186. <archive>
  187. <manifest>
  188. <addClasspath>true</addClasspath>
  189. <classpathPrefix>lib/</classpathPrefix>
  190. <mainClass>${java.run.main.class}</mainClass>
  191. </manifest>
  192. </archive>
  193. </configuration>
  194. </plugin>
  195. &lt;!&ndash; 拷贝依赖的jar包到lib目录 &ndash;&gt;
  196. <plugin>
  197. <groupId>org.apache.maven.plugins</groupId>
  198. <artifactId>maven-dependency-plugin</artifactId>
  199. <executions>
  200. <execution>
  201. <id>copy</id>
  202. <phase>package</phase>
  203. <goals>
  204. <goal>copy-dependencies</goal>
  205. </goals>
  206. <configuration>
  207. <outputDirectory>
  208. ${project.build.directory}/lib
  209. </outputDirectory>
  210. </configuration>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. </plugins>-->
  215. </build>
  216. </project>