Error resolving version for plugin spring-boot-maven-plugin'

Viewed 2801

getting below error in eclipse while importing maven project and trying to update it... Error resolving version for plugin 'org.springframework.boot:spring-boot-maven-plugin' from the repositories [local (C:\tBuild\repo), central (https://repo.maven.apache.org/maven2)]: Plugin not found in any plugin repository -> [Help 1]

enter image description here

1 Answers

In general you should share your pom.xml to get the the correct answer otherwise we can only speculate.

Here are some of the possible reasons:

  1. You haven't specified the spring boot maven plugin version, at least raises a warning about it.

  2. This can be resolved automatically if you inherit from spring boot parent or use bill of materials. These require additional declarations in your pom. For parent (usual approach) it should be something like:

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.2.2.RELEASE</version>    
</parent>
Related