pom.xml 7.9 KB

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