与maven存储库的问题

时间:2014-02-03 01:14:38

标签: java maven

我只想知道maven是否会在将依赖项添加到pom.xml后自动触发并保存?

因为我刚刚在现有的pom.xml中添加了一个新的依赖项,它给了我以下错误

ArtifactDescriptorException: Failed to read artifact descriptor for org.springframework:spring-oxm:jar:3.0.5.RELEASE: ArtifactResolutionException: Could not transfer artifact org.springframework:spring-oxm:pom:3.0.5.RELEASE from/to nexus (http://vdidev-v1102-p:8081/nexus/content/groups/GroupMoodysFlexApps/): connection timed out to http://vdidev-v1102-p:8081/nexus/content/groups/GroupMoodysFlexApps/org/springframework/spring-oxm/3.0.5.RELEASE/spring-oxm-3.0.5.RELEASE.pom

1 个答案:

答案 0 :(得分:0)

是的,当你添加依赖项并调用maven编译阶段时,它必须下载所有依赖项,如果它没有在本地缓存中找到它,如果你使用的是某些IDE(eclipse或其他东西),它们通常会在你保存时触发编译{{ 1}}

问题在于,它无法访问此网址

pom.xml