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.
530 lines
18 KiB
530 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">
|
|
|
|
<!--项目的名称, Maven产生的文档用 -->
|
|
<name>opsli-boot-parent</name>
|
|
<!--项目主页的URL, Maven产生的文档用 -->
|
|
<url>https://www.opsli.com</url>
|
|
<!-- 描述 -->
|
|
<description>一个基于springboot、vue、element-ui、集成代码生成器的Java开源快速开发框架。</description>
|
|
<!--项目开发者列表 -->
|
|
<developers>
|
|
<!--项目开发者的信息 -->
|
|
<developer>
|
|
<!--项目开发者的唯一标识符 -->
|
|
<id>parker</id>
|
|
<!--项目开发者的全名 -->
|
|
<name>Parker Zhou</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.7.10</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>
|
|
<!-- 修复 CVE-2023-20860 -->
|
|
<spring-boot.version>2.7.10</spring-boot.version>
|
|
<skipTests>true</skipTests>
|
|
|
|
<fastjson.version>1.2.83</fastjson.version>
|
|
<mybatis.version>3.5.9</mybatis.version>
|
|
<mybatis-plus.version>3.5.2</mybatis-plus.version>
|
|
<pagehelper.version>1.4.6</pagehelper.version>
|
|
<knife4j.version>3.0.3</knife4j.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>
|
|
<bouncycastle.version>1.69</bouncycastle.version>
|
|
|
|
<!-- 数据库相关 -->
|
|
<druid.version>1.1.17</druid.version>
|
|
<dynamic.version>2.5.4</dynamic.version>
|
|
<mysql.version>8.0.28</mysql.version>
|
|
<sqlserver.version>4.0</sqlserver.version>
|
|
<oracle.version>11.2.0.3</oracle.version>
|
|
<postgresql.version>42.3.3</postgresql.version>
|
|
|
|
<!-- 工具 -->
|
|
<hutool.version>5.7.14</hutool.version>
|
|
<guava.version>30.0-android</guava.version>
|
|
<commons.io.version>2.11.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>
|
|
<logback.version>1.2.9</logback.version>
|
|
<protobuf-java.version>3.18.2</protobuf-java.version>
|
|
<beanutils.version>1.9.4</beanutils.version>
|
|
<transmittable.version>2.12.5</transmittable.version>
|
|
<cglib.version>3.3.0</cglib.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>
|
|
<exclusions>
|
|
<!-- 修复 CVE-2021-42550 -->
|
|
<exclusion>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-access</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
</exclusion>
|
|
<exclusion>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
</exclusion>
|
|
|
|
<!-- 修复 CVE-2022-21363 -->
|
|
<exclusion>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
</exclusion>
|
|
</exclusions>
|
|
</dependency>
|
|
|
|
<!-- captcha -->
|
|
<dependency>
|
|
<groupId>com.github.whvcse</groupId>
|
|
<artifactId>easy-captcha</artifactId>
|
|
<version>${captcha.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib</artifactId>
|
|
<version>${cglib.version}</version>
|
|
<scope>compile</scope>
|
|
</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>org.mybatis</groupId>
|
|
<artifactId>mybatis</artifactId>
|
|
<version>${mybatis.version}</version>
|
|
</dependency>
|
|
<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.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>
|
|
|
|
<!-- 修复 CVE-2021-22569 -->
|
|
<dependency>
|
|
<groupId>com.google.protobuf</groupId>
|
|
<artifactId>protobuf-java</artifactId>
|
|
<version>${protobuf-java.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.jfinal</groupId>
|
|
<artifactId>enjoy</artifactId>
|
|
<version>4.9.06</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>
|
|
</dependency>
|
|
<!-- 池管理 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-pool2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>commons-beanutils</groupId>
|
|
<artifactId>commons-beanutils</artifactId>
|
|
<version>${beanutils.version}</version>
|
|
</dependency>
|
|
|
|
|
|
<!-- 修复 CVE-2020-8908 -->
|
|
<!-- 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>com.alibaba</groupId>
|
|
<artifactId>transmittable-thread-local</artifactId>
|
|
<version>${transmittable.version}</version>
|
|
</dependency>
|
|
|
|
<!-- 糊涂工具包 -->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
<version>${hutool.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>cglib</groupId>
|
|
<artifactId>cglib</artifactId>
|
|
<version>${cglib.version}</version>
|
|
<scope>compile</scope>
|
|
</dependency>
|
|
|
|
<!-- 修复 Cxa9261daf-3755 -->
|
|
<!-- 国密算法包 -->
|
|
<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>
|
|
|
|
<!-- 修复 CVE-2021-42550 -->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-access</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-core</artifactId>
|
|
<version>${logback.version}</version>
|
|
</dependency>
|
|
|
|
<!-- ———————————————————— 集成工具 - 结束 ———————————————————— -->
|
|
|
|
<!-- ———————————————————— OSS云存储 - 开始 ———————————————————— -->
|
|
<!-- 又拍云 USS -->
|
|
<dependency>
|
|
<groupId>com.upyun</groupId>
|
|
<artifactId>java-sdk</artifactId>
|
|
<version>4.2.3</version>
|
|
<scope>provided</scope>
|
|
<optional>true</optional>
|
|
</dependency>
|
|
|
|
<!-- 阿里云 OSS -->
|
|
<dependency>
|
|
<groupId>com.aliyun.oss</groupId>
|
|
<artifactId>aliyun-sdk-oss</artifactId>
|
|
<version>3.15.1</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>
|