pom.xml 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2. 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. <groupId>cn.mybatis.boot</groupId>
  6. <artifactId>spring-boot-starter-mybatis-ex</artifactId>
  7. <version>0.1.0-SNAPSHOT</version>
  8. <packaging>jar</packaging>
  9. <name>spring-boot-starter-mybatis-ex</name>
  10. <url>http://maven.apache.org</url>
  11. <properties>
  12. <maven.compiler.source>17</maven.compiler.source>
  13. <maven.compiler.target>17</maven.compiler.target>
  14. <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  15. <mybatis-plus.version>3.5.4</mybatis-plus.version>
  16. <spring.boot.version>3.3.13</spring.boot.version>
  17. <mybatis-plus-join.version>1.5.4</mybatis-plus-join.version>
  18. <mybatis-plus.version>3.5.4</mybatis-plus.version>
  19. <dynamic-datasource.version>3.6.1</dynamic-datasource.version>
  20. </properties>
  21. <dependencies>
  22. <!-- DB 相关 -->
  23. <dependency>
  24. <groupId>com.mysql</groupId>
  25. <artifactId>mysql-connector-j</artifactId>
  26. <scope>provided</scope>
  27. </dependency>
  28. <dependency>
  29. <groupId>com.oracle.database.jdbc</groupId>
  30. <artifactId>ojdbc8</artifactId>
  31. <scope>provided</scope>
  32. </dependency>
  33. <dependency>
  34. <groupId>org.postgresql</groupId>
  35. <artifactId>postgresql</artifactId>
  36. <scope>provided</scope>
  37. </dependency>
  38. <dependency>
  39. <groupId>com.microsoft.sqlserver</groupId>
  40. <artifactId>mssql-jdbc</artifactId>
  41. <scope>provided</scope>
  42. </dependency>
  43. <dependency>
  44. <groupId>com.baomidou</groupId>
  45. <artifactId>mybatis-plus-boot-starter</artifactId>
  46. <version>3.5.4</version>
  47. <scope>provided</scope>
  48. </dependency>
  49. <dependency>
  50. <groupId>com.github.yulichang</groupId>
  51. <artifactId>mybatis-plus-join-boot-starter</artifactId>
  52. <version>1.5.4</version>
  53. </dependency>
  54. <!-- 兼容 Spring Boot 3.2+:解决 factoryBeanObjectType 必须为 Class 类型 -->
  55. <dependency>
  56. <groupId>org.mybatis</groupId>
  57. <artifactId>mybatis-spring</artifactId>
  58. <version>3.0.3</version>
  59. </dependency>
  60. <!-- 测试依赖 -->
  61. <dependency>
  62. <groupId>org.springframework.boot</groupId>
  63. <artifactId>spring-boot-starter-test</artifactId>
  64. <scope>test</scope>
  65. </dependency>
  66. <dependency>
  67. <groupId>com.h2database</groupId>
  68. <artifactId>h2</artifactId>
  69. <scope>test</scope>
  70. </dependency>
  71. </dependencies>
  72. <dependencyManagement>
  73. <dependencies>
  74. <!-- 统一依赖管理 -->
  75. <dependency>
  76. <groupId>org.springframework.boot</groupId>
  77. <artifactId>spring-boot-dependencies</artifactId>
  78. <version>${spring.boot.version}</version>
  79. <type>pom</type>
  80. <scope>import</scope>
  81. </dependency>
  82. <!-- 兼容 Spring Boot 3.2+:factoryBeanObjectType 需为 Class 类型 -->
  83. <dependency>
  84. <groupId>org.mybatis</groupId>
  85. <artifactId>mybatis-spring</artifactId>
  86. <version>3.0.3</version>
  87. </dependency>
  88. </dependencies>
  89. </dependencyManagement>
  90. <distributionManagement>
  91. <repository>
  92. <id>nexus</id>
  93. <url>https://nexus.flowbb.top/repository/maven-releases/</url>
  94. </repository>
  95. <snapshotRepository>
  96. <id>nexus</id>
  97. <url>https://nexus.flowbb.top/repository/maven-snapshots/</url>
  98. </snapshotRepository>
  99. </distributionManagement>
  100. <build>
  101. <plugins>
  102. <plugin>
  103. <groupId>org.apache.maven.plugins</groupId>
  104. <artifactId>maven-surefire-plugin</artifactId>
  105. <version>3.2.5</version>
  106. <configuration>
  107. <includes>
  108. <include>**/*Test.java</include>
  109. <include>**/*Tests.java</include>
  110. </includes>
  111. </configuration>
  112. </plugin>
  113. <plugin>
  114. <groupId>org.apache.maven.plugins</groupId>
  115. <artifactId>maven-source-plugin</artifactId>
  116. <version>3.2.1</version>
  117. <executions>
  118. <execution>
  119. <phase>package</phase>
  120. <goals>
  121. <goal>jar</goal>
  122. </goals>
  123. </execution>
  124. </executions>
  125. </plugin>
  126. <plugin>
  127. <groupId>org.apache.maven.plugins</groupId>
  128. <artifactId>maven-compiler-plugin</artifactId>
  129. <version>3.11.0</version>
  130. <configuration>
  131. <source>17</source>
  132. <target>17</target>
  133. </configuration>
  134. </plugin>
  135. </plugins>
  136. </build>
  137. </project>