【问题标题】:Maven can't resolve dependencies from Parent Module in IntelliJMaven 无法解析 IntelliJ 中父模块的依赖关系
【发布时间】:2021-02-19 08:54:21
【问题描述】:

我一直在尝试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/repository 中的所有内容并重新导入 jars。 Settings.xml 与我的团队成员在确切的位置和完全相同的副本中。

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

IntelliJ w Maven3 供参考。

【问题讨论】:

  • 你试过从操作系统终端运行 maven = 你得到什么结果?
  • 也试过了,没有成功,同样的错误信息。

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


【解决方案1】:

显然,这与手动安装 Lombok 有关,不知何故也与看似无关的软件包发生冲突。

【讨论】:

    猜你喜欢
    • 2020-09-17
    • 2016-03-10
    • 2012-12-17
    • 1970-01-01
    • 2015-06-25
    • 1970-01-01
    • 2020-08-16
    • 2021-03-24
    • 2020-09-09
    相关资源
    最近更新 更多