pom.xml 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  4. <modelVersion>4.0.0</modelVersion>
  5. <parent>
  6. <groupId>org.springframework.boot</groupId>
  7. <artifactId>spring-boot-starter-parent</artifactId>
  8. <version>2.5.6</version>
  9. <relativePath/> <!-- lookup parent from repository -->
  10. </parent>
  11. <groupId>org.example</groupId>
  12. <artifactId>kaojiplatform</artifactId>
  13. <version>1.0-SNAPSHOT</version>
  14. <packaging>war</packaging>
  15. <name>kaojiplatform</name>
  16. <properties>
  17. <java.version>11</java.version>
  18. <log4j2.version>2.15.0</log4j2.version>
  19. <poi.version>5.2.0</poi.version>
  20. </properties>
  21. <dependencies>
  22. <dependency>
  23. <groupId>org.springframework.boot</groupId>
  24. <artifactId>spring-boot-starter-thymeleaf</artifactId>
  25. </dependency>
  26. <dependency>
  27. <groupId>org.springframework.boot</groupId>
  28. <artifactId>spring-boot-starter-web</artifactId>
  29. </dependency>
  30. <dependency>
  31. <groupId>org.springframework.boot</groupId>
  32. <artifactId>spring-boot-starter</artifactId>
  33. <exclusions>
  34. <exclusion>
  35. <groupId>org.springframework.boot</groupId>
  36. <artifactId>spring-boot-starter-logging</artifactId>
  37. </exclusion>
  38. </exclusions>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.springframework.boot</groupId>
  42. <artifactId>spring-boot-starter-test</artifactId>
  43. <scope>test</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>org.mybatis.spring.boot</groupId>
  47. <artifactId>mybatis-spring-boot-starter</artifactId>
  48. <version>2.2.0</version>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.springframework.boot</groupId>
  52. <artifactId>spring-boot-starter-tomcat</artifactId>
  53. <scope>provided</scope>
  54. </dependency>
  55. <dependency>
  56. <groupId>org.springframework.boot</groupId>
  57. <artifactId>spring-boot-starter-log4j2</artifactId>
  58. </dependency>
  59. <dependency>
  60. <groupId>org.springframework.boot</groupId>
  61. <artifactId>spring-boot-devtools</artifactId>
  62. <scope>runtime</scope>
  63. <optional>true</optional>
  64. </dependency>
  65. <dependency>
  66. <groupId>mysql</groupId>
  67. <artifactId>mysql-connector-java</artifactId>
  68. <scope>runtime</scope>
  69. </dependency>
  70. <dependency>
  71. <groupId>com.alibaba</groupId>
  72. <artifactId>fastjson</artifactId>
  73. <version>1.2.7</version>
  74. </dependency>
  75. <dependency>
  76. <groupId>io.netty</groupId>
  77. <artifactId>netty-all</artifactId>
  78. </dependency>
  79. <dependency>
  80. <groupId>org.apache.commons</groupId>
  81. <artifactId>commons-lang3</artifactId>
  82. <version>3.12.0</version>
  83. </dependency>
  84. <dependency>
  85. <groupId>org.apache.poi</groupId>
  86. <artifactId>poi</artifactId>
  87. <version>${poi.version}</version>
  88. </dependency>
  89. <dependency>
  90. <groupId>org.apache.poi</groupId>
  91. <artifactId>poi-ooxml</artifactId>
  92. <version>${poi.version}</version>
  93. </dependency>
  94. <dependency>
  95. <groupId>org.quartz-scheduler</groupId>
  96. <artifactId>quartz</artifactId>
  97. <version>2.3.2</version>
  98. </dependency>
  99. <dependency>
  100. <groupId>org.springframework.boot</groupId>
  101. <artifactId>spring-boot-configuration-processor</artifactId>
  102. <optional>true</optional>
  103. </dependency>
  104. <!-- swagger 相关依赖包-->
  105. <dependency>
  106. <groupId>io.springfox</groupId>
  107. <artifactId>springfox-boot-starter</artifactId>
  108. <version>3.0.0</version>
  109. </dependency>
  110. <dependency>
  111. <groupId>com.github.xiaoymin</groupId>
  112. <artifactId>swagger-bootstrap-ui</artifactId>
  113. <version>1.9.6</version>
  114. </dependency>
  115. <dependency>
  116. <groupId>com.github.pagehelper</groupId>
  117. <artifactId>pagehelper-spring-boot-starter</artifactId>
  118. <version>1.2.5</version>
  119. </dependency>
  120. <dependency>
  121. <groupId>org.projectlombok</groupId>
  122. <artifactId>lombok</artifactId>
  123. </dependency>
  124. </dependencies>
  125. <profiles>
  126. <profile>
  127. <id>dev</id>
  128. <properties>
  129. <env>dev</env>
  130. </properties>
  131. <activation>
  132. <activeByDefault>true</activeByDefault>
  133. </activation>
  134. </profile>
  135. <profile>
  136. <id>prod</id>
  137. <properties>
  138. <env>prod</env>
  139. </properties>
  140. </profile>
  141. <profile>
  142. <id>test</id>
  143. <properties>
  144. <env>test</env>
  145. </properties>
  146. </profile>
  147. </profiles>
  148. <build>
  149. <resources>
  150. <resource>
  151. <directory>src/main/resources</directory>
  152. <excludes>
  153. <exclude>/config/dev/*</exclude>
  154. <exclude>/config/prod/*</exclude>
  155. <exclude>/config/test/*</exclude>
  156. <exclude>/config/generatorConfig.xml</exclude>
  157. </excludes>
  158. </resource>
  159. <resource>
  160. <directory>src/main/resources/config/${env}</directory>
  161. </resource>
  162. <resource>
  163. <directory>src/main/webapp</directory>
  164. </resource>
  165. </resources>
  166. <plugins>
  167. <plugin>
  168. <groupId>org.springframework.boot</groupId>
  169. <artifactId>spring-boot-maven-plugin</artifactId>
  170. </plugin>
  171. <!-- <plugin>-->
  172. <!-- <groupId>org.mybatis.generator</groupId>-->
  173. <!-- <artifactId>mybatis-generator-maven-plugin</artifactId>-->
  174. <!-- <version>1.3.5</version>-->
  175. <!-- <configuration>-->
  176. <!-- <configurationFile>src/main/resources/config/generatorConfig.xml</configurationFile>-->
  177. <!-- <verbose>true</verbose>-->
  178. <!-- <overwrite>true</overwrite>-->
  179. <!-- </configuration>-->
  180. <!-- <executions>-->
  181. <!-- <execution>-->
  182. <!-- <id>Generate MyBatis Artifacts</id>-->
  183. <!-- <goals>-->
  184. <!-- <goal>generate</goal>-->
  185. <!-- </goals>-->
  186. <!-- </execution>-->
  187. <!-- </executions>-->
  188. <!-- <dependencies>-->
  189. <!-- <dependency>-->
  190. <!-- <groupId>org.mybatis.generator</groupId>-->
  191. <!-- <artifactId>mybatis-generator-core</artifactId>-->
  192. <!-- <version>1.3.5</version>-->
  193. <!-- </dependency>-->
  194. <!-- </dependencies>-->
  195. <!-- </plugin>-->
  196. </plugins>
  197. </build>
  198. </project>