我有麻煩如下因素這http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/缺少Maven插件碼頭
它說我應該只是運行
mvn jetty:run
,但我一直在遇到這個錯誤。
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。
有什麼想法?
地址:
從鏈接,它有這個已經在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>
[「Eclipse插件未找到前綴」錯誤](http:// stackoverflow。com/questions/7414075/plugin-not-found-for-prefix-error-in-eclipse) – naXa