plugin ‘org.springframework.boot:spring-boot-maven-plugin:‘not found

Today’s pom suddenly reported an error Plugin'org.springframework.boot:spring-boot-maven-plugin:' not found. Recalling previous experience, in this case, adding the version number can often solve
Insert picture description here
this situation. The idea is frustrating, or because there are at least two versions of spring-boot-maven-plugin in the spring-boot-maven-plugin folder in the warehouse, so it is impossible to identify which one to use in the pom, then follow this idea, We can also solve it by adding the tag <relativePath /> in the plugin tag

The function of this tag is to set an empty value to always be obtained from the warehouse, not from the local path. You need to add: 1 The order of resource acquisition in maven is the local warehouse (respository folder in your host) => Proxy service area = > Maven Central Warehouse 2 Regardless of which plugin or dependency, if similar problems arise, you can refer to the ideas in this article

Guess you like

Origin blog.csdn.net/wwwwwww31311/article/details/112919041