|
|
<?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">
|
|
|
|
|
|
<!--项目的名称, Maven产生的文档用 -->
|
|
|
<name>opsli-boot-parent</name>
|
|
|
<!--项目主页的URL, Maven产生的文档用 -->
|
|
|
<url>https://www.opsli.com</url>
|
|
|
<!-- 描述 -->
|
|
|
<description>一个基于springboot、vue、ant design、集成代码生成器的Java开源快速开发框架,微服务平台。</description>
|
|
|
<!--项目开发者列表 -->
|
|
|
<developers>
|
|
|
<!--项目开发者的信息 -->
|
|
|
<developer>
|
|
|
<!--项目开发者的唯一标识符 -->
|
|
|
<id>parker</id>
|
|
|
<!--项目开发者的全名 -->
|
|
|
<name>Parker Chou</name>
|
|
|
<!--项目开发者的email -->
|
|
|
<email>meet.parker@foxmail.com</email>
|
|
|
<!--项目开发者的主页的URL -->
|
|
|
<url>https://www.opsli.com</url>
|
|
|
<!--项目开发者在项目中扮演的角色,角色元素描述了各种角色 -->
|
|
|
<roles>
|
|
|
<role>Project Manager</role>
|
|
|
<role>Architect</role>
|
|
|
</roles>
|
|
|
<!--项目开发者所属组织 -->
|
|
|
<organization>personal</organization>
|
|
|
</developer>
|
|
|
</developers>
|
|
|
|
|
|
<!-- 父节点 -->
|
|
|
<parent>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|
|
<version>2.3.3.RELEASE</version>
|
|
|
<relativePath/> <!-- lookup parent from repository -->
|
|
|
</parent>
|
|
|
|
|
|
<!-- opsli-boot-parent 信息 -->
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
<groupId>org.opsliframework.boot</groupId>
|
|
|
<artifactId>opsli-boot-parent</artifactId>
|
|
|
<version>1.0.0</version>
|
|
|
<packaging>pom</packaging>
|
|
|
|
|
|
<!-- 引入 modules -->
|
|
|
<modules>
|
|
|
<module>opsli-api</module>
|
|
|
<module>opsli-base-support</module>
|
|
|
<module>opsli-plugins</module>
|
|
|
<module>opsli-modulars</module>
|
|
|
<module>opsli-starter</module>
|
|
|
</modules>
|
|
|
|
|
|
<!-- 全局版本 -->
|
|
|
<properties>
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
<java.version>1.8</java.version>
|
|
|
<spring-boot.version>2.3.3.RELEASE</spring-boot.version>
|
|
|
<skipTests>true</skipTests>
|
|
|
|
|
|
<fastjson.version>1.2.75</fastjson.version>
|
|
|
<mybatis-plus.version>3.4.0</mybatis-plus.version>
|
|
|
<pagehelper.version>1.3.0</pagehelper.version>
|
|
|
|
|
|
<jwt.version>3.10.3</jwt.version>
|
|
|
<oshi.version>5.6.1</oshi.version>
|
|
|
<jna.version>5.8.0</jna.version>
|
|
|
<ehcache.version>3.9.0</ehcache.version>
|
|
|
<redisson.version>3.15.4</redisson.version>
|
|
|
<captcha.version>1.6.2</captcha.version>
|
|
|
<shiro.redis.version>3.3.1</shiro.redis.version>
|
|
|
<bouncycastle.version>1.68</bouncycastle.version>
|
|
|
|
|
|
<!-- 数据库相关 -->
|
|
|
<druid.version>1.1.17</druid.version>
|
|
|
<dynamic.version>2.5.4</dynamic.version>
|
|
|
<mysql.version>8.0.20</mysql.version>
|
|
|
<sqlserver.version>4.0</sqlserver.version>
|
|
|
<oracle.version>11.2.0.3</oracle.version>
|
|
|
<postgresql.version>42.2.6</postgresql.version>
|
|
|
|
|
|
<!-- 工具 -->
|
|
|
<hutool.version>5.7.14</hutool.version>
|
|
|
<guava.version>29.0-jre</guava.version>
|
|
|
<commons.io.version>2.8.0</commons.io.version>
|
|
|
<commons.lang3.version>3.11</commons.lang3.version>
|
|
|
<snakeyaml.version>1.27</snakeyaml.version>
|
|
|
<email.version>1.6.2</email.version>
|
|
|
|
|
|
<!-- 需要使用着两个版本 来引入对应的模块和插件 -->
|
|
|
<!-- API版本 -->
|
|
|
<api.version>1.0.0</api.version>
|
|
|
<!-- 基础版本 -->
|
|
|
<base.version>1.0.0</base.version>
|
|
|
<!-- 插件版本 -->
|
|
|
<plugins.version>1.0.0</plugins.version>
|
|
|
<!-- 模块版本 -->
|
|
|
<modulars.version>1.0.0</modulars.version>
|
|
|
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
<!-- 包版本管理 -->
|
|
|
<dependencyManagement>
|
|
|
<dependencies>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-dependencies</artifactId>
|
|
|
<version>${spring-boot.version}</version>
|
|
|
<type>pom</type>
|
|
|
<scope>import</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- captcha -->
|
|
|
<dependency>
|
|
|
<groupId>com.github.whvcse</groupId>
|
|
|
<artifactId>easy-captcha</artifactId>
|
|
|
<version>${captcha.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- JWT -->
|
|
|
<dependency>
|
|
|
<groupId>com.auth0</groupId>
|
|
|
<artifactId>java-jwt</artifactId>
|
|
|
<version>${jwt.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Redisson -->
|
|
|
<dependency>
|
|
|
<groupId>org.redisson</groupId>
|
|
|
<artifactId>redisson</artifactId>
|
|
|
<version>${redisson.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- mybatis-plus -->
|
|
|
<dependency>
|
|
|
<groupId>com.baomidou</groupId>
|
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
|
<version>${mybatis-plus.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- page-helper 分页 -->
|
|
|
<dependency>
|
|
|
<groupId>com.github.pagehelper</groupId>
|
|
|
<artifactId>pagehelper-spring-boot-starter</artifactId>
|
|
|
<version>${pagehelper.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ShiroRedis包 -->
|
|
|
<dependency>
|
|
|
<groupId>org.crazycake</groupId>
|
|
|
<artifactId>shiro-redis-spring-boot-starter</artifactId>
|
|
|
<version>${shiro.redis.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.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!--mysql-->
|
|
|
<dependency>
|
|
|
<groupId>mysql</groupId>
|
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
|
<version>${mysql.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- sqlserver-->
|
|
|
<dependency>
|
|
|
<groupId>com.microsoft.sqlserver</groupId>
|
|
|
<artifactId>sqljdbc4</artifactId>
|
|
|
<version>${sqlserver.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- oracle驱动 -->
|
|
|
<dependency>
|
|
|
<groupId>com.oracle</groupId>
|
|
|
<artifactId>ojdbc6</artifactId>
|
|
|
<version>${oracle.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- postgresql驱动 -->
|
|
|
<dependency>
|
|
|
<groupId>org.postgresql</groupId>
|
|
|
<artifactId>postgresql</artifactId>
|
|
|
<version>${postgresql.version}</version>
|
|
|
<scope>runtime</scope>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- OSHI 系统监控-->
|
|
|
<dependency>
|
|
|
<groupId>com.github.oshi</groupId>
|
|
|
<artifactId>oshi-core</artifactId>
|
|
|
<version>${oshi.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>net.java.dev.jna</groupId>
|
|
|
<artifactId>jna-platform</artifactId>
|
|
|
<version>${jna.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
</dependencies>
|
|
|
</dependencyManagement>
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
|
<!-- ———————————————————— 集成springboot 相关组件 - 开始 ———————————————————— -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-test</artifactId>
|
|
|
<scope>test</scope>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-aop</artifactId>
|
|
|
</dependency>
|
|
|
<!-- actuator 端点监控 -->
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-actuator</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-starter-validation</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
<!-- 热部署 如果使用 Jrebel 忽略就好,如果不使用 Jrebel 则放开 -->
|
|
|
<!--
|
|
|
<dependency>
|
|
|
<groupId>org.springframework.boot</groupId>
|
|
|
<artifactId>spring-boot-devtools</artifactId>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
-->
|
|
|
<!-- ———————————————————— 集成springboot 相关组件 - 结束 ———————————————————— -->
|
|
|
|
|
|
<!-- ———————————————————— 集成工具 - 开始 ———————————————————— -->
|
|
|
<!-- commons -->
|
|
|
<dependency>
|
|
|
<groupId>commons-io</groupId>
|
|
|
<artifactId>commons-io</artifactId>
|
|
|
<version>${commons.io.version}</version>
|
|
|
</dependency>
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-lang3</artifactId>
|
|
|
<version>${commons.lang3.version}</version>
|
|
|
</dependency>
|
|
|
<!-- 池管理 -->
|
|
|
<dependency>
|
|
|
<groupId>org.apache.commons</groupId>
|
|
|
<artifactId>commons-pool2</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- guava -->
|
|
|
<dependency>
|
|
|
<groupId>com.google.guava</groupId>
|
|
|
<artifactId>guava</artifactId>
|
|
|
<version>${guava.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- Lombok -->
|
|
|
<dependency>
|
|
|
<groupId>org.projectlombok</groupId>
|
|
|
<artifactId>lombok</artifactId>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- alibaba fastjson -->
|
|
|
<dependency>
|
|
|
<groupId>com.alibaba</groupId>
|
|
|
<artifactId>fastjson</artifactId>
|
|
|
<version>${fastjson.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 糊涂工具包 -->
|
|
|
<dependency>
|
|
|
<groupId>cn.hutool</groupId>
|
|
|
<artifactId>hutool-all</artifactId>
|
|
|
<version>${hutool.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 国密算法包 -->
|
|
|
<dependency>
|
|
|
<groupId>org.bouncycastle</groupId>
|
|
|
<artifactId>bcprov-jdk15to18</artifactId>
|
|
|
<version>${bouncycastle.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
<!-- https://mvnrepository.com/artifact/org.yaml/snakeyaml -->
|
|
|
<dependency>
|
|
|
<groupId>org.yaml</groupId>
|
|
|
<artifactId>snakeyaml</artifactId>
|
|
|
<version>${snakeyaml.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
|
<groupId>com.sun.mail</groupId>
|
|
|
<artifactId>javax.mail</artifactId>
|
|
|
<version>${email.version}</version>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ———————————————————— 集成工具 - 结束 ———————————————————— -->
|
|
|
|
|
|
<!-- ———————————————————— OSS云存储 - 开始 ———————————————————— -->
|
|
|
<!-- 又拍云 USS -->
|
|
|
<dependency>
|
|
|
<groupId>com.upyun</groupId>
|
|
|
<artifactId>java-sdk</artifactId>
|
|
|
<version>4.2.2</version>
|
|
|
<scope>provided</scope>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 百度云 BOS -->
|
|
|
<dependency>
|
|
|
<groupId>com.baidubce</groupId>
|
|
|
<artifactId>bce-java-sdk</artifactId>
|
|
|
<version>0.10.162</version>
|
|
|
<scope>provided</scope>
|
|
|
<optional>true</optional>
|
|
|
<exclusions>
|
|
|
<exclusion>
|
|
|
<groupId>org.springframework</groupId>
|
|
|
<artifactId>spring-core</artifactId>
|
|
|
</exclusion>
|
|
|
</exclusions>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 腾讯云 COS -->
|
|
|
<dependency>
|
|
|
<groupId>com.qcloud</groupId>
|
|
|
<artifactId>cos_api</artifactId>
|
|
|
<version>5.6.38</version>
|
|
|
<scope>provided</scope>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 七牛云 Kodo -->
|
|
|
<dependency>
|
|
|
<groupId>com.qiniu</groupId>
|
|
|
<artifactId>qiniu-java-sdk</artifactId>
|
|
|
<version>7.4.0</version>
|
|
|
<scope>provided</scope>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- 阿里云 OSS -->
|
|
|
<dependency>
|
|
|
<groupId>com.aliyun.oss</groupId>
|
|
|
<artifactId>aliyun-sdk-oss</artifactId>
|
|
|
<version>3.6.0</version>
|
|
|
<scope>provided</scope>
|
|
|
<optional>true</optional>
|
|
|
</dependency>
|
|
|
|
|
|
<!-- ———————————————————— OSS云存储 - 结束 ———————————————————— -->
|
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 远程仓库 -->
|
|
|
<repositories>
|
|
|
<repository>
|
|
|
<id>aliyun</id>
|
|
|
<name>aliyun Repository</name>
|
|
|
<url>http://maven.aliyun.com/nexus/content/groups/public</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
<repository>
|
|
|
<id>uk</id>
|
|
|
<name>uk Repository</name>
|
|
|
<url>http://uk.maven.org/maven2/</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
<repository>
|
|
|
<id>ibiblio</id>
|
|
|
<name>ibiblio Repository</name>
|
|
|
<url>http://mirrors.ibiblio.org/pub/mirrors/maven2</url>
|
|
|
<snapshots>
|
|
|
<enabled>false</enabled>
|
|
|
</snapshots>
|
|
|
</repository>
|
|
|
</repositories>
|
|
|
|
|
|
|
|
|
<!-- 环境选择 -->
|
|
|
<profiles>
|
|
|
<profile>
|
|
|
<!-- 本地环境 -->
|
|
|
<id>local</id>
|
|
|
<properties>
|
|
|
<spring.active>local</spring.active>
|
|
|
</properties>
|
|
|
<activation>
|
|
|
<!-- 设置默认激活这个配置 -->
|
|
|
<activeByDefault>true</activeByDefault>
|
|
|
</activation>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<!-- 开发环境 -->
|
|
|
<id>dev</id>
|
|
|
<properties>
|
|
|
<spring.active>dev</spring.active>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<!-- 测试环境 -->
|
|
|
<id>test</id>
|
|
|
<properties>
|
|
|
<spring.active>test</spring.active>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<!-- 发布环境 -->
|
|
|
<id>prod</id>
|
|
|
<properties>
|
|
|
<spring.active>prod</spring.active>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
|
|
|
<!-- 构建 -->
|
|
|
<build>
|
|
|
<plugins>
|
|
|
<plugin>
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
<artifactId>maven-compiler-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<source>1.8</source>
|
|
|
<target>1.8</target>
|
|
|
<encoding>UTF-8</encoding>
|
|
|
</configuration>
|
|
|
</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>
|