gpt4 book ai didi

java - 由于 Unresolved 依赖关系,Netbeans 构建失败,而 mvn 安装工作正常

转载 作者:行者123 更新时间:2023-11-30 06:30:05 25 4
gpt4 key购买 nike

当我尝试使用 Netbeans 7.1.2 构建/清理和构建/运行我的项目时,我总是遇到以下错误。

当我从命令行运行 mvn install 时,它工作正常。当我从本地 Maven 存储库中删除所有文件时第一次出现错误。

有人知道如何解决这个问题吗?

Failed to execute goal on project Entities: Could not resolve dependencies for project pl.zsk.samples:Entities:jar:1.2-SNAPSHOT: Failed to collect dependencies for [junit:junit:jar:4.10 (test), org.apache.derby:derby:jar:10.8.2.2 (test), org.apache.derby:derbyclient:jar:10.8.2.2 (test), org.dbunit:dbunit:jar:2.4.8 (test), org.slf4j:slf4j-jdk14:jar:1.6.4 (test), org.eclipse.persistence:javax.persistence:jar:2.0.3 (provided), org.eclipse.persistence:eclipselink:jar:2.3.2 (test), pl.zsk.samples:Exceptions:jar:1.2-SNAPSHOT (test), org.apache.commons:commons-lang3:jar:3.1 (provided)]: Failed to read artifact descriptor for pl.zsk.samples:Exceptions:jar:1.2-SNAPSHOT: Failure to find pl.zsk.samples:ProjektBazowy:pom:1.2012-SNAPSHOT in http://repo1.maven.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of Maven2 has elapsed or updates are forced -> [Help 1]

最佳答案

你真的不需要复制文件。在您的 Netbeans 中,只需转到:

Tools -> Options -> Java -> Maven -> Execution

并将 Maven Home 指向您的本地安装,而不是 Bundled

enter image description here

此设置内部存储在:

/home/<user>/.netbeans/8.1/config/Preferences/org/netbeans/modules/maven.properties

关于java - 由于 Unresolved 依赖关系,Netbeans 构建失败,而 mvn 安装工作正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10854406/

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