2 Star 3 Fork 3

汪少棠/wmx-redis

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
pom-exlude.xml 5.29 KB
一键复制 编辑 原始数据 按行查看 历史
<?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.1.3.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.wmx</groupId>
<artifactId>wmx-redis</artifactId>
<version>0.0.3-SNAPSHOT</version>
<name>wmx-redis</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<!--排除掉默认的 lettuce-->
<exclusions>
<exclusion>
<artifactId>lettuce-core</artifactId>
<groupId>io.lettuce</groupId>
</exclusion>
</exclusions>
</dependency>
<!--引入 jedis 依赖-->
<!-- https://mvnrepository.com/artifact/redis.clients/jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<!--因为在spring-boot-starter-parent父项目中的dependencyManagement中已经约定了jedis的版本号,所以可以省略不写-->
</dependency>
<!-- https://mvnrepository.com/artifact/org.redisson/redisson -->
<dependency>
<groupId>org.redisson</groupId>
<artifactId>redisson</artifactId>
<version>3.13.4</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!--导入配置文件处理器,配置文件属性值与Java Bean进行绑定时就会有提示,不写不影响运行-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- 引入 Druid 数据源依赖:https://mvnrepository.com/artifact/com.alibaba/druid -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid</artifactId>
<version>1.1.9</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>29.0-jre</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.9</version>
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.5.7</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<!--Spring Boot 应用 Maven 打包插件(如果下面 maven-jar-plugin 需要排除启动类,则自己需要注释掉) -->
<!--<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>-->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<excludes>
<!-- 排除启动类(此时必须将 spring-boot-maven-plugin 注释掉,否则打包报错,因为它需要启动类) -->
<!-- 不排除启动类时,spring-boot-maven-plugin 可以不用注释掉 -->
<exclude>com/wmx/wmxredis/WmxRedisApplication.class</exclude>
<!-- 排除com.wmx包下所有以Controller结尾的控制层(两个星号表示任意级次,一个星表示任意字符) -->
<exclude>com/wmx/**/*Controller.class</exclude>
<!-- 排除com.wmx包下所有controller目录下的文件 -->
<exclude>com/wmx/**/controller/**</exclude>
<!-- 排除com.wmx包下的RedisConfig配置类 -->
<exclude>com/wmx/**/RedisConfig.class</exclude>
<!-- 排除 /resources 路径下的资源文件 -->
<exclude>*.yml</exclude>
<exclude>*.properties</exclude>
<exclude>*.txt</exclude>
<exclude>*.sh</exclude>
<exclude>static/**</exclude>
<exclude>public/**</exclude>
</excludes>
</configuration>
</plugin>
</plugins>
</build>
</project>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/wangmx1993/wmx-redis.git
[email protected]:wangmx1993/wmx-redis.git
wangmx1993
wmx-redis
wmx-redis
master

搜索帮助