sa-token/sa-token-demo/sa-token-demo-test/pom.xml

133 lines
3.7 KiB
XML
Raw Normal View History

2022-10-18 21:27:33 +08:00
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-demo-test</artifactId>
<version>0.0.1-SNAPSHOT</version>
<!-- SpringBoot -->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
2023-01-05 19:20:21 +08:00
<version>2.5.14</version>
<!--<version>2.3.0.RELEASE</version>-->
2022-10-18 21:27:33 +08:00
<!-- <version>1.5.9.RELEASE</version> -->
<relativePath/>
</parent>
2022-10-22 05:18:08 +08:00
<!-- 定义 Sa-Token 版本号 -->
2022-10-18 21:27:33 +08:00
<properties>
2025-01-31 22:33:25 +08:00
<sa-token.version>1.40.0</sa-token.version>
<java.run.main.class>com.pj.SaTokenApplication</java.run.main.class>
2022-10-18 21:27:33 +08:00
</properties>
<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-aop</artifactId>
</dependency>
2022-10-21 11:27:29 +08:00
<!-- Sa-Token 权限认证, 在线文档https://sa-token.cc/ -->
2022-10-18 21:27:33 +08:00
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
2022-10-22 05:18:08 +08:00
<version>${sa-token.version}</version>
2022-10-18 21:27:33 +08:00
</dependency>
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.8.16</version>
</dependency>
2022-10-18 21:27:33 +08:00
<!-- Sa-Token 整合 Redis (使用jdk默认序列化方式) -->
<!-- <dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-redis</artifactId>
2022-10-22 05:18:08 +08:00
<version>${sa-token.version}</version>
2022-10-18 21:27:33 +08:00
</dependency> -->
2022-10-18 21:27:33 +08:00
<!-- Sa-Token整合 Redis (使用jackson序列化方式) -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-redis-jackson</artifactId>
2022-10-22 05:18:08 +08:00
<version>${sa-token.version}</version>
2022-10-18 21:27:33 +08:00
</dependency>
<!-- 提供Redis连接池 -->
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
<!-- @ConfigurationProperties -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
2023-09-22 02:54:35 +08:00
2022-10-18 21:27:33 +08:00
</dependencies>
<!-- 构建配置 -->
<build>
<!-- 配置资源目录 -->
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.*</include>
</includes>
</resource>
</resources>
<plugins>
<!-- 打包jar文件时配置manifest文件加入lib包的jar依赖 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>${java.run.main.class}</mainClass>
</manifest>
</archive>
</configuration>
</plugin>
<!-- 拷贝依赖的jar包到lib目录 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<id>copy</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<configuration>
<outputDirectory>
${project.build.directory}/lib
</outputDirectory>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
2022-10-18 21:27:33 +08:00
</project>