Maven无法从IntelliJ中的父模块解析依赖项

时间:2020-11-06 15:50:54

标签: spring-boot intellij-idea maven-3 dependency-management

我一直在尝试clean install的几个模块,这些模块在Nexus中都具有相同的父模块,但是这导致所有来自IntelliJ的错误相同:

Could not resolve dependencies for project com.child-module:child-artifact-id:1.0.0: Failure to find parent-group-id:parent-artifact-id:jar:1.0.0-SNAPSHOT in http://nexus.workplace.com/content/repositories/workplace-internal-snapshot/ was cached in the local repository, resolution will not be reattempted until the update interval of snapshots has elapsed or updated are forced.

尝试了各种StackOverflow答案的多种解决方案,包括删除缺少的工件的“ _maven.repository”。我还尝试了强制mvn clean install -Umvn dependency:purge-local-repository clean install命令。我删除了我的Users / me / .m2 /存储库中的所有内容,然后重新导入了jar。 Settings.xml和我的团队成员一样在正确的位置,并且完全相同。

导入的父pom与其他人的pom相同,因此即使在实现了上述解决方案后,由于某种原因,我的本地计算机也没有更新/查找依赖项。我可以在本地其他地方检查是否可能导致此问题?

有关此信息,请参阅IntelliJ w Maven3。

1 个答案:

答案 0 :(得分:0)

显然,这与手动安装Lombok有关,后者在某种程度上也与看似无关的软件包冲突。