本人是个小菜,初接触maven,下载了那个es脚手架的开源项目,想研究下,无奈maven-db-plugin-1.4这个包是死活更新不下来,发现这个并不在中央仓库中,而是在这个位置:
https://maven-db-plugin.googlecode.com/svn/maven/repo/com/googlecode/maven-db-plugin/,找了半天也不知道肿么解决,一执行命令只下载个:maven-db-plugin-1.4.pom.lastUpdated这个东西,甚是无奈啊。不过还是用了一个比较笨的方法解决了,先记录下。。如果哪位朋友知道更好的方法,还请赐教。。。
如果你查看
引用
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
的话,会发现里面只有一个
maven-surefire-plugin-2.7.1.pom.lastUpdated
的文件.
而并没有maven-surefire-plugin-2.7.1.jar
解决办法:
1.删除maven-surefire-plugin-2.7.1.pom.lastUpdated文件
2.右键点击project -> Maven - Update Dependencies
如果点击更新后发现
~\.m2\repository\org\apache\maven\plugins\maven-surefire-plugin\2.7.1
下还是没有maven-surefire-plugin-2.7.1.jar
去http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-surefire-plugin/2.7.1/
下载
maven-surefire-plugin-2.7.1.jar
maven-surefire-plugin-2.7.1.jar.sha1
maven-surefire-plugin-2.7.1.pom
maven-surefire-plugin-2.7.1.pom.sha1
方法是类似如上这样,先谢过了。。。