mirror of
https://gitee.com/dromara/sa-token.git
synced 2026-02-27 16:50:24 +08:00
90 lines
2.5 KiB
XML
90 lines
2.5 KiB
XML
|
|
<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-springboot</artifactId>
|
|||
|
|
<version>0.0.1-SNAPSHOT</version>
|
|||
|
|
|
|||
|
|
<!-- SpringBoot -->
|
|||
|
|
<parent>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-parent</artifactId>
|
|||
|
|
<version>2.0.0.RELEASE</version>
|
|||
|
|
</parent>
|
|||
|
|
|
|||
|
|
<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>
|
|||
|
|
|
|||
|
|
<!-- sa-token 安全认证 -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>cn.dev33.sa-token</groupId>
|
|||
|
|
<artifactId>sa-token-spring</artifactId>
|
|||
|
|
<version>1.0.0</version>
|
|||
|
|
<scope>system</scope>
|
|||
|
|
<systemPath>${project.basedir}/lib/sa-token-spring-1.0.0.jar</systemPath>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
<!-- SpringBoot整合redis -->
|
|||
|
|
<dependency>
|
|||
|
|
<groupId>org.springframework.boot</groupId>
|
|||
|
|
<artifactId>spring-boot-starter-redis</artifactId>
|
|||
|
|
<version>RELEASE</version>
|
|||
|
|
</dependency>
|
|||
|
|
|
|||
|
|
</dependencies>
|
|||
|
|
|
|||
|
|
<!-- 配置打包 -->
|
|||
|
|
<build>
|
|||
|
|
<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>com.pj.SaTokenDemoApplication</mainClass>
|
|||
|
|
</manifest>
|
|||
|
|
<!-- jar清单添加此字符串 -->
|
|||
|
|
<manifestEntries>
|
|||
|
|
<Class-Path>lib/sa-token-spring-1.0.0.jar</Class-Path>
|
|||
|
|
</manifestEntries>
|
|||
|
|
</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>
|
|||
|
|
|
|||
|
|
|
|||
|
|
</project>
|