您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

Maven-在当前项目和插件组中找不到前缀为“ spring-boot”的插件

Maven-在当前项目和插件组中找不到前缀为“ spring-boot”的插件

如果您使用Spring Boot进行应用程序,则忘记添加

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

可能导致此问题,以及缺少这些行

<repositories>
    <repository>
        <id>spring-releases</id>
        <url>https://repo.spring.io/libs-release</url>
    </repository>
</repositories>
<pluginRepositories>
    <pluginRepository>
        <id>spring-releases</id>
        <url>https://repo.spring.io/libs-release</url>
    </pluginRepository>
</pluginRepositories>

如果你正在运行

mvn spring-boot:run

从命令行,确保你位于包含pom.xml文件的目录中。否则,你将在当前项目和插件错误中遇到没有为前缀“ spring-boot”找到的插件

Java 2022/1/1 18:24:52 有416人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶