idea导入springboot项目,下载的pom文件是html格式。<!doctype html> <html lang=“en“> <head><meta http-equiv=“content-

一、可以看到我的pom.xml的parent标签


	4.0.0
	
		org.springframework.boot
		spring-boot-starter-parent
		2.1.6.RELEASE
		 
	

二、通过maven下载的2.1.6.RELEASE.pom的格式是html类型

idea导入springboot项目,下载的pom文件是html格式。<!doctype html> <html lang=“en“> <head><meta http-equiv=“content-_第1张图片

三、解决方案:更换aliyun的maven镜像仓库

以前报错的镜像为:


	nexus-aliyun
	central
	Nexus aliyun
	http://maven.aliyun.com/nexus/content/groups/public

现更换为:


	aliyunmaven
	*
	阿里云公共仓库
	https://maven.aliyun.com/repository/public

四、补充

只要通过maven下载的文件出现html类型,那么都是maven仓库的问题

你可能感兴趣的:(java问题,intellij-idea,spring,boot,xml,pom)