2023-05-07 20:03:47 +08:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
<groupId>cn.skcks.matrix.v2</groupId>
|
|
|
|
<artifactId>sk-matrix-service</artifactId>
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
|
|
<parent>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
|
<version>3.0.1</version>
|
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
|
</parent>
|
|
|
|
|
|
|
|
<modules>
|
|
|
|
<module>common</module>
|
|
|
|
<module>annotation</module>
|
|
|
|
<module>starter</module>
|
|
|
|
<module>orm</module>
|
|
|
|
<module>casbin</module>
|
|
|
|
<module>api</module>
|
2023-05-07 22:50:25 +08:00
|
|
|
<module>auth</module>
|
|
|
|
<module>services</module>
|
2023-05-08 10:47:44 +08:00
|
|
|
<module>model</module>
|
2023-05-07 20:03:47 +08:00
|
|
|
</modules>
|
|
|
|
|
|
|
|
<properties>
|
|
|
|
<maven.compiler.source>17</maven.compiler.source>
|
|
|
|
<maven.compiler.target>17</maven.compiler.target>
|
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
<java.version>17</java.version>
|
|
|
|
|
|
|
|
<maven-compiler-plugin.version>3.10.1</maven-compiler-plugin.version>
|
|
|
|
<maven-surefire-plugin.version>2.22.2</maven-surefire-plugin.version>
|
|
|
|
|
|
|
|
<springboot.version>3.0.1</springboot.version>
|
|
|
|
<org.mapstruct.version>1.5.3.Final</org.mapstruct.version>
|
|
|
|
<lombok.version>1.18.24</lombok.version>
|
|
|
|
<flyway.version>7.7.3</flyway.version>
|
|
|
|
<mysql.version>8.0.31</mysql.version>
|
|
|
|
<mybatis.version>3.0.1</mybatis.version>
|
|
|
|
<mybatis-dynamic.version>1.4.1</mybatis-dynamic.version>
|
|
|
|
<mybatis-generator-maven-plugin.version>1.4.1</mybatis-generator-maven-plugin.version>
|
|
|
|
<druid.version>1.2.15</druid.version>
|
|
|
|
<snakeyaml.version>1.33</snakeyaml.version>
|
|
|
|
<hutool.version>5.8.11</hutool.version>
|
|
|
|
<pagehelper.version>1.4.6</pagehelper.version>
|
|
|
|
<tomcat-dbcp.version>10.1.4</tomcat-dbcp.version>
|
|
|
|
<shardingsphere.version>5.2.1</shardingsphere.version>
|
|
|
|
<junit.version>5.9.0</junit.version>
|
|
|
|
<springdoc.version>2.0.2</springdoc.version>
|
|
|
|
<swagger-annotations-jakarta.version>2.2.7</swagger-annotations-jakarta.version>
|
|
|
|
<casbin.version>0.6.0</casbin.version>
|
|
|
|
<casbin-jdbc-adapter.version>2.4.0</casbin-jdbc-adapter.version>
|
|
|
|
<pagehelper.version>1.4.6</pagehelper.version>
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
<dependencyManagement>
|
|
|
|
<dependencies>
|
|
|
|
<!--ShardingSphere 5.x -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.shardingsphere</groupId>
|
|
|
|
<artifactId>shardingsphere-jdbc-core-spring-boot-starter</artifactId>
|
|
|
|
<version>${shardingsphere.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- ShardingSphere 和 druid连接池 需要加添加此dbcp依赖 -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.apache.tomcat</groupId>
|
|
|
|
<artifactId>tomcat-dbcp</artifactId>
|
|
|
|
<version>${tomcat-dbcp.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--mybatis 分页器插件-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
|
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
|
|
<version>${pagehelper.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--hutool-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
|
<version>${hutool.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--snakeyaml-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.yaml</groupId>
|
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
|
<version>${snakeyaml.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!--MapStruct-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
|
<artifactId>mapstruct</artifactId>
|
|
|
|
<version>${org.mapstruct.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
|
|
<version>${org.mapstruct.version}</version>
|
|
|
|
<scope>compile</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--lombok-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>${lombok.version}</version>
|
|
|
|
<scope>provided</scope>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.mybatis.spring.boot/mybatis-spring-boot-starter -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mybatis.spring.boot</groupId>
|
|
|
|
<artifactId>mybatis-spring-boot-starter</artifactId>
|
|
|
|
<version>${mybatis.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!--Mybatis-DynamicSQL-->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.mybatis.dynamic-sql</groupId>
|
|
|
|
<artifactId>mybatis-dynamic-sql</artifactId>
|
|
|
|
<version>${mybatis-dynamic.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- Druid 数据连接池依赖 -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
|
<artifactId>druid</artifactId>
|
|
|
|
<version>${druid.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.junit.jupiter/junit-jupiter-api -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.junit.jupiter</groupId>
|
|
|
|
<artifactId>junit-jupiter-api</artifactId>
|
|
|
|
<version>${junit.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
|
<version>${springboot.version}</version>
|
|
|
|
<exclusions>
|
|
|
|
<exclusion>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
|
|
|
</exclusion>
|
|
|
|
</exclusions>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-starter-undertow</artifactId>
|
|
|
|
<version>${springboot.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-common -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-starter-common</artifactId>
|
|
|
|
<version>${springdoc.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.springdoc</groupId>
|
|
|
|
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
|
|
|
|
<version>${springdoc.version}</version>
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.casbin/casbin-spring-boot-starter -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.casbin</groupId>
|
|
|
|
<artifactId>casbin-spring-boot-starter</artifactId>
|
|
|
|
<version>${casbin.version}</version>
|
|
|
|
</dependency>
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.casbin/jdbc-adapter -->
|
|
|
|
<dependency>
|
|
|
|
<groupId>org.casbin</groupId>
|
|
|
|
<artifactId>jdbc-adapter</artifactId>
|
|
|
|
<version>${casbin-jdbc-adapter.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</dependencyManagement>
|
|
|
|
|
|
|
|
<build>
|
|
|
|
<pluginManagement>
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.mybatis.generator</groupId>
|
|
|
|
<artifactId>mybatis-generator-maven-plugin</artifactId>
|
|
|
|
<version>${mybatis-generator-maven-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<!--配置文件的位置-->
|
|
|
|
<configurationFile>src/main/resources/config/generatorConfig.xml</configurationFile>
|
|
|
|
<verbose>true</verbose>
|
|
|
|
<overwrite>true</overwrite>
|
|
|
|
</configuration>
|
|
|
|
<executions>
|
|
|
|
<execution>
|
|
|
|
<id>Generate MyBatis Artifacts</id>
|
|
|
|
<goals>
|
|
|
|
<goal>generate</goal>
|
|
|
|
</goals>
|
|
|
|
</execution>
|
|
|
|
</executions>
|
|
|
|
<dependencies>
|
|
|
|
<dependency>
|
|
|
|
<groupId>mysql</groupId>
|
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
|
<version>${mysql.version}</version>
|
|
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<!-- <plugin>-->
|
|
|
|
<!-- <groupId>org.flywaydb</groupId>-->
|
|
|
|
<!-- <artifactId>flyway-maven-plugin</artifactId>-->
|
|
|
|
<!-- <version>${flyway.version}</version>-->
|
|
|
|
<!-- <dependencies>-->
|
|
|
|
<!-- <dependency>-->
|
|
|
|
<!-- <groupId>mysql</groupId>-->
|
|
|
|
<!-- <artifactId>mysql-connector-java</artifactId>-->
|
|
|
|
<!-- <version>${mysql.version}</version>-->
|
|
|
|
<!-- </dependency>-->
|
|
|
|
<!-- </dependencies>-->
|
|
|
|
<!-- </plugin>-->
|
|
|
|
</plugins>
|
|
|
|
</pluginManagement>
|
|
|
|
|
|
|
|
<plugins>
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
|
<version>${maven-compiler-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<annotationProcessorPaths>
|
|
|
|
<path>
|
|
|
|
<groupId>org.mapstruct</groupId>
|
|
|
|
<artifactId>mapstruct-processor</artifactId>
|
|
|
|
<version>${org.mapstruct.version}</version>
|
|
|
|
</path>
|
|
|
|
|
|
|
|
<path>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok</artifactId>
|
|
|
|
<version>${lombok.version}</version>
|
|
|
|
</path>
|
|
|
|
|
2023-05-08 00:55:39 +08:00
|
|
|
<path>
|
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
|
|
|
<version>0.2.0</version>
|
|
|
|
</path>
|
|
|
|
|
2023-05-07 20:03:47 +08:00
|
|
|
<path>
|
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
|
<version>${springboot.version}</version>
|
|
|
|
</path>
|
|
|
|
<!-- other annotation processors -->
|
|
|
|
</annotationProcessorPaths>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
<plugin>
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
<version>${maven-surefire-plugin.version}</version>
|
|
|
|
<configuration>
|
|
|
|
<skipTests>true</skipTests>
|
|
|
|
</configuration>
|
|
|
|
</plugin>
|
|
|
|
</plugins>
|
|
|
|
<resources>
|
|
|
|
<resource>
|
|
|
|
<directory>src/main/resources</directory>
|
|
|
|
<includes>
|
|
|
|
<include>**/**</include>
|
|
|
|
</includes>
|
|
|
|
<filtering>true</filtering>
|
|
|
|
</resource>
|
|
|
|
</resources>
|
|
|
|
</build>
|
|
|
|
</project>
|