<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>com.itheima</groupId> <artifactId>maven-project01</artifactId> <version>1.0-SNAPSHOT</version> <packaging>jar</packaging> <name>maven-project01</name> <url>http://maven.apache.org</url>
<!-- <properties>--> <!-- <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>--> <!-- </properties>-->
<properties> <maven.compiler.source>17</maven.compiler.source> <maven.compiler.target>17</maven.compiler.target> </properties> 将此依赖替换UTF-8,或许能解决,注意之前jdk版本的一致性
<dependencies> <dependency> <groupId>junit</groupId> <artifactId>junit</artifactId> <version>3.8.1</version> <scope>test</scope> </dependency> </dependencies> </project>
标签:maven,UTF,--,Maven,报错,版本,junit From: https://www.cnblogs.com/liushuosbkd2003/p/17832869.html