eclipse maven web project creation error solution

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weizhida_/article/details/102776222

eclipse maven web project creation error solution

Build maven web project in eclipse will complain, (later to solve the problem of error can not reproduce, so there is no chart) after the investigation found that the use of aliyun maven caused in conf / settings.xml the aliyun maven of mirror Remark out can be created. However, when downloading dependencies maven central warehouse sometimes because they do not move some reason. aliyun still want to see the other side there is no solution.
by accessing
https://maven.aliyun.com/mvn/ View .
can be found Ali cloud warehouse address, change of address found in the upper right corner of the page there is a FAQ
https://yq.aliyun.com/articles/621196?spm=a2c40.aliyun_maven_repo.0.0.36183054333xv2 .
have to address changing interpretations Here Insert Picture Description
Although you can use the previous address of the warehouse, there is a problem but I can not create a web project, change to the new warehouse address can create a normal

the settings.xml <mirrors> Lane configuration

	<mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
        <url><!-- http://maven.aliyun.com/nexus/content/groups/public -->
		https://maven.aliyun.com/repository/public</url>
        <mirrorOf>central</mirrorOf>
    </mirror>

Restart eclipse, create a maven web project can create normal

Guess you like

Origin blog.csdn.net/weizhida_/article/details/102776222