【问题标题】:Maven: Find where is artifact directoryMaven:查找工件目录在哪里
【发布时间】:2017-02-13 06:16:25
【问题描述】:

我收到与此问题相同的错误:When maven says "resolution will not be reattempted until the update interval of MyRepo has elapsed", where is that interval specified?

解决方案是删除特定的工件目录。但是我如何找到它在哪里呢?

按照here 的建议运行mvn clean install -U 对我不起作用。它给出了错误:

Could not find artifact <artifact info>... in central (https://repo.maven.apache.org/maven2)

【问题讨论】:

  • 你的本地仓库通常在用户的主目录.m2/repository/下,你是这个意思吗?
  • 这不是您问题的直接答案,但请尝试mvn dependency:purge-local-repository(仅运行此操作往往会导致构建失败,所以我可能会遗漏一些东西......但它似乎成功地从本地仓库)

标签: maven artifacts


【解决方案1】:

默认本地仓库将在 &lt;User_Home&gt;\.m2\repository

您可以检查您的 maven settings.xml 以查看是否配置了任何自定义目录。

【讨论】:

  • 哇,我知道 .m2 文件夹,但不知道他们在链接问题中指的是什么。删除该文件夹的内容似乎可以解决问题。
猜你喜欢
  • 2010-09-22
  • 2011-01-23
  • 1970-01-01
  • 2011-04-17
  • 2020-02-27
  • 1970-01-01
  • 1970-01-01
  • 2015-08-19
  • 1970-01-01
相关资源
最近更新 更多