gpt4 book ai didi

java - 使用 Maven 构建类路径失败

转载 作者:太空宇宙 更新时间:2023-11-04 12:00:05 25 4
gpt4 key购买 nike

我正在使用 Knowledge Graph Identification repository从 git。根据 README.md 文件,我能够使用 batsh fetchDataset.sh 下载数据集。然后我尝试使用 Maven 使用以下命令构建类路径。

~/KnowledgeGraphIdentification/nell_lazy$ mvn dependency:build-classpath -Dmdep.outputFile=classpath.out

但构建失败并显示以下消息。

[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building kgi 1.0.-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for edu.umd.cs:psl-groovy:jar:1.1 is missing, no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.306 s
[INFO] Finished at: 2018-10-15T16:28:45+05:30
[INFO] Final Memory: 9M/303M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project kgi: Could not resolve dependencies for project edu.umd.cs.psl.kgi:kgi:jar:1.0.-SNAPSHOT: Failure to find edu.umd.cs:psl-groovy:jar:1.1 in https://scm.umiacs.umd.edu/maven/lccd/content/repositories/psl-releases/ was cached in the local repository, resolution will not be reattempted until the update interval of psl-releases has elapsed or updates are forced -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

因此我检查了我的 Maven 和 Java 安装。

Apache Maven 3.3.9
Maven home: /usr/share/maven
Java version: 1.8.0_181, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "4.15.0-34-generic", arch: "amd64", family: "unix"

因此,对于为什么我使用 maven 构建类路径在这里失败的一些意见,我将不胜感激。

最佳答案

我不是你所在领域的专家,但你想要的 mvn repo 似乎已经移动,检查一下并希望它有所帮助:

https://github.com/linqs/psl/wiki/Migrating-to-PSL-2#maven-repository-move

https://github.com/linqs/psl/issues/33

关于java - 使用 Maven 构建类路径失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52815409/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com