Maven中的jeety插件运行报错:No plugin found for prefix 'jeety' in the current project and in the plugin group

旧城等待, 2022-06-12 06:11 577阅读 0赞

一、问题描述

在POM.XML引入jeety插件,用来运行项目:

  1. <plugin>
  2. <groupId>org.mortbay.jetty</groupId>
  3. <artifactId>jetty-maven-plugin</artifactId>
  4. <version>8.1.16.v20140903</version>
  5. </plugin>

运行命令:

  1. mvn jetty:run

就报错:

  1. [ERROR] No plugin found for prefix 'jeety' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (G:\MavenRepository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]
  2. [ERROR]
  3. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  4. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  5. [ERROR]
  6. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  7. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException

提示找不到jeety。。。

二、解决方法

出现这种问题就是命令没有输全,要把groupId输进去:

20170717175947985

点击”RUN”,就会运行成功

20170717180029293

发表评论

表情:
评论列表 (有 0 条评论,577人围观)

还没有评论,来说两句吧...

相关阅读