preface:
When configuring spring boot maven, the software reports an error: plugin ‘org. Springframework. Boot: spring boot Maven plugin:’ not found
With the help of CSDN and the wisdom of bloggers in the blog Park, this problem has been solved. Now the solution process is recorded for follow-up reference.
Solution:
In pom.xml, my original configuration is as follows:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
In Maven library, it is found that the repository\ORG\springframework\boot\spring boot Maven plugin has related plug-ins 2.1.7. Release
Supplement the version on pom.xml:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>2.1.7.RELEASE</version>
</plugin>
After updating the maven configuration, I found that this error is no longer reported.
There is a new error “Element’plugin’ cannot have character [children], because the type’s content type is element-only”.
After checking the pom.xml, I found </version>
that I did not add in the previous step . Be careful to type an extra “>” and</version>>
it finally became normal after removing the extra brackets.