在打开 PMD 插件运行 gradle 构建时,有时会发生这种情况,但并非总是如此。
FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all dependencies for configuration ':subproject:pmd'.
> Could not resolve net.sourceforge.pmd:pmd:5.0.2.
Required by:
XYZ:subproject:1.0b5.3625
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
> Could not resolve org.sonatype.oss:oss-parent:7.
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
> Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
我不知道如何处理这个暂时的问题。有什么线索吗?