【发布时间】:2012-12-03 07:55:39
【问题描述】:
我正在尝试将一个文档记录不佳的软件用作库。在网站上,他们列出了其依赖项的工件 ID,但我猜他们删除了其中一个。
mvn compile 命令(在我的项目中,使用另一个作为依赖项)对于其中一个依赖项,我收到以下错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building <my software> 0.1
[INFO] ------------------------------------------------------------------------
[WARNING] The POM for <my dependency> no dependency information available
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 0.426s
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project <my project>: Could not resolve dependencies for project <my project>: Failure to find <my dependency> in http://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
在 Internet 上搜索我发现 Maven 默认使用 ibiblio.org 上的全球集中式存储库,但它们非常不太可能使用它。
由于他们不支持我,我需要通过他们的东西找到自己的方式,所以我的问题是:是否有发布 maven 存储库的标准方式?
例如,是否有与 groupId 关联的查找系统(通常采用 org.example.something 的形式)?
【问题讨论】:
-
除了@khmarbaise 的出色回答,我还可以推荐this tutorial site 中的Maven 存储库 部分。
标签: maven-2 repository conventions