我正在尝试设置示例应用程序以使用 Spring Batch git 文档在 MarkLogic 服务器中加载 100 个文档,但每次尝试运行我的工作时都会出现此错误:
*** What went wrong:
Execution failed for task ':runYourJob'.
> Could not resolve all files for configuration ':testRuntimeClasspath'.
> Could not download marklogic-xcc.jar (com.marklogic:marklogic-xcc:9.0.2)
> Could not get resource 'https://jcenter.bintray.com/com/marklogic/marklogic-xcc/9.0.2/marklogic-xcc-9.0.2.jar'.
> Could not GET 'https://repo.jfrog.org/artifactory/libs-release-bintray/com/marklogic/marklogic-xcc/9.0.2/marklogic-xcc-9.0.2.jar?referrer'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target**
基本设置的 URL 在这里:https ://github.com/marklogic-community/marklogic-spring-batch/wiki/Getting-Started
我使用 IntelliJ 作为 IDE,还尝试下载 .jar 并将其添加到类路径依赖项中。我很感激这里的任何帮助。我不确定这是否是一个 gradle 问题。
编辑:此错误在构建任何 marklogic gradle 应用程序时很常见,而不是特定于 spring。我在 windows 10 机器上的采用 OpenJDK11 上使用 MarkLogic 10 和 gradle 版本 5.4.1。