搭建nexus服务器,请参考:
http://www.blogjava.net/xiaomage234/archive/2012/11/22/391770.html
搭建完成后在setting.xml中配置镜像
<mirrors> <mirror> <id>public</id> <mirrorOf>*</mirrorOf> <name>Public Repositories</name> <url>http://localhost:9088/maven/content/groups/public/</url> </mirror> </mirrors>
然后在mvn项目下执行mvn clean install命令出错:
Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to fin
d org.apache.maven.plugins:maven-clean-plugin:jar:2.5 in http://localhost:90
88/maven/content/groups/public/ was cached in the local repository, resolution w
ill not be reattempted until the update interval of public has elapsed or update
s are forced
解决办法:
1. 执行命令时加上-U
mvn clean install -U
2.
|
You need to delete all "_maven.repositories" files from your repository.呵呵引用下面文章的话 |
http://stackoverflow.com/questions/4856307/when-maven-says-resolution-will-not-be-reattempted-until-the-update-interval-of