pom.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298
  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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <groupId>zhongzheng-official</groupId>
  6. <artifactId>zhongzheng-official</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>zhongzheng-official</name>
  9. <description>中正官網</description>
  10. <properties>
  11. <java.version>1.8</java.version>
  12. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  13. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  14. <maven-jar-plugin.version>3.1.1</maven-jar-plugin.version>
  15. <druid.version>1.2.4</druid.version>
  16. <knife4j.version>2.0.8</knife4j.version>
  17. <fastjson.version>1.2.75</fastjson.version>
  18. <oshi.version>5.6.0</oshi.version>
  19. <jna.version>5.7.0</jna.version>
  20. <poi.version>4.1.2</poi.version>
  21. <velocity.version>1.7</velocity.version>
  22. <jwt.version>0.9.1</jwt.version>
  23. <mybatis-plus.version>3.4.2</mybatis-plus.version>
  24. <hutool.version>5.5.8</hutool.version>
  25. <feign.version>2.2.6.RELEASE</feign.version>
  26. <feign-okhttp.version>11.0</feign-okhttp.version>
  27. <spring-boot-admin.version>2.3.1</spring-boot-admin.version>
  28. </properties>
  29. <dependencies>
  30. <!-- SpringBoot Web容器 -->
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-web</artifactId>
  34. <exclusions>
  35. <exclusion>
  36. <artifactId>spring-boot-starter-tomcat</artifactId>
  37. <groupId>org.springframework.boot</groupId>
  38. </exclusion>
  39. </exclusions>
  40. </dependency>
  41. <!-- web 容器使用 undertow 性能更强 -->
  42. <dependency>
  43. <groupId>org.springframework.boot</groupId>
  44. <artifactId>spring-boot-starter-undertow</artifactId>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework.boot</groupId>
  48. <artifactId>spring-boot-starter-freemarker</artifactId>
  49. </dependency>
  50. <!-- spring security 安全认证 -->
  51. <dependency>
  52. <groupId>org.springframework.boot</groupId>
  53. <artifactId>spring-boot-starter-security</artifactId>
  54. </dependency>
  55. <!--阿里数据库连接池 -->
  56. <dependency>
  57. <groupId>com.alibaba</groupId>
  58. <artifactId>druid-spring-boot-starter</artifactId>
  59. <version>${druid.version}</version>
  60. </dependency>
  61. <!-- OSS SDK 相关依赖 -->
  62. <dependency>
  63. <groupId>com.aliyun.oss</groupId>
  64. <artifactId>aliyun-sdk-oss</artifactId>
  65. <version>3.15.2</version>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.aliyun</groupId>
  69. <artifactId>dysmsapi20170525</artifactId>
  70. <version>2.0.7</version>
  71. </dependency>
  72. <!-- SpringBoot Websocket -->
  73. <dependency>
  74. <groupId>org.springframework.boot</groupId>
  75. <artifactId>spring-boot-starter-websocket</artifactId>
  76. </dependency>
  77. <!-- 阿里JSON解析器 -->
  78. <dependency>
  79. <groupId>com.alibaba</groupId>
  80. <artifactId>fastjson</artifactId>
  81. <version>${fastjson.version}</version>
  82. </dependency>
  83. <dependency>
  84. <groupId>cn.afterturn</groupId>
  85. <artifactId>easypoi-spring-boot-starter</artifactId>
  86. <version>4.1.0</version>
  87. </dependency>
  88. <dependency>
  89. <groupId>org.apache.poi</groupId>
  90. <artifactId>poi-ooxml-schemas</artifactId>
  91. <version>4.1.0</version>
  92. </dependency>
  93. <!--Token生成与解析-->
  94. <dependency>
  95. <groupId>io.jsonwebtoken</groupId>
  96. <artifactId>jjwt</artifactId>
  97. <version>${jwt.version}</version>
  98. </dependency>
  99. <!-- redis 缓存操作 -->
  100. <dependency>
  101. <groupId>org.springframework.boot</groupId>
  102. <artifactId>spring-boot-starter-data-redis</artifactId>
  103. </dependency>
  104. <!-- pool 对象池 -->
  105. <dependency>
  106. <groupId>org.apache.commons</groupId>
  107. <artifactId>commons-pool2</artifactId>
  108. </dependency>
  109. <dependency>
  110. <groupId>com.baomidou</groupId>
  111. <artifactId>mybatis-plus-boot-starter</artifactId>
  112. <version>${mybatis-plus.version}</version>
  113. <exclusions>
  114. <exclusion>
  115. <groupId>com.github.pagehelper</groupId>
  116. <artifactId>pagehelper</artifactId>
  117. </exclusion>
  118. </exclusions>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.baomidou</groupId>
  122. <artifactId>mybatis-plus-extension</artifactId>
  123. <version>${mybatis-plus.version}</version>
  124. </dependency>
  125. <!-- Mysql驱动包 -->
  126. <dependency>
  127. <groupId>mysql</groupId>
  128. <artifactId>mysql-connector-java</artifactId>
  129. </dependency>
  130. <dependency>
  131. <groupId>cn.hutool</groupId>
  132. <artifactId>hutool-all</artifactId>
  133. <version>${hutool.version}</version>
  134. </dependency>
  135. <dependency>
  136. <groupId>org.projectlombok</groupId>
  137. <artifactId>lombok</artifactId>
  138. </dependency>
  139. <dependency>
  140. <groupId>com.github.xiaoymin</groupId>
  141. <artifactId>knife4j-spring-boot-starter</artifactId>
  142. <version>2.0.9</version>
  143. </dependency>
  144. <!--常用工具类 -->
  145. <dependency>
  146. <groupId>org.apache.commons</groupId>
  147. <artifactId>commons-lang3</artifactId>
  148. </dependency>
  149. <dependency>
  150. <groupId>org.bouncycastle</groupId>
  151. <artifactId>bcprov-jdk18on</artifactId>
  152. <version>1.77</version> <!-- 请检查最新版本 -->
  153. </dependency>
  154. <dependency>
  155. <groupId>commons-codec</groupId>
  156. <artifactId>commons-codec</artifactId>
  157. <version>1.16.1</version> <!-- 检查最新版本 -->
  158. </dependency>
  159. <!-- SpringBoot 拦截器 -->
  160. <dependency>
  161. <groupId>org.springframework.boot</groupId>
  162. <artifactId>spring-boot-starter-aop</artifactId>
  163. </dependency>
  164. </dependencies>
  165. <dependencyManagement>
  166. <dependencies>
  167. <!-- SpringBoot的依赖配置-->
  168. <dependency>
  169. <groupId>org.springframework.boot</groupId>
  170. <artifactId>spring-boot-dependencies</artifactId>
  171. <version>2.2.13.RELEASE</version>
  172. <type>pom</type>
  173. <scope>import</scope>
  174. </dependency>
  175. </dependencies>
  176. </dependencyManagement>
  177. <build>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.springframework.boot</groupId>
  181. <artifactId>spring-boot-maven-plugin</artifactId>
  182. <version>2.1.1.RELEASE</version>
  183. <configuration>
  184. <fork>true</fork> <!-- 如果没有该配置,devtools不会生效 -->
  185. </configuration>
  186. <executions>
  187. <execution>
  188. <goals>
  189. <goal>repackage</goal>
  190. </goals>
  191. </execution>
  192. </executions>
  193. </plugin>
  194. <!-- 2. 资源插件(保持你的原有配置) -->
  195. <plugin>
  196. <groupId>org.apache.maven.plugins</groupId>
  197. <artifactId>maven-compiler-plugin</artifactId>
  198. <version>3.1</version>
  199. <configuration>
  200. <source>${java.version}</source>
  201. <target>${java.version}</target>
  202. <encoding>${project.build.sourceEncoding}</encoding>
  203. </configuration>
  204. </plugin>
  205. </plugins>
  206. <resources>
  207. <resource>
  208. <!--打包该目录下的 application.yml -->
  209. <directory>src/main/resources</directory>
  210. <!-- 启用过滤 即该资源中的变量将会被过滤器中的值替换 -->
  211. <filtering>true</filtering>
  212. </resource>
  213. </resources>
  214. </build>
  215. <repositories>
  216. <repository>
  217. <id>public</id>
  218. <name>aliyun nexus</name>
  219. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  220. <releases>
  221. <enabled>true</enabled>
  222. </releases>
  223. </repository>
  224. <repository>
  225. <id>com.e-iceblue</id>
  226. <url>http://repo.e-iceblue.cn/repository/maven-public/</url>
  227. </repository>
  228. </repositories>
  229. <pluginRepositories>
  230. <pluginRepository>
  231. <id>public</id>
  232. <name>aliyun nexus</name>
  233. <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
  234. <releases>
  235. <enabled>true</enabled>
  236. </releases>
  237. <snapshots>
  238. <enabled>false</enabled>
  239. </snapshots>
  240. </pluginRepository>
  241. </pluginRepositories>
  242. <profiles>
  243. <profile>
  244. <id>dev</id>
  245. <properties>
  246. <!-- 环境标识,需要与配置文件的名称相对应 -->
  247. <profiles.active>dev</profiles.active>
  248. <logging.level>debug</logging.level>
  249. </properties>
  250. <activation>
  251. <!-- 默认环境 -->
  252. <activeByDefault>true</activeByDefault>
  253. </activation>
  254. </profile>
  255. <profile>
  256. <id>prod</id>
  257. <properties>
  258. <profiles.active>prod</profiles.active>
  259. <logging.level>warn</logging.level>
  260. </properties>
  261. </profile>
  262. </profiles>
  263. </project>