maven项目报错Unresolved plugin: ‘org.apache.maven.plugins

用Intellij Idea创建maven项目出现错误

Unresolved plugin: 'org.apache.maven.plugins:maven-jar-plugin:2.4'

Unresolved plugin: 'org.apache.maven.plugins:maven-compiler-plugin:3.1'

Unresolved plugin: 'org.apache.maven.plugins:maven-surefire-plugin:2.12.4'

Unresolved plugin: 'org.apache.maven.plugins:maven-install-plugin:2.4'

Unresolved plugin: 'org.apache.maven.plugins:maven-site-plugin:3.3'
试了很多方法发现都不行,最后发现是创建新的maven文件时

maven项目报错Unresolved plugin: ‘org.apache.maven.plugins_第1张图片

之前设置的home path: settings file:  local repository:都是变成了系统自带的,修改成自己下载的路径报错消失。

你可能感兴趣的:(maven,java,intellij-idea)