简体   繁体   中英

maven 301 Moved Permanently

Every time I run mvn clean install on any project I build, I always come across 5-6 pom files that contain this:

<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>

This also means that the jar is only 1 KB and contains nothing in it. I can fix this by going to search.maven.org and finding the pom and .jar and redownloading both. Is there a solution to this issue? I hate having to do this every time. On my linux environment I don't see this issue but on windows it appears more than normal. Thanks, Steve.

That looks like one of your repositories is not working correctly. In particular the message nginx means you don't use a repository manager. If you are behind a proxy that might be the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM