简体   繁体   中英

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

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

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>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM