关于eclipse下运行maven build报 No plugin found for prefix 'jetty' in the current project and in the plu gi

来源:互联网 发布:淘宝店铺淘字号 编辑:程序博客网 时间:2024/05/22 15:33

今天试着运行了一下maven build这个命令:突然就报了这样一个错误,我把错误贴出来:

[ERROR] No plugin found for prefix 'jetty' in the current project and in the plu
gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
sitories [local (C:\Documents and Settings\reymont.li\.m2\repository), central (
http://repo.maven.apache.org/maven2)] -> [Help 1]
     



解决的方法是:修改pom.xml文件在project.build 的标签下添加这样一段话:

<plugins>
<plugin>
       <groupId>org.mortbay.jetty</groupId>
       <artifactId>maven-jetty-plugin</artifactId>
       <version>6.1.10</version>       
  </plugin>
  </plugins>


再次运行的时候就可以了



0 0
原创粉丝点击