首页 > 解决方案 > [path] 中的 Class-Path 清单属性引用了一个或多个不存在的文件

问题描述

我在项目编译但运行时仅返回时遇到 Java 11/Spring Boot 2.1 迁移问题:

Connected to the target VM, address: '127.0.0.1:5754', transport: 'socket'
The Class-Path manifest attribute in C:\Users\{user}\.m2\repository\xalan\serializer\2.7.2\serializer-2.7.2.jar referenced one or more files that do not exist: 
file:/C:/Users/{user}/.m2/repository/xalan/serializer/2.7.2/xml-apis.jar
The Class-Path manifest attribute in C:\Users\{user}\.m2\repository\xalan\xalan\2.7.2\xalan-2.7.2.jar referenced one or more files that do not exist: 
file:/C:/Users/{user}/.m2/repository/xalan/xalan/2.7.2/xercesImpl.jar,file:/C:/Users/{user}/.m2/repository/xalan/xalan/2.7.2/xml-apis.jar,file:/C:/Users/{user}/.m2/repository/xalan/xalan/2.7.2/serializer.jar
Disconnected from the target VM, address: '127.0.0.1:5754', transport: 'socket'

Process finished with exit code 1

我尝试过更新 maven 版本、maven 编译器版本等。

我该如何解决?

标签: javamavenintellij-idea

解决方案


请检查 pom.xml 中是否有“spring-boot-devtools 依赖项”,然后将其删除并重试


推荐阅读