我在执行此操作时遇到问题http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/ http://hrycan.com/2012/03/28/primefaces-lazy-loading-datatable-for-jsf2/
它说我应该跑
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。
有什么想法吗?
ADD:
从链接中,它已经在 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>
说明位于 (http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html http://www.eclipse.org/jetty/documentation/current/jetty-maven-plugin.html)说把版本设置为 ${project.version} 这是错误的!另外,较旧的文档将 groupId 设置为 org.codehaus.mojo,它应该设置为 org.eclipse.jetty。
我从码头仓库添加了一个真实版本(http://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/ http://repo.maven.apache.org/maven2/org/eclipse/jetty/jetty-maven-plugin/)并更改了 groupId。
<plugin>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>9.0.5.v20130815</version>
</plugin>
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)