maven的pom文件 Project build error: Unresolveable build extension: Plugin org.sonatype.plugins:nexus-st

当导入个maven项目时,提示出现以下错误:

Project build error: Unresolveable build extension: Plugin org.sonatype.plugins:nexus-staging-maven-plugin:1.6.3 or one of its dependencies 
 could not be resolved: The following artifacts could not be resolved: com.google.guava:guava:jar:14.0.1, org.sonatype.nexus:nexus-client-

 core:jar:2.7.2-01, org.sonatype.nexus.plugins:nexus-restlet1x-model:jar:2.7.2-01, org.apache.maven:maven-model:jar:3.0.4, org.slf4j:slf4j-api:jar:...........

或无法读取相关jar包

此刻需要重新加载一下,加载依赖jar包

1.选中这个项目 运行project---->clean

2.选中这个项目  运行Debug AS----->maven clean

3.加载pom里的jar,Debug AS----->maven INSTALL


或者尝试选中项目,maven>update project>勾选 force update。。。

猜你喜欢

转载自blog.csdn.net/m0_37988084/article/details/79528891