pom.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  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>org.starter</groupId>
  6. <artifactId>learning</artifactId>
  7. <version>0.0.1-SNAPSHOT</version>
  8. <name>learning</name>
  9. <description>learning</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. <spring-boot.version>2.6.13</spring-boot.version>
  15. </properties>
  16. <dependencies>
  17. <dependency>
  18. <groupId>org.springframework.boot</groupId>
  19. <artifactId>spring-boot-starter-web</artifactId>
  20. <exclusions>
  21. <exclusion>
  22. <groupId>org.springframework.boot</groupId>
  23. <artifactId>spring-boot-starter-tomcat</artifactId>
  24. </exclusion>
  25. </exclusions>
  26. </dependency>
  27. <dependency>
  28. <groupId>org.springframework.boot</groupId>
  29. <artifactId>spring-boot-starter-jetty</artifactId>
  30. </dependency>
  31. <dependency>
  32. <groupId>org.springframework.boot</groupId>
  33. <artifactId>spring-boot-starter-test</artifactId>
  34. <scope>test</scope>
  35. </dependency>
  36. <dependency>
  37. <groupId>com.alibaba</groupId>
  38. <artifactId>druid</artifactId>
  39. <version>1.1.16</version>
  40. </dependency>
  41. <dependency>
  42. <groupId>org.mybatis</groupId>
  43. <artifactId>mybatis</artifactId>
  44. <version>3.5.9</version>
  45. </dependency>
  46. <dependency>
  47. <groupId>org.springframework</groupId>
  48. <artifactId>spring-jdbc</artifactId>
  49. </dependency>
  50. <dependency>
  51. <groupId>org.mybatis</groupId>
  52. <artifactId>mybatis-spring</artifactId>
  53. <version>2.0.7</version>
  54. </dependency>
  55. <dependency>
  56. <groupId>mysql</groupId>
  57. <artifactId>mysql-connector-java</artifactId>
  58. <version>8.0.33</version>
  59. </dependency>
  60. <dependency>
  61. <groupId>c3p0</groupId>
  62. <artifactId>c3p0</artifactId>
  63. <version>0.9.1.2</version>
  64. </dependency>
  65. <dependency>
  66. <groupId>org.springframework</groupId>
  67. <artifactId>spring-webmvc</artifactId>
  68. <version>6.1.3</version>
  69. </dependency>
  70. <dependency>
  71. <groupId>javax.servlet</groupId>
  72. <artifactId>javax.servlet-api</artifactId>
  73. <version>3.1.0</version>
  74. <scope>provided</scope>
  75. </dependency>
  76. <dependency>
  77. <groupId>jakarta.platform</groupId>
  78. <artifactId>jakarta.jakartaee-api</artifactId>
  79. <version>10.0.0</version>
  80. <scope>provided</scope>
  81. </dependency>
  82. <dependency>
  83. <groupId>org.mybatis.spring.boot</groupId>
  84. <artifactId>mybatis-spring-boot-starter</artifactId>
  85. <version>2.2.0</version>
  86. </dependency>
  87. <dependency>
  88. <groupId>com.baomidou</groupId>
  89. <artifactId>mybatis-plus-boot-starter</artifactId>
  90. <version>3.4.2</version>
  91. </dependency>
  92. </dependencies>
  93. <dependencyManagement>
  94. <dependencies>
  95. <dependency>
  96. <groupId>org.springframework.boot</groupId>
  97. <artifactId>spring-boot-dependencies</artifactId>
  98. <version>${spring-boot.version}</version>
  99. <type>pom</type>
  100. <scope>import</scope>
  101. </dependency>
  102. </dependencies>
  103. </dependencyManagement>
  104. <build>
  105. <plugins>
  106. <plugin>
  107. <groupId>org.apache.maven.plugins</groupId>
  108. <artifactId>maven-resources-plugin</artifactId>
  109. <version>3.2.0</version>
  110. <configuration>
  111. <encoding>UTF-8</encoding>
  112. <useDefaultDelimiters>true</useDefaultDelimiters>
  113. </configuration>
  114. </plugin>
  115. <plugin>
  116. <groupId>org.apache.maven.plugins</groupId>
  117. <artifactId>maven-compiler-plugin</artifactId>
  118. <version>3.8.1</version>
  119. <configuration>
  120. <source>1.8</source>
  121. <target>1.8</target>
  122. <encoding>UTF-8</encoding>
  123. </configuration>
  124. </plugin>
  125. <plugin>
  126. <groupId>org.springframework.boot</groupId>
  127. <artifactId>spring-boot-maven-plugin</artifactId>
  128. <version>${spring-boot.version}</version>
  129. <configuration>
  130. <mainClass>org.starter.learning.LearningApplication</mainClass>
  131. <skip>true</skip>
  132. </configuration>
  133. <executions>
  134. <execution>
  135. <id>repackage</id>
  136. <goals>
  137. <goal>repackage</goal>
  138. </goals>
  139. </execution>
  140. </executions>
  141. </plugin>
  142. </plugins>
  143. </build>
  144. <profiles>
  145. <!-- 开发环境 -->
  146. <profile>
  147. <id>dev</id>
  148. <properties>
  149. <profile.active>dev</profile.active>
  150. </properties>
  151. </profile>
  152. <!-- 生产环境 -->
  153. <profile>
  154. <id>prod</id>
  155. <properties>
  156. <profile.active>prod</profile.active>
  157. </properties>
  158. <activation>
  159. <activeByDefault>true</activeByDefault>
  160. </activation>
  161. </profile>
  162. <!-- 测试环境 -->
  163. <profile>
  164. <id>test</id>
  165. <properties>
  166. <profile.active>test</profile.active>
  167. </properties>
  168. </profile>
  169. </profiles>
  170. </project>