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

  • maven
  • 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>

猜你喜欢