缺少Maven插件码头 [英] Missing Maven Plugin Jetty

查看:124
本文介绍了缺少Maven插件码头的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法按照以下说明操作 http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/

I am having trouble folowing this http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/

它说我应该跑步

mvn jetty:run

但是我一直遇到这个错误.

but I keep on encountering this error.

org.apache.maven.plugin.prefix.NoPluginFoundForPrefixException: No plugin found
for prefix 'jetty' in the current project and in the plugin groups [org.apache.m
aven.plugins, org.codehaus.mojo] available from the repositories [local (C:\MyRepo), central (http://repo1.maven.org/maven2)]
        at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.r

我在这里使用了Maven 3.

I used Maven 3 here.

有什么想法吗?

添加:

在链接中,它已经存在于pom.xml中

From the link, it has this already in the pom.xml

<plugin>
    <groupId>org.mortbay.jetty</groupId>
    <artifactId>jetty-maven-plugin</artifactId>
    <version>7.5.1.v20110908</version>
    <dependencies>
        <dependency>
            <groupId>mysql</groupId>
            <artifactId>mysql-connector-java</artifactId>
            <version>${mysql.version}</version>
        </dependency>
    </dependencies>
</plugin>

推荐答案

您是否已将插件添加到pom.xml?快速的Google搜索发现了这一点:

Did you add the plugin to the pom.xml? A quick google search found this:

<project>
  ...
  <build>
    ...
    <plugins>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>jetty-maven-plugin</artifactId>
      </plugin>
    </plugins>
  </build>
</project>

在这里找到: http://mojo.codehaus.org/jetty-maven-plugin/usage.html

这篇关于缺少Maven插件码头的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆