java - [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 编译器版本等。
我该如何解决?
解决方案
请检查 pom.xml 中是否有“spring-boot-devtools 依赖项”,然后将其删除并重试
推荐阅读
- tfs - Azure DevOps Server 2019 - 如何选择多个构建
- c# - 在 Azure Cosmos DB 中重试 ExecuteNextAsync on 429 错误
- windows - 如何使用 Chef Windows 重启资源仅重启一次
- android - Android 和 Firebase Firestore:等待嵌套任务完成
- javascript - 我怎样才能让我的图像完全填满我的 div?
- c - 将键符名称转换为键码
- sql-server - 在使用 SQL Server 的查询中使用 SELECT SUM 的困难
- ubuntu - 在 1.17.2 上,每个新节点的 InternalIP 等于 ExternalIP
- r - 在ggplot中绘制具有固定效应相互作用的混合效应模型
- mysql - MySQL Workbench 不接受 JSON 文件(错误 1290)