利用命令部署springBoot项目出现ERROR] No plugin found for prefix ‘spring-boot’ in the current的错误
2017-07-13 15:53
3323 查看
在使用Maven部署springBoot 项目时,出现如下错误:
最后上网找了好多资料,发现是使用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>
[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>
相关文章推荐
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- [ERROR] No plugin found for prefix 'jetty' in the current project and in the plu gin groups [org.apa
- 安装maven所见错误No plugin found for prefix 'help' in the current project and in the plugin
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups
- no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups的解决方法
- git 出现The current branch is not configured for pull No value for key branch.master.merge found in configuration错误的解决办法
- 关于eclipse下运行maven build报 No plugin found for prefix 'jetty' in the current project and in the plu gi
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- No plugin found for prefix ‘war’ in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups的解决方法
- No plugin found for prefix 'war' in the current project and in the plugin groups
- No plugin found for prefix 'jetty' in the current project and in the plugin groups
- Spring Cloud(2) |No plugin found for prefix 'docker' in the current project and in the plugin groups
- No plugin found for prefix 'mybatis-genertor' in the current project