为什么不能找到依赖?

时间:2015-11-11 17:39:55

标签: java maven

如果我输入

mvn validate

它说一切都很好。

如果我输入

mvn compile

它说它无法找到依赖关系。如果我导航到本地存储库中的位置,则jar和pom文件都在那里。

以下是实际错误:

[ERROR] Failed to execute goal org.codehaus.enunciate:maven-enunciate-plugin:1.25:assemble (default) on project VCWH_Core_QueryService: Execution default of goal org.codehaus.enunciate:maven-enunciate-plugin:1.25:assemble failed: Plugin org.codehaus.enunciate:maven-enunciate-plugin:1.25 or one of its dependencies could not be resolved: Could not transfer artifact org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/23.235.40.215] failed: Connection timed out

此外,如果我点击链接https://repo.maven.apache.org/maven2它会成功显示我的在线存储库(虽然它转到repo1,而不是repo),我可以导航到org.codehaus.enunciate.maven-enunciate-plugin .1.25我可以看到jar和pom文件都在那里。 https://repo1.maven.org/maven2/org/codehaus/plexus/plexus-container-default/1.0-alpha-9/

也是如此

有什么想法吗?

0 个答案:

没有答案