修改原因: 1. 解决Java版本不一致导致的编译问题 2. 确保模块间的二进制兼容性,避免ClassLoader冲突 3. 统一项目配置,遵循父POM中定义的Java 11标准 4. 消除运行时可能出现的UnsupportedClassVersionError 变更内容: - play-common模块:Java 8 → Java 11 - play-generator模块:Java 8 → Java 11 - 保持与play-admin模块和父POM的版本一致性 测试状态: - 本地编译通过 (使用Java 17,兼容Java 11目标) - 所有模块构建成功 - 如有任何编译或运行问题,请及时反馈
127 lines
4.2 KiB
XML
127 lines
4.2 KiB
XML
<?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>
|
|
<parent>
|
|
<groupId>com.starry</groupId>
|
|
<artifactId>play-with</artifactId>
|
|
<version>1.0</version>
|
|
</parent>
|
|
|
|
<artifactId>play-common</artifactId>
|
|
|
|
<properties>
|
|
<maven.compiler.source>11</maven.compiler.source>
|
|
<maven.compiler.target>11</maven.compiler.target>
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!--引入springboot-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-web</artifactId>
|
|
</dependency>
|
|
|
|
<!--SpringSecurity依赖配置-->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-security</artifactId>
|
|
</dependency>
|
|
|
|
<!--简化对象封装工具-->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok</artifactId>
|
|
<version>1.18.30</version>
|
|
<scope>provided</scope>
|
|
</dependency>
|
|
<!-- Add lombok annotation processor -->
|
|
<dependency>
|
|
<groupId>org.projectlombok</groupId>
|
|
<artifactId>lombok-mapstruct-binding</artifactId>
|
|
<version>0.2.0</version>
|
|
</dependency>
|
|
<!--mybatis-plus-->
|
|
<dependency>
|
|
<groupId>com.baomidou</groupId>
|
|
<artifactId>mybatis-plus-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.yulichang</groupId>
|
|
<artifactId>mybatis-plus-join-boot-starter</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>javax.persistence</groupId>
|
|
<artifactId>javax.persistence-api</artifactId>
|
|
</dependency>
|
|
<!-- druid连接池 -->
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>druid-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<!--swagger-->
|
|
<dependency>
|
|
<groupId>com.github.xiaoymin</groupId>
|
|
<artifactId>knife4j-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
<!--常用工具类 -->
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
<!-- io常用工具类 -->
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
</dependency>
|
|
<!-- 获取系统信息 -->
|
|
<dependency>
|
|
<groupId>com.github.oshi</groupId>
|
|
<artifactId>oshi-core</artifactId>
|
|
</dependency>
|
|
<!-- hutool 工具类库 -->
|
|
<dependency>
|
|
<groupId>cn.hutool</groupId>
|
|
<artifactId>hutool-all</artifactId>
|
|
</dependency>
|
|
<!-- 自定义验证注解 -->
|
|
<dependency>
|
|
<groupId>javax.validation</groupId>
|
|
<artifactId>validation-api</artifactId>
|
|
</dependency>
|
|
<!-- redis 缓存操作 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-data-redis</artifactId>
|
|
</dependency>
|
|
<!-- 阿里JSON解析器 -->
|
|
<dependency>
|
|
<groupId>com.alibaba.fastjson2</groupId>
|
|
<artifactId>fastjson2</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>com.github.gavlyukovskiy</groupId>
|
|
<artifactId>p6spy-spring-boot-starter</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>com.google.code.gson</groupId>
|
|
<artifactId>gson</artifactId>
|
|
</dependency>
|
|
|
|
|
|
<dependency>
|
|
<groupId>org.lionsoul</groupId>
|
|
<artifactId>ip2region</artifactId>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.alibaba</groupId>
|
|
<artifactId>transmittable-thread-local</artifactId>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
</project> |