[path]中的Class-Path清单属性引用了一个或多个不存在的文件 [英] The Class-Path manifest attribute in [path] referenced one or more files that do not exist

查看:591
本文介绍了[path]中的Class-Path清单属性引用了一个或多个不存在的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I am having a problem with Java 11/Spring Boot 2.1 migration where the project compiles but when run returns only:

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编译器版本等.

I have tried updating maven versions, maven compiler version, etc.

我该如何解决?

推荐答案

添加-Xlint:-path

Add -Xlint:-path option to maven-compiler-plugin:

<plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.7.0</version>
    <configuration>
        <compilerArgs>
            <arg>-Xlint:-path</arg>
        </compilerArgs>
    </configuration>
</plugin>

这篇关于[path]中的Class-Path清单属性引用了一个或多个不存在的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆