pom.xml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.baomidou</groupId>
  30. <artifactId>dynamic-datasource-spring-boot-starter</artifactId>
  31. <!--多数据源 -->
  32. <version>${dynamic-datasource.version}</version>
  33. <scope>provided</scope>
  34. </dependency>
  35. <dependency>
  36. <groupId>com.oracle.database.jdbc</groupId>
  37. <artifactId>ojdbc8</artifactId>
  38. <scope>provided</scope>
  39. </dependency>
  40. <dependency>
  41. <groupId>org.postgresql</groupId>
  42. <artifactId>postgresql</artifactId>
  43. <scope>provided</scope>
  44. </dependency>
  45. <dependency>
  46. <groupId>com.microsoft.sqlserver</groupId>
  47. <artifactId>mssql-jdbc</artifactId>
  48. <scope>provided</scope>
  49. </dependency>
  50. <dependency>
  51. <groupId>com.baomidou</groupId>
  52. <artifactId>mybatis-plus-boot-starter</artifactId>
  53. <version>3.5.4</version>
  54. <scope>provided</scope>
  55. </dependency>
  56. <dependency>
  57. <groupId>com.github.yulichang</groupId>
  58. <artifactId>mybatis-plus-join-boot-starter</artifactId>
  59. <version>1.5.4</version>
  60. </dependency>
  61. <!-- 测试依赖 -->
  62. <dependency>
  63. <groupId>org.springframework.boot</groupId>
  64. <artifactId>spring-boot-starter-test</artifactId>
  65. <scope>test</scope>
  66. </dependency>
  67. <dependency>
  68. <groupId>com.h2database</groupId>
  69. <artifactId>h2</artifactId>
  70. <scope>test</scope>
  71. </dependency>
  72. </dependencies>
  73. <dependencyManagement>
  74. <dependencies>
  75. <!-- 统一依赖管理 -->
  76. <dependency>
  77. <groupId>org.springframework.boot</groupId>
  78. <artifactId>spring-boot-dependencies</artifactId>
  79. <version>${spring.boot.version}</version>
  80. <type>pom</type>
  81. <scope>import</scope>
  82. </dependency>
  83. </dependencies>
  84. </dependencyManagement>
  85. <distributionManagement>
  86. <repository>
  87. <id>nexus</id>
  88. <url>https://nexus.flowbb.top/repository/maven-releases/</url>
  89. </repository>
  90. <snapshotRepository>
  91. <id>nexus</id>
  92. <url>https://nexus.flowbb.top/repository/maven-snapshots/</url>
  93. </snapshotRepository>
  94. </distributionManagement>
  95. <build>
  96. <plugins>
  97. <plugin>
  98. <groupId>org.apache.maven.plugins</groupId>
  99. <artifactId>maven-source-plugin</artifactId>
  100. <version>3.2.1</version>
  101. <executions>
  102. <execution>
  103. <phase>package</phase>
  104. <goals>
  105. <goal>jar</goal>
  106. </goals>
  107. </execution>
  108. </executions>
  109. </plugin>
  110. <plugin>
  111. <groupId>org.apache.maven.plugins</groupId>
  112. <artifactId>maven-compiler-plugin</artifactId>
  113. <version>3.11.0</version>
  114. <configuration>
  115. <source>17</source>
  116. <target>17</target>
  117. </configuration>
  118. </plugin>
  119. </plugins>
  120. </build>
  121. </project>