[英]Maven Could not resolve dependencies for project, Failure to find snapshot in Nexus
I am having problems doing a build using : 我在使用构建时遇到问题:
mvn clean -U install -Dmaven.test.skip=true mvn clean -U install -Dmaven.test.skip = true
The artefact is not in nexus, but was created in my local repository. 该文物不在内部,而是在我的本地存储库中创建的。
[ERROR] Failed to execute goal on project mis-core: Could not resolve dependencies for project xyz:mis-core:ejb:0.0.1-SNAPSHOT: Failure to find xyz:mis-core-api:jar:tests:0.0.1-SNAPSHOT in https://company.net:8080/nexus/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of nexus-snapshots has elapsed or updates are forced. [错误]无法针对项目错误核心执行目标:无法解决项目xyz:mis-core:ejb:0.0.1-SNAPSHOT的依赖项:无法找到xyz:mis-core-api:jar:tests:0.0。 https://company.net:8080/nexus/content/repositories/snapshots中的 1-SNAPSHOT已缓存在本地存储库中,直到nexus-snapshots的更新间隔过去或强制执行更新后,才会尝试重新解析。
Any help will be appreciated. 任何帮助将不胜感激。
The -U parameter forces a check for updated releases and snapshots on remote repositories. -U参数强制检查远程存储库上的更新版本和快照。 Since there isn't an Artifact in Nexus, remove the forced check.
由于Nexus中没有工件,请删除强制检查。
mvn clean install -DskipTests
支持小组将我的机器列出并使用公司wifi的情况已得到解决。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.