pom.xml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <project xmlns="http://maven.apache.org/POM/4.0.0"
  3. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  4. xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  5. <modelVersion>4.0.0</modelVersion>
  6. <parent>
  7. <artifactId>oss</artifactId>
  8. <groupId>cn.reghao.oss</groupId>
  9. <version>1.0.0</version>
  10. </parent>
  11. <artifactId>oss-console</artifactId>
  12. <version>1.0.0</version>
  13. <packaging>jar</packaging>
  14. <properties>
  15. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  16. <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  17. <maven.compiler.source>11</maven.compiler.source>
  18. <maven.compiler.target>11</maven.compiler.target>
  19. </properties>
  20. <dependencyManagement>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-dependencies</artifactId>
  25. <version>2.3.9.RELEASE</version>
  26. <type>pom</type>
  27. <scope>import</scope>
  28. </dependency>
  29. </dependencies>
  30. </dependencyManagement>
  31. <dependencies>
  32. <dependency>
  33. <groupId>cn.reghao.jutil</groupId>
  34. <artifactId>jdk</artifactId>
  35. <version>1.0.0-SNAPSHOT</version>
  36. </dependency>
  37. <dependency>
  38. <groupId>cn.reghao.jutil</groupId>
  39. <artifactId>tool</artifactId>
  40. <version>1.0.0-SNAPSHOT</version>
  41. </dependency>
  42. <dependency>
  43. <groupId>org.projectlombok</groupId>
  44. <artifactId>lombok</artifactId>
  45. <version>1.18.0</version>
  46. <scope>provided</scope>
  47. </dependency>
  48. <dependency>
  49. <groupId>ch.qos.logback</groupId>
  50. <artifactId>logback-core</artifactId>
  51. <version>1.2.3</version>
  52. </dependency>
  53. <dependency>
  54. <groupId>ch.qos.logback</groupId>
  55. <artifactId>logback-classic</artifactId>
  56. <version>1.2.3</version>
  57. </dependency>
  58. <dependency>
  59. <groupId>cn.reghao.jutil</groupId>
  60. <artifactId>web</artifactId>
  61. <version>1.0.0-SNAPSHOT</version>
  62. </dependency>
  63. <dependency>
  64. <groupId>org.springframework.boot</groupId>
  65. <artifactId>spring-boot-starter</artifactId>
  66. </dependency>
  67. <dependency>
  68. <groupId>org.springframework.boot</groupId>
  69. <artifactId>spring-boot-starter-test</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. <dependency>
  73. <groupId>org.springframework.boot</groupId>
  74. <artifactId>spring-boot-starter-web</artifactId>
  75. </dependency>
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-configuration-processor</artifactId>
  79. <optional>true</optional>
  80. </dependency>
  81. <dependency>
  82. <groupId>org.springframework.boot</groupId>
  83. <artifactId>spring-boot-starter-validation</artifactId>
  84. </dependency>
  85. <dependency>
  86. <groupId>javax.validation</groupId>
  87. <artifactId>validation-api</artifactId>
  88. <version>2.0.1.Final</version>
  89. </dependency>
  90. <dependency>
  91. <groupId>org.springframework.boot</groupId>
  92. <artifactId>spring-boot-starter-data-jpa</artifactId>
  93. </dependency>
  94. <dependency>
  95. <groupId>mysql</groupId>
  96. <artifactId>mysql-connector-java</artifactId>
  97. <version>8.0.17</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>com.zaxxer</groupId>
  101. <artifactId>HikariCP</artifactId>
  102. <version>3.3.1</version>
  103. </dependency>
  104. <dependency>
  105. <groupId>org.springframework.boot</groupId>
  106. <artifactId>spring-boot-starter-security</artifactId>
  107. </dependency>
  108. <dependency>
  109. <groupId>org.springframework.boot</groupId>
  110. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  111. </dependency>
  112. <dependency>
  113. <groupId>org.thymeleaf.extras</groupId>
  114. <artifactId>thymeleaf-extras-springsecurity5</artifactId>
  115. </dependency>
  116. <dependency>
  117. <groupId>org.springframework.boot</groupId>
  118. <artifactId>spring-boot-starter-cache</artifactId>
  119. </dependency>
  120. <dependency>
  121. <groupId>com.github.ben-manes.caffeine</groupId>
  122. <artifactId>caffeine</artifactId>
  123. </dependency>
  124. <dependency>
  125. <groupId>io.springfox</groupId>
  126. <artifactId>springfox-swagger2</artifactId>
  127. <version>2.9.2</version>
  128. </dependency>
  129. <dependency>
  130. <groupId>io.springfox</groupId>
  131. <artifactId>springfox-swagger-ui</artifactId>
  132. <version>2.9.2</version>
  133. </dependency>
  134. <dependency>
  135. <groupId>cn.reghao.oss</groupId>
  136. <artifactId>oss-api</artifactId>
  137. <version>1.0.0-SNAPSHOT</version>
  138. </dependency>
  139. <dependency>
  140. <groupId>org.apache.dubbo</groupId>
  141. <artifactId>dubbo-spring-boot-starter</artifactId>
  142. <version>2.7.8</version>
  143. </dependency>
  144. </dependencies>
  145. <profiles>
  146. <profile>
  147. <id>dev</id>
  148. <properties>
  149. <profile.active>dev</profile.active>
  150. </properties>
  151. <activation>
  152. <activeByDefault>true</activeByDefault>
  153. </activation>
  154. </profile>
  155. <profile>
  156. <id>test</id>
  157. <properties>
  158. <profile.active>test</profile.active>
  159. </properties>
  160. </profile>
  161. </profiles>
  162. <build>
  163. <finalName>oss-console</finalName>
  164. <resources>
  165. <resource>
  166. <directory>src/main/resources</directory>
  167. <filtering>true</filtering>
  168. <includes>
  169. <include>application.yml</include>
  170. <include>application-${profile.active}.yml</include>
  171. <include>logback-spring.xml</include>
  172. <!-- 前端静态资源 -->
  173. <include>static/**</include>
  174. <include>templates/**</include>
  175. </includes>
  176. </resource>
  177. </resources>
  178. <plugins>
  179. <plugin>
  180. <groupId>org.apache.maven.plugins</groupId>
  181. <artifactId>maven-compiler-plugin</artifactId>
  182. <version>3.8.1</version>
  183. <configuration>
  184. <source>11</source>
  185. <target>11</target>
  186. </configuration>
  187. </plugin>
  188. <plugin>
  189. <groupId>org.apache.maven.plugins</groupId>
  190. <artifactId>maven-resources-plugin</artifactId>
  191. <version>2.4.3</version>
  192. <configuration>
  193. <!-- 让 maven 不处理字体 -->
  194. <nonFilteredFileExtensions>
  195. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  196. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  197. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  198. </nonFilteredFileExtensions>
  199. </configuration>
  200. </plugin>
  201. <plugin>
  202. <groupId>org.springframework.boot</groupId>
  203. <artifactId>spring-boot-maven-plugin</artifactId>
  204. <version>2.3.9.RELEASE</version>
  205. <executions>
  206. <execution>
  207. <goals>
  208. <goal>repackage</goal>
  209. </goals>
  210. </execution>
  211. </executions>
  212. </plugin>
  213. </plugins>
  214. </build>
  215. </project>