org.springframework.boot <artifactId>spring-boot-maven-plugin</artifactId>Plugin ‘org.springframewor

Plugin ‘org.springframework.boot:spring-boot-maven-plugin:’ not found spring-boot-maven-plugin报错

Insert image description here
If this kind of error occurs, follow me and you will be able to solve it and solve it from the root cause.

first step

The first step is to check your maven environment configuration
Insert image description here
Come on, pay attention, the default is Figure 1. If you don’t know whether you have maven installed, then open your Press win+R, enter cmd and press Enter to get Figure 2. figure 1
Enter the cmd command mvn -version
If this is the case, it means you have installed it. You can also find where you installed it, then remember it and look for it again.
figure 2

6 in Figure 3, this step is to find the location of a setting.xml that I configured.
image 3
The so-called configuring setting.xml means changing its image. I changed it to Alibaba Cloud mirroring, this way it is much faster to load some data. If you need to configure it, you can copy the following.

<mirror>
<id>aliyunmaven</id>
<mirrorOf>*</mirrorOf>
<name>阿里云公共仓库</name>
<url>https://maven.aliyun.com/repository/public</url>
</mirror>
</mirrors>

Open the setting.xml code with an editor, preferably one that can see the number of color lines. Add this dependency code after line 166 to indicate that you will use the Alibaba Cloud image to download in the future. .
Insert image description here
If you have not configured it, it may be .m2 under the default user. This does not matter, but it will be downloaded to your C drive when downloading.
OK, click Apply, OK.

Step 2

Insert image description here

Go to the right side of your idea to find maven, click clean, click the green triangle to clear the cache, and reload it. Some people may succeed at this step. If you still don't succeed, then follow me and keep working backwards! !

third step

Find your pom.xml file, find the location as shown below, and check your version number
Insert image description here
Copy this version number to the location where the error was reported

<version>3.1.5</version>

Insert image description here
OK, the error is easily solved! !

Guess you like

Origin blog.csdn.net/qq_52342759/article/details/134191031