spring-boot-maven-plugin引入出现爆红问题怎么回事

  介绍

本篇内容介绍了“spring-boot-maven-plugin引入出现爆红问题怎么回事”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

一、问题描述

换了一台电脑,重新进行想法安装配置。然后打开原来的项目结果引入spring-boot-maven-plugin出现爆红,而且spring-boot-starter-parent也不能引入。

二,解决办法

1。检查环境配置,主要是settings.xml此文件配置情况是否正确,是否加入阿里云镜像。最好用想法工具打开检查一下是否规范,此次我的问题就出在settings.xml报错了(网上随意复制粘贴了一个).settings。xml配置文件以及想法工具打开查看的方式如下所示。

 spring-boot-maven-plugin引入出现爆红问题怎么回事

& lt; ? xml  version=?.0“,编码=癠TF-8" ?比;   http://maven.apache.org/SETTINGS/1.0.0" & lt; settings  xmlns=?;   ,xmlns: xsi=癶ttp://www.w3.org/2001/XMLSchema-instance"   ,xsi: schemaLocation=癶ttp://maven.apache.org/SETTINGS/1.0.0 , http://maven.apache.org/xsd/settings-1.0.0.xsd"比;   & lt; !——,配置本地仓库地址,——比;   & lt; !——& lt; localRepository> E: \ maven \ repository——比;      & lt; !——,配置下载Jar包的镜像仓库地址,——比;   & lt; mirrors>      ,& lt; mirror>   & lt;才能id> alimaven</id>   & lt;才能name> aliyun  maven   & lt;才能url> http://maven.aliyun.com/nexus/content/groups/public/</url>   & lt;才能mirrorOf> central</mirrorOf>   ,& lt;/mirror>      ,& lt; mirror>   & lt;才能id> uk</id>   & lt;才能name> Human  Readable  Name  for 却;能够镜子。;/name>   & lt;才能url> http://uk.maven.org/maven2/</url>   & lt; mirrorOf> central   ,& lt;/mirror>      ,& lt; mirror>   & lt;才能id> nexus</id>   & lt;才能name> internal  nexus  repository   & lt;才能url> http://repo.maven.apache.org/maven2</url>   & lt;才能mirrorOf> central</mirrorOf>   ,& lt;/mirror>   & lt;/mirrors>      & lt; profiles>   & lt; !——,下载源代码和Javadoc ——比;   & lt; profile>   & lt; id> downloadSources   & lt; properties>   & lt; downloadSources> true   & lt; downloadJavadocs> true   & lt;/properties>   & lt;/profile>   & lt;/profiles>      & lt; !——,激活在概要文件的配置项,——比;   & lt; activeProfiles>   & lt; activeProfile> downloadSources   & lt;/activeProfiles>      & lt;/settings>

2。检查代码是否出错,加上具体版本号。

spring-boot-maven-plugin引入出现爆红问题怎么回事