coder-thin-template-backend/heritage-web/pom.xml
Leo 0af3b028d3 chore: 更新模块依赖配置和全局异常处理
【模块依赖更新】
- heritage-modules/pom.xml: 新增heritage-portal子模块
- heritage-web/pom.xml: 新增heritage-portal模块依赖

【全局异常处理优化】
- GlobalExceptionHandler: 新增Sa-Token相关异常处理
- 新增NotLoginException处理(未登录异常)
- 新增NotPermissionException处理(无权限异常)
- 新增NotRoleException处理(无角色异常)
- 优化异常返回信息,提供更友好的错误提示
2025-10-13 20:37:51 +08:00

111 lines
3.9 KiB
XML

<?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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-backend</artifactId>
<version>${revision}</version>
</parent>
<name>heritage-web</name>
<artifactId>heritage-web</artifactId>
<description>入口项目,负责打包</description>
<dependencies>
<!-- SpringBoot Web容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<!-- Sa-Token模块和系统管理模块 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-system</artifactId>
<version>${revision}</version>
</dependency>
<!-- 前台业务模块 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-portal</artifactId>
<version>${revision}</version>
</dependency>
<!-- SpringDoc OpenAPI 3.0 -->
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-starter-webmvc-ui</artifactId>
</dependency>
<!-- OSS对象存储模块 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-oss</artifactId>
<version>${revision}</version>
</dependency>
<!-- 字典管理模块 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-dict</artifactId>
<version>${revision}</version>
</dependency>
<!-- 定时任务 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-job</artifactId>
<version>${revision}</version>
</dependency>
<!-- 代码生成器 -->
<!-- <dependency> -->
<!-- <groupId>org.leocoder.heritage</groupId> -->
<!-- <artifactId>heritage-generator</artifactId> -->
<!-- <version>${revision}</version> -->
<!-- </dependency> -->
<!-- 监控模块 -->
<dependency>
<groupId>org.leocoder.heritage</groupId>
<artifactId>heritage-monitor</artifactId>
<version>${revision}</version>
</dependency>
<!-- 热榜API模块 -->
<!-- <dependency> -->
<!-- <groupId>org.leocoder.heritage</groupId> -->
<!-- <artifactId>coder-hotlist-api</artifactId> -->
<!-- <version>${revision}</version> -->
<!-- </dependency> -->
</dependencies>
<build>
<!-- 指定打包名字 -->
<finalName>coder-admin</finalName>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${springboot.version}</version>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
<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>
</build>
</project>