您的位置:首页 > 编程语言 > Java开发

利用命令部署springBoot项目出现ERROR] No plugin found for prefix ‘spring-boot’ in the current的错误

2017-07-13 15:53 3323 查看
在使用Maven部署springBoot 项目时,出现如下错误:
[ERROR] No plugin found for prefix ‘spring-boot’ in the current project and in t
he plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from th
e repositories [local (C:\Users\Administrator.m2\repository), alimaven (http://
maven.aliyun.com/nexus/content/groups/public/)] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit
ch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please rea
d the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundF orPrefixException。

最后上网找了好多资料,发现是使用mvn spring-boot:run命令时的路径不对,解决办法如下:

1.在运行命令mvn spring-boot:run时,确保在包含了pom.xml路径下运行。

2.如果使用的Spring-Boot版本是里程碑版的版本,则需要加入如下的配置,如果使用的是正式版的则不需要下面的配置

<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>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐