[path]中的Class-Path清单属性引用了一个或多个不存在的文件

8t1*_*081 10 java intellij-idea maven

我在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
Run Code Online (Sandbox Code Playgroud)

我试过更新Maven版本,Maven编译器版本等。

我该如何解决?

小智 6

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


8t1*_*081 4

由于这个问题持续获得流量,我将发布答案和评论的摘要 -

标题中描述的消息是警告,而不是错误,并且不应导致您的应用程序崩溃。

如果您的应用程序崩溃,请检查日志中是否存在可能导致应用程序退出的错误。

在没有错误输出的情况下,一些人报告该问题是由过时的依赖项引起的,该依赖项需要作为 Spring/Spring Boot/Java 升级的一部分进行更新。