VScode Java/Maven环境问题不同的计算机
Im使用jdk1.8.0_191、jre1.8.0_191和apache-maven-3.6.2 我有一个相当大的OpenLiberty/maven项目,它使用javax.xml.bind maven库:VScode Java/Maven环境问题不同的计算机,java,xml,maven,compilation,Java,Xml,Maven,Compilation,Im使用jdk1.8.0_191、jre1.8.0_191和apache-maven-3.6.2 我有一个相当大的OpenLiberty/maven项目,它使用javax.xml.bind maven库: <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.4.
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.4.0-b180830.0359</version>
</dependency>
但在我的ohter pc上,类方法呈现为:
public static javax.xml.bind.JAXBContext newInstance(java.lang.String pPath) throws javax.xml.bind.JAXBException {
return null;
}
这会导致编译错误,如
The method newInstance(String) in the type JAXBContext is not applicable for the arguments (Class<FormObject>)
,正在工作的有一堆文档
javax.xml.bind中还有更多的bug。*;lib,比如javax.xml.bind.Marshaller。我曾尝试进行mvn清洁安装,但似乎没有解决这个问题 给定的运行时真的是
jre1.9-0_191
。已将所有插件配置为版本以及所有依赖项是否已在两台pc上检查显示了什么mvn dependency:tree
?另一台电脑是否正确配置为能够访问中央存储库以下载依赖项?settings.xml文件是否与另一台计算机上的文件相同?mvn依赖项:清除本地存储库清除安装,解决了该问题
The method newInstance(String) in the type JAXBContext is not applicable for the arguments (Class<FormObject>)
// Failed to get sources. Instead, stub sources have been generated by the disassembler.
// Implementation of methods is unavailable.