欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

完美解决:Error executing Maven. 2 problems were encountered while building the effective settings

程序员文章站 2022-07-14 17:05:54
...

问题:
且src目录和 webapp不显示完美解决:Error executing Maven. 2 problems were encountered while building the effective settings

解决办法:在你的maven——>comf ——>配置文件中修改settings.xml
配置远程仓库
**

重要:!!!! 检查每个标签是否有开头和结束标签**

<mirrors>
		<!--配置*仓库的镜像(远程仓库)-->
	   <mirror>
		  <id>alimaven</id>
		  <mirrorOf>central</mirrorOf>
		  <name>aliyun maven</name> 
		  <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
		</mirror>
	</mirrors>

配置本地仓库:

<!--配置本地仓库的位置-->
	<localRepository>E:\apache-maven-3.6.3\repo</localRepository>
相关标签: maven