IDEA Maven报错Cannot resolve plugin org.apache.maven.plugins:maven-clean-plugin:2.5
我的配置是IDEA2020.1 ,Maven3.6.3。不只是报如上的错,还有导入项目之后,clean也报:。lugin 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:\apache-maven-3.6.1-bin\apache-maven-3.6.1\Repository) -> [Help 1]之类的。反正就是一堆错。但是去本地库里面发现其实有下载部分jar包。整了一下午【哭】
-
https://www.imooc.com/wenda/detail/308651中获得的解决方法。有的项目成果了,但是后面再试其他的依旧失败
1.首先关闭IDEA
2.删除存储库目录下全部东西
3.启动IDEA
4.在项目上选择maven菜单,选择菜单中的Repositories,点击upate。 -
不知道是不是巧合,我删除了MAven3.6.3,重新下载安装3.6.1,流程大概就是exe》配置环境变量》修改setting.xml》IDEA上设置一下(每次新建一个项目或者导入都要看看settings!)
setting.xml中改动如下:
<localRepository>D:\apache-maven-3.6.1-bin\apache-maven-3.6.1\Repository</localRepository>
<mirror>
<id>alimaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun maven</name>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
<profile>
<id>jdk-1.8</id>
<activation>
<jdk>1.8</jdk>
</activation>
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.compilerVersion>1.8</maven.compiler.compilerVersion>
</properties>
</profile>
importing下的 VM options for importer我设的是
-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
Runer 中 VM options
-DarchetypeCatalog=local
更多推荐
所有评论(0)