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.
Similar Posts:
- How to Solve Error: spring-boot-maven-plugin not found
- SpringBoot Project Package Error: [ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plugin (Running Normally)
- [Solved] SpringBoot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:resources (default-res
- [Solved] Spring Boot Package Error: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0
- Failed to execute goal org.springframework.boot:spring-boot-maven-plugin:2.3.5. RELEASE:repackage (repackage) on project tristone-boot-module-system: zip file is empty
- Spring boot: run startup error [How to Solve]
- Unable to find a single main class from the following candidates [xxx,xxx]
- Unregistering JMX-exposed beans on shutdown Solution
- Eureka server project startup error handling
- Springboot always reports an error when importing JSP dependencies