修改原因: 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目标) - 所有模块构建成功 - 如有任何编译或运行问题,请及时反馈
95 lines
3.2 KiB
XML
95 lines
3.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-generator</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>
|
|
|
|
<!--velocity代码生成使用模板 -->
|
|
<dependency>
|
|
<groupId>org.apache.velocity</groupId>
|
|
<artifactId>velocity-engine-core</artifactId>
|
|
</dependency>
|
|
|
|
<!-- 通用模快-->
|
|
<dependency>
|
|
<groupId>com.starry</groupId>
|
|
<artifactId>play-common</artifactId>
|
|
<version>1.0</version>
|
|
</dependency>
|
|
|
|
<!-- 自定义验证注解 -->
|
|
<dependency>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-starter-validation</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>
|
|
|
|
<!-- MySQL驱动 -->
|
|
<dependency>
|
|
<groupId>mysql</groupId>
|
|
<artifactId>mysql-connector-java</artifactId>
|
|
<version>8.0.33</version>
|
|
</dependency>
|
|
|
|
<!-- 日志框架 -->
|
|
<dependency>
|
|
<groupId>ch.qos.logback</groupId>
|
|
<artifactId>logback-classic</artifactId>
|
|
</dependency>
|
|
|
|
</dependencies>
|
|
|
|
<!-- <build>-->
|
|
<!-- <plugins>-->
|
|
<!-- <plugin>-->
|
|
<!-- <groupId>org.apache.maven.plugins</groupId>-->
|
|
<!-- <artifactId>maven-compiler-plugin</artifactId>-->
|
|
<!-- <version>3.8.1</version>-->
|
|
<!-- <configuration>-->
|
|
<!-- <source>8</source>-->
|
|
<!-- <target>8</target>-->
|
|
<!-- <encoding>UTF-8</encoding>-->
|
|
<!-- </configuration>-->
|
|
<!-- </plugin>-->
|
|
<!-- -->
|
|
<!-- <!– 配置主类,可以直接运行 –>-->
|
|
<!-- <plugin>-->
|
|
<!-- <groupId>org.codehaus.mojo</groupId>-->
|
|
<!-- <artifactId>exec-maven-plugin</artifactId>-->
|
|
<!-- <version>3.1.0</version>-->
|
|
<!-- <configuration>-->
|
|
<!-- <mainClass>com.starry.generator.MainGeneratorWithConfig</mainClass>-->
|
|
<!-- </configuration>-->
|
|
<!-- </plugin>-->
|
|
<!-- </plugins>-->
|
|
<!-- </build>-->
|
|
|
|
</project> |