0

对 Maven 的经验为零,我正在一个项目上运行 mvn clean install,这是我得到的错误:

[ERROR] Failed to execute goal on project dnasequencing.CompaNY.com: Could not resolve dependencies for project com.CompaNY.dnasequencing:dnasequencing.

CompaNY.com:war:1.0-SNAPSHOT: The following artifacts could not be resolved: dsr-kepler:dsr-kepler:jar:0.0.1-SNAPSHOT, dsr-parser:dsr-parser:jar:0.0.1-
SNAPSHOT: Failure to find dsr-kepler:dsr-kepler:jar:0.0.1-SNAPSHOT in http://repo1.maven.org/maven2/ was cached in the local repository, resolution 
will not be reattempted until the update interval of Maven_Central_Repo has elapsed or updates are forced -> [Help 1]

基于这些错误消息,我应该从什么出发点来查找问题所在?

4

1 回答 1

1

您可以强制 Maven 使用该-U标志更新快照。

至于出了什么问题,您可以随时使用浏览器查看实际的 Maven 网站,看看依赖项是否确实存在。

http://search.maven.org/

如果依赖项未托管在 Maven 中心,那么它似乎是一个本地依赖项,您必须将其安装在本地缓存中(mvn clean install从该项目运行)。

于 2012-09-28T20:00:47.093 回答