【发布时间】:2018-01-29 02:11:48
【问题描述】:
我遇到错误
[DEBUG] Writing tracking file /root/.m2/repository/org/codehaus/mojo/resolver-status.properties
[DEBUG] Could not find metadata org.apache.maven.plugins/maven-metadata.xml in local (/root/.m2/repository)
[DEBUG] Could not find metadata org.codehaus.mojo/maven-metadata.xml in local (/root/.m2/repository)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 26.391 s
[INFO] Finished at: 2017-08-21T04:57:47+00:00
[INFO] Final Memory: 10M/106M
[INFO] ------------------------------------------------------------------------
[ERROR] No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found for prefix 'spring-boot' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (/root/.m2/repository), central (https://repo.maven.apache.org/maven2)]
请建议我是否需要在我的 pom.xml 中进行任何更正
【问题讨论】:
-
你能发布你的
pom.xml文件吗 -
我在 Mac 中遇到了同样的问题。我可以通过将默认 java 从 13 更改为 8 来修复它。