Could not transfer artifact org.apache.maven.plugins解决

1. 检查maven的配置如下

image

2. 设置自己的settings

	<mirror>
		<id>alimaven</id>
		<name>aliyun maven</name>
		<url>http://maven.aliyun.com/nexus/content/repositories/central/</url>
		<mirrorOf>central</mirrorOf>
	</mirror>

	<!-- junit镜像地址 -->
	<mirror>
		<id>junit</id>
		<name>junit Address/</name>
		<url>http://jcenter.bintray.com/</url>
		<mirrorOf>central</mirrorOf>
	</mirror>

3. 给自己的idea添加证书

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true
image

posted @ 2021-12-15 18:36  1_f  阅读(433)  评论(0)    收藏  举报