pom.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  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-web</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>oss-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. <dependency>
  141. <groupId>org.apache.curator</groupId>
  142. <artifactId>curator-recipes</artifactId>
  143. <version>2.12.0</version>
  144. </dependency>
  145. </dependencies>
  146. <profiles>
  147. <profile>
  148. <id>dev</id>
  149. <properties>
  150. <profile.active>dev</profile.active>
  151. </properties>
  152. <activation>
  153. <activeByDefault>true</activeByDefault>
  154. </activation>
  155. </profile>
  156. <profile>
  157. <id>test</id>
  158. <properties>
  159. <profile.active>test</profile.active>
  160. </properties>
  161. </profile>
  162. </profiles>
  163. <build>
  164. <finalName>oss-web</finalName>
  165. <resources>
  166. <resource>
  167. <directory>src/main/resources</directory>
  168. <filtering>true</filtering>
  169. <includes>
  170. <include>application.yml</include>
  171. <include>application-${profile.active}.yml</include>
  172. <include>logback-spring.xml</include>
  173. <!-- 前端静态资源 -->
  174. <include>static/**</include>
  175. <include>templates/**</include>
  176. </includes>
  177. </resource>
  178. </resources>
  179. <plugins>
  180. <plugin>
  181. <groupId>org.apache.maven.plugins</groupId>
  182. <artifactId>maven-compiler-plugin</artifactId>
  183. <version>3.8.1</version>
  184. <configuration>
  185. <source>11</source>
  186. <target>11</target>
  187. </configuration>
  188. </plugin>
  189. <plugin>
  190. <groupId>org.apache.maven.plugins</groupId>
  191. <artifactId>maven-resources-plugin</artifactId>
  192. <version>2.4.3</version>
  193. <configuration>
  194. <!-- 让 maven 不处理字体 -->
  195. <nonFilteredFileExtensions>
  196. <nonFilteredFileExtension>ttf</nonFilteredFileExtension>
  197. <nonFilteredFileExtension>woff</nonFilteredFileExtension>
  198. <nonFilteredFileExtension>woff2</nonFilteredFileExtension>
  199. </nonFilteredFileExtensions>
  200. </configuration>
  201. </plugin>
  202. <plugin>
  203. <groupId>org.springframework.boot</groupId>
  204. <artifactId>spring-boot-maven-plugin</artifactId>
  205. <version>2.3.9.RELEASE</version>
  206. <executions>
  207. <execution>
  208. <goals>
  209. <goal>repackage</goal>
  210. </goals>
  211. </execution>
  212. </executions>
  213. </plugin>
  214. </plugins>
  215. </build>
  216. </project>