Jetty Error: No plugin found for prefix 'jetty'

Jetty Error: No plugin found for prefix 'jetty'

我制作 this 教程 cloud.google,

我应该使用

但是命令提示符显示:

[ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repositories [local (C:\Users\Desktop-PC.m2\repository), central (https://repo.maven.apache.org/maven2)] -> [Help 1]

我下载了Jetty here 放在了maven plugin文件夹中 ".m2\repository\org\apache\maven\plugins" 我也下载了 eclipse 插件。

我的问题是:

如何在cmd中安装并启动maven-jetty-plugin?

我的错误是,我没有导航到 来自 CLI 中项目的 pom.xml 我必须添加:

<plugin>
  <groupId>org.eclipse.jetty</groupId>
  <artifactId>jetty-maven-plugin</artifactId>
  <version>9.3.13.v20161014</version>
</plugin>

进入项目pom.xml