How to solve Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/...

When using idea to create a new Maven project, I reported Could not transfer metadata org.apache.maven.plugins:maven-archetype-plugin/maven-metadata.xml from/to alimaven (http://maven.aliyun.com/nexus/content /repositories/central/): Transfer failed for http://maven.aliyun.com/nexus/content/repositories/central/o . The online explanation explains the reason for the mirroring. I have already set the mirror source before. The settings are as follows:


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

 So it’s not a problem with the mirror source at all. Next, I’ll explain another solution:

Next, follow the instructions

The relevant information entered is as follows, please copy it yourself:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true -Dmaven.wagon.http.ssl.ignore.validity.dates=true

Then click Maven refresh

Finally, the construction is successful

 

Guess you like

Origin blog.csdn.net/xgysimida/article/details/108517420