天天看点

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies...

前言:

我用的是联想小新pro13的笔记本,今天创建maven项目的时候死活报错。原以为是我配置文件写错了。我身边的其他小伙伴都建成功了,我就将他们的配置文件拷过来,还是不行,报

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Failed to resolve version for org.apache.maven.plugins:maven-archetype-plugin:jar:RELEASE: Could not find metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml in local (D:\maven-repo) -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException
[ERROR] Maven execution terminated abnormally (exit code 1)

           

几经周折之后,发现我和另两位同用联想小新的伙伴同报这样的错误,确定应该和电脑型号有关系。然后查资料发现是与安全凭证有关系。

1.首先选择file–>Other Settings–>Settings for New Projects如图所示

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies...

2.第二步点击maven中Runner

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies...

添加(忽略证书问题)

3.在Importing中的vm options for importer

[ERROR] Plugin org.apache.maven.plugins:maven-archetype-plugin:RELEASE or one of its dependencies...

添加

设置完新建个maven项目应该nice了

参考了这篇文章

https://www.jianshu.com/p/f0f1d6f33f97