【发布时间】:2012-07-10 10:15:43
【问题描述】:
每次在我构建的任何项目上运行 mvn clean install 时,我总是会遇到 5-6 个包含以下内容的 pom 文件:
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx/0.6.39</center>
</body>
</html>
这也意味着这个 jar 文件只有 1 KB,里面什么都没有。我可以通过访问 search.maven.org 并找到 pom 和 .jar 并重新下载两者来解决此问题。这个问题有解决方案吗?我讨厌每次都这样做。在我的 linux 环境中,我看不到这个问题,但在 Windows 上,它看起来比正常情况更多。 谢谢, 史蒂夫。
【问题讨论】:
标签: windows linux apache maven command-line