spring-boot-maven-plugin引入出现爆红(已解决)

2025-05-29 0 23

一、问题描述

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

二、解决办法

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

spring-boot-maven-plugin引入出现爆红(已解决)

?

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

44

45

46

47

48

49
<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

<!-- 配置本地仓库地址 -->

<!--<localRepository>E:\\maven\\repository</localRepository>-->

<!-- 配置下载Jar包的镜像仓库地址 -->

<mirrors>

<mirror>

<id>alimaven</id>

<name>aliyun maven</name>

<url>http://maven.aliyun.com/nexus/content/groups/public/</url>

<mirrorOf>central</mirrorOf>

</mirror>

<mirror>

<id>uk</id>

<name>Human Readable Name for this Mirror.</name>

<url>http://uk.maven.org/maven2/</url>

<mirrorOf>central</mirrorOf>

</mirror>

<mirror>

<id>nexus</id>

<name>internal nexus repository</name>

<url>http://repo.maven.apache.org/maven2</url>

<mirrorOf>central</mirrorOf>

</mirror>

</mirrors>

<profiles>

<!-- 下载源代码和Javadoc -->

<profile>

<id>downloadSources</id>

<properties>

<downloadSources>true</downloadSources>

<downloadJavadocs>true</downloadJavadocs>

</properties>

</profile>

</profiles>

<!-- 激活在profiles的配置项 -->

<activeProfiles>

<activeProfile>downloadSources</activeProfile>

</activeProfiles>

</settings>

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

参考:https://blog.csdn.net/weixin_41988224/article/details/104388981

到此这篇关于spring-boot-maven-plugin引入出现爆红(已解决)的文章就介绍到这了,更多相关spring-boot-maven-plugin爆红内容请搜索快网idc以前的文章或继续浏览下面的相关文章希望大家以后多多支持快网idc!

原文链接:https://blog.csdn.net/qq_44654974/article/details/114459162

收藏 (0) 打赏

感谢您的支持,我会继续努力的!

打开微信/支付宝扫一扫,即可进行扫码打赏哦,分享从这里开始,精彩与您同在
点赞 (0)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。

快网idc优惠网 建站教程 spring-boot-maven-plugin引入出现爆红(已解决) https://www.kuaiidc.com/108645.html

相关文章

发表评论
暂无评论