問題描述
建立Spring Boot項目後,在pom檔案中,會出現一個artifactId為spring-boot-maven-plugin的插件,并且顯示該插件找不到。
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
問題解決
可以給其指定版本(xxx),版本号同目前項目使用的Spring Boot的版本号, 然後執行maven的clean、install指令,執行完畢後可能spring-boot-maven-plugin依然爆紅,但此時已經不影響項目運作了,這種情況可以通過清空項目緩存的方式解決爆紅問題。