加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom.xml 8.20 KB
一键复制 编辑 原始数据 按行查看 历史
玉米粥呀 提交于 2023-02-26 01:42 . feat: 排除log4j的所有依赖
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="http://maven.apache.org/POM/4.0.0"
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>com.mofum.scope</groupId>
<artifactId>parent</artifactId>
<version>2.0.0.RELEASE</version>
<packaging>pom</packaging>
<modules>
<module>scope-common</module>
<module>scope-web-boot</module>
<module>scope-orm-mybatis</module>
<module>scope-mybatis-boot-starter</module>
</modules>
<properties>
<!-- project versions-->
<open-scope.version>2.0.0.RELEASE</open-scope.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<java.version>1.8</java.version>
<compile.version>8</compile.version>
<!-- compile versions -->
<lombok.version>1.18.24</lombok.version>
<spring-boot.version>2.5.14</spring-boot.version>
<mybatis.version>3.5.6</mybatis.version>
<mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
<hutool.version>5.8.12</hutool.version>
<druid.version>1.2.11</druid.version>
<!-- test versions -->
<junit.version>4.13.2</junit.version>
<h2.version>2.1.214</h2.version>
<cglib.version>3.3.0</cglib.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
</dependency>
</dependencies>
<dependencyManagement>
<dependencies>
<!-- Sub model dependency -->
<dependency>
<groupId>com.mofum.scope</groupId>
<artifactId>scope-common</artifactId>
<version>${open-scope.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mofum.scope</groupId>
<artifactId>scope-web-boot</artifactId>
<version>${open-scope.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mofum.scope</groupId>
<artifactId>scope-orm-mybatis</artifactId>
<version>${open-scope.version}</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.mofum.scope</groupId>
<artifactId>scope-mybatis-boot-starter</artifactId>
<version>${open-scope.version}</version>
<scope>compile</scope>
</dependency>
<!-- Third party dependency -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>${druid.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mybatis</groupId>
<artifactId>mybatis</artifactId>
<version>${mybatis.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<version>${spring-boot.version}</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-autoconfigure</artifactId>
<version>${spring-boot.version}</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<version>${spring-boot.version}</version>
<scope>compile</scope>
<optional>true</optional>
<exclusions>
<exclusion>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>cglib</groupId>
<artifactId>cglib-nodep</artifactId>
<version>${cglib.version}</version>
<scope>compile</scope>
<optional>true</optional>
</dependency>
<!-- Test dependency -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>${spring-boot.version}</version>
<scope>test</scope>
<optional>true</optional>
</dependency>
<!-- base dependency-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${lombok.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>${hutool.version}</version>
<scope>compile</scope>
</dependency>
</dependencies>
</dependencyManagement>
<build>
<!-- maven plugin-->
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.5.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<encoding>${project.build.sourceEncoding}</encoding>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</project>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化