You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
480 lines
18 KiB
480 lines
18 KiB
<?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 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
<modelVersion>4.0.0</modelVersion> |
|
<parent> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-parent</artifactId> |
|
<version>2.6.6</version> |
|
<relativePath/> |
|
</parent> |
|
|
|
<groupId>cc.niushuai</groupId> |
|
<artifactId>db-bastion-server</artifactId> |
|
<version>0.0.1</version> |
|
<name>db-bastion-server</name> |
|
<description>db-bastion-server</description> |
|
|
|
<properties> |
|
<java.version>1.8</java.version> |
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
|
<maven.compiler.source>8</maven.compiler.source> |
|
<maven.compiler.target>8</maven.compiler.target> |
|
|
|
<!--maven相关插件版本--> |
|
<plugin.git-commit-id.version>4.9.10</plugin.git-commit-id.version> |
|
<maven.compiler.version>3.8.1</maven.compiler.version> |
|
<maven.source.version>3.2.1</maven.source.version> |
|
<maven.resources.version>3.1.0</maven.resources.version> |
|
|
|
<!--fastjson--> |
|
<fastjson.version>1.2.83</fastjson.version> |
|
<!--md2html--> |
|
<pegdown.version>1.6.0</pegdown.version> |
|
<!--swagger--> |
|
<knife4j-spring-boot-starter.version>3.0.3</knife4j-spring-boot-starter.version> |
|
<knife4j-spring-ui.version>2.0.9</knife4j-spring-ui.version> |
|
<!-- 数据库驱动 --> |
|
<mysql-connector-java.version>8.0.27</mysql-connector-java.version> |
|
<hutool.version>5.7.22</hutool.version> |
|
|
|
<!-- 持久层 --> |
|
<mybatis-plus.version>3.5.1</mybatis-plus.version> |
|
<dynamic-datasource-spring-boot-starter.version>3.2.0</dynamic-datasource-spring-boot-starter.version> |
|
<druid.version>1.1.22</druid.version> |
|
|
|
<!-- shiro --> |
|
<shiro.version>1.10.0</shiro.version> |
|
<java-jwt.version>3.11.0</java-jwt.version> |
|
<shiro-redis.version>3.1.0</shiro-redis.version> |
|
|
|
<!--jeecg tools--> |
|
<autopoi-web.version>1.4.5</autopoi-web.version> |
|
|
|
<!--第三方登录--> |
|
<justauth-spring-boot-starter.version>1.3.4</justauth-spring-boot-starter.version> |
|
|
|
<!-- Log4j2爆雷漏洞 --> |
|
<log4j2.version>2.17.0</log4j2.version> |
|
<logback.version>1.2.9</logback.version> |
|
|
|
<!--aliyun sdk--> |
|
<aliyun-java-sdk-dysmsapi.version>2.1.0</aliyun-java-sdk-dysmsapi.version> |
|
<aliyun.oss.version>3.11.2</aliyun.oss.version> |
|
|
|
|
|
</properties> |
|
|
|
<dependencies> |
|
|
|
<!-- Lombok --> |
|
<dependency> |
|
<groupId>org.projectlombok</groupId> |
|
<artifactId>lombok</artifactId> |
|
</dependency> |
|
|
|
<!--集成springmvc框架并实现自动配置 --> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-web</artifactId> |
|
</dependency> |
|
<!--redis自动配置--> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-data-redis</artifactId> |
|
</dependency> |
|
<!-- websocket --> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-websocket</artifactId> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-mail</artifactId> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-aop</artifactId> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-configuration-processor</artifactId> |
|
</dependency> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-actuator</artifactId> |
|
</dependency> |
|
<!--springboot2.3+ 需引入validation对应的包--> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-validation</artifactId> |
|
</dependency> |
|
<!--springboot2.6+解决metrics端点不显示jvm信息的问题--> |
|
<dependency> |
|
<groupId>io.micrometer</groupId> |
|
<artifactId>micrometer-registry-prometheus</artifactId> |
|
</dependency> |
|
|
|
<!-- freemarker --> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-freemarker</artifactId> |
|
</dependency> |
|
|
|
<!-- mybatis-plus --> |
|
<dependency> |
|
<groupId>com.baomidou</groupId> |
|
<artifactId>mybatis-plus-boot-starter</artifactId> |
|
<version>${mybatis-plus.version}</version> |
|
</dependency> |
|
|
|
<!-- druid --> |
|
<dependency> |
|
<groupId>com.alibaba</groupId> |
|
<artifactId>druid-spring-boot-starter</artifactId> |
|
<version>${druid.version}</version> |
|
</dependency> |
|
|
|
<!-- 动态数据源 --> |
|
<dependency> |
|
<groupId>com.baomidou</groupId> |
|
<artifactId>dynamic-datasource-spring-boot-starter</artifactId> |
|
<version>${dynamic-datasource-spring-boot-starter.version}</version> |
|
</dependency> |
|
|
|
<!-- 数据库驱动 --> |
|
<!--mysql--> |
|
<dependency> |
|
<groupId>mysql</groupId> |
|
<artifactId>mysql-connector-java</artifactId> |
|
<version>${mysql-connector-java.version}</version> |
|
<scope>runtime</scope> |
|
</dependency> |
|
|
|
<!-- Quartz定时任务 --> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-quartz</artifactId> |
|
</dependency> |
|
|
|
<!--JWT--> |
|
<dependency> |
|
<groupId>com.auth0</groupId> |
|
<artifactId>java-jwt</artifactId> |
|
<version>${java-jwt.version}</version> |
|
</dependency> |
|
|
|
<!--shiro--> |
|
<dependency> |
|
<groupId>org.apache.shiro</groupId> |
|
<artifactId>shiro-spring-boot-starter</artifactId> |
|
<version>${shiro.version}</version> |
|
</dependency> |
|
<!-- shiro-redis --> |
|
<dependency> |
|
<groupId>org.crazycake</groupId> |
|
<artifactId>shiro-redis</artifactId> |
|
<version>${shiro-redis.version}</version> |
|
<exclusions> |
|
<exclusion> |
|
<groupId>org.apache.shiro</groupId> |
|
<artifactId>shiro-core</artifactId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>guava</artifactId> |
|
<groupId>com.google.guava</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
<!-- knife4j --> |
|
<dependency> |
|
<groupId>com.github.xiaoymin</groupId> |
|
<artifactId>knife4j-spring-boot-starter</artifactId> |
|
<version>${knife4j-spring-boot-starter.version}</version> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>guava</artifactId> |
|
<groupId>com.google.guava</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>swagger-annotations</artifactId> |
|
<groupId>io.swagger</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
<dependency> |
|
<groupId>cn.hutool</groupId> |
|
<artifactId>hutool-all</artifactId> |
|
<version>${hutool.version}</version> |
|
</dependency> |
|
|
|
<!-- AutoPoi Excel工具类--> |
|
<dependency> |
|
<groupId>org.jeecgframework</groupId> |
|
<artifactId>autopoi-web</artifactId> |
|
<version>${autopoi-web.version}</version> |
|
<exclusions> |
|
<exclusion> |
|
<groupId>commons-codec</groupId> |
|
<artifactId>commons-codec</artifactId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
<!-- 阿里云短信 --> |
|
<dependency> |
|
<groupId>com.aliyun</groupId> |
|
<artifactId>aliyun-java-sdk-dysmsapi</artifactId> |
|
<version>${aliyun-java-sdk-dysmsapi.version}</version> |
|
</dependency> |
|
<!-- aliyun oss --> |
|
<dependency> |
|
<groupId>com.aliyun.oss</groupId> |
|
<artifactId>aliyun-sdk-oss</artifactId> |
|
<version>${aliyun.oss.version}</version> |
|
</dependency> |
|
|
|
|
|
<!-- 企业微信/钉钉 api --> |
|
<dependency> |
|
<groupId>org.jeecgframework</groupId> |
|
<artifactId>jeewx-api</artifactId> |
|
<version>1.5.0</version> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>commons-logging</artifactId> |
|
<groupId>commons-logging</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>commons-beanutils</artifactId> |
|
<groupId>commons-beanutils</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>commons-lang</artifactId> |
|
<groupId>commons-lang</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
|
|
<!-- json --> |
|
<dependency> |
|
<groupId>com.alibaba</groupId> |
|
<artifactId>fastjson</artifactId> |
|
<version>${fastjson.version}</version> |
|
</dependency> |
|
<!-- markdown --> |
|
<dependency> |
|
<groupId>org.pegdown</groupId> |
|
<artifactId>pegdown</artifactId> |
|
<version>${pegdown.version}</version> |
|
</dependency> |
|
|
|
|
|
<!--test--> |
|
<dependency> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-starter-test</artifactId> |
|
<scope>test</scope> |
|
</dependency> |
|
<dependency> |
|
<groupId>junit</groupId> |
|
<artifactId>junit</artifactId> |
|
<scope>test</scope> |
|
</dependency> |
|
|
|
<!-- justauth第三方登录 --> |
|
<dependency> |
|
<groupId>com.xkcoding.justauth</groupId> |
|
<artifactId>justauth-spring-boot-starter</artifactId> |
|
<version>${justauth-spring-boot-starter.version}</version> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>hutool-core</artifactId> |
|
<groupId>cn.hutool</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>fastjson</artifactId> |
|
<groupId>com.alibaba</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
<dependency> |
|
<groupId>com.squareup.okhttp3</groupId> |
|
<artifactId>okhttp</artifactId> |
|
<version>4.4.1</version> |
|
</dependency> |
|
|
|
<!--minio--> |
|
<dependency> |
|
<groupId>io.minio</groupId> |
|
<artifactId>minio</artifactId> |
|
<version>8.0.3</version> |
|
<exclusions> |
|
<exclusion> |
|
<artifactId>okio</artifactId> |
|
<groupId>com.squareup.okio</groupId> |
|
</exclusion> |
|
<exclusion> |
|
<artifactId>okhttp</artifactId> |
|
<groupId>com.squareup.okhttp3</groupId> |
|
</exclusion> |
|
</exclusions> |
|
</dependency> |
|
|
|
<dependency> |
|
<groupId>io.swagger</groupId> |
|
<artifactId>swagger-annotations</artifactId> |
|
<version>1.6.9</version> |
|
</dependency> |
|
|
|
</dependencies> |
|
|
|
<repositories> |
|
<repository> |
|
<id>aliyun</id> |
|
<url>https://maven.aliyun.com/repository/public</url> |
|
<releases> |
|
<enabled>true</enabled> |
|
</releases> |
|
<snapshots> |
|
<enabled>false</enabled> |
|
</snapshots> |
|
</repository> |
|
</repositories> |
|
<pluginRepositories> |
|
<pluginRepository> |
|
<id>aliyun-plugin</id> |
|
<url>https://maven.aliyun.com/repository/public</url> |
|
<releases> |
|
<enabled>true</enabled> |
|
</releases> |
|
<snapshots> |
|
<enabled>false</enabled> |
|
</snapshots> |
|
</pluginRepository> |
|
</pluginRepositories> |
|
|
|
<build> |
|
<finalName>${project.name}</finalName> |
|
<plugins> |
|
<!--生成git提交信息插件--> |
|
<plugin> |
|
<groupId>pl.project13.maven</groupId> |
|
<artifactId>git-commit-id-plugin</artifactId> |
|
<version>${plugin.git-commit-id.version}</version> |
|
<executions> |
|
<execution> |
|
<id>get-the-git-infos</id> |
|
<goals> |
|
<goal>revision</goal> |
|
</goals> |
|
<phase>initialize</phase> |
|
</execution> |
|
</executions> |
|
<configuration> |
|
<verbose>false</verbose> |
|
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory> |
|
<prefix>git</prefix> |
|
<dateFormat>yyyy-MM-dd HH:mm:ss</dateFormat> |
|
<dateFormatTimeZone>${user.timezone}</dateFormatTimeZone> |
|
<generateGitPropertiesFile>true</generateGitPropertiesFile> |
|
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> |
|
<commitIdGenerationMode>full</commitIdGenerationMode> |
|
<format>properties</format> |
|
</configuration> |
|
</plugin> |
|
<!--指定编译插件--> |
|
<plugin> |
|
<artifactId>maven-compiler-plugin</artifactId> |
|
<version>${maven.compiler.version}</version> |
|
<configuration> |
|
<source>${java.version}</source> |
|
<target>${java.version}</target> |
|
<encoding>UTF-8</encoding> |
|
<compilerArgs> |
|
<arg>-parameters</arg> |
|
</compilerArgs> |
|
</configuration> |
|
</plugin> |
|
<!-- 避免font文件的二进制文件格式压缩破坏 生成源码包--> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-resources-plugin</artifactId> |
|
<version>${maven.resources.version}</version> |
|
<configuration> |
|
<nonFilteredFileExtensions> |
|
<nonFilteredFileExtension>woff</nonFilteredFileExtension> |
|
<nonFilteredFileExtension>woff2</nonFilteredFileExtension> |
|
<nonFilteredFileExtension>eot</nonFilteredFileExtension> |
|
<nonFilteredFileExtension>ttf</nonFilteredFileExtension> |
|
<nonFilteredFileExtension>svg</nonFilteredFileExtension> |
|
</nonFilteredFileExtensions> |
|
</configuration> |
|
</plugin> |
|
<!--构建时生成源码包--> |
|
<!--<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-source-plugin</artifactId> |
|
<version>${maven.source.version}</version> |
|
<executions> |
|
<execution> |
|
<id>attach-sources</id> |
|
<goals> |
|
<goal>jar-no-fork</goal> |
|
</goals> |
|
</execution> |
|
</executions> |
|
</plugin>--> |
|
<!--打包跳过测试--> |
|
<plugin> |
|
<groupId>org.apache.maven.plugins</groupId> |
|
<artifactId>maven-surefire-plugin</artifactId> |
|
<configuration> |
|
<skipTests>true</skipTests> |
|
</configuration> |
|
</plugin> |
|
<!--jar打包插件--> |
|
<plugin> |
|
<groupId>org.springframework.boot</groupId> |
|
<artifactId>spring-boot-maven-plugin</artifactId> |
|
<configuration> |
|
<finalName>${project.build.finalName}</finalName> |
|
<fork>true</fork> |
|
<excludes> |
|
<exclude> |
|
<groupId>org.projectlombok</groupId> |
|
<artifactId>lombok</artifactId> |
|
</exclude> |
|
</excludes> |
|
</configuration> |
|
<executions> |
|
<execution> |
|
<goals> |
|
<goal>repackage</goal> |
|
</goals> |
|
</execution> |
|
</executions> |
|
</plugin> |
|
</plugins> |
|
<resources> |
|
<resource> |
|
<directory>src/main/resources</directory> |
|
<filtering>true</filtering> |
|
</resource> |
|
<resource> |
|
<directory>src/main/java</directory> |
|
<includes> |
|
<include>**/*.xml</include> |
|
<include>**/*.json</include> |
|
<include>**/*.ftl</include> |
|
</includes> |
|
</resource> |
|
</resources> |
|
</build> |
|
|
|
</project>
|
|
|