再装好了maven以后,pom文件的出错一般都是jar包下载没有完成的问题。
今天导入毕业设计项目,pom文件报了如下错误:
Error resolving version for plugin 'org.apache.maven.plugins:maven-source-plugin' from the repositories [local (e:\m2\repo), internal-nexus-repository (http://maven.heetian.com/nexus/
content/groups/public/)]: Plugin not found in any plugin repository。
修复过程如下:
1. cd到项目文件:
cd /Users/alice/Documents/search/WSSearch
2. 在项目目录下执行mvn install
tip:mvn -version
可以知道maven信息,home,version
3. 然后在eclipse里update maven
或者
在~/.m2目录下的respority文件夹里删除下载未完成的jar包
重新倒入maven项目