在maven进行jetty的调试中出现错误:
  1. [ERROR] No plugin found for prefix 'jetty' in the current project and in the plu
  2. gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
  3. sitories [local (C:\Documents and Settings\Administrator\.m2\repository), centra
  4. l (http://repo.maven.apache.org/maven2)] -> [Help 1]
  5. [ERROR]
  6. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

详情如下:

  1. C:\myjava\workspace>mvn jetty:run
  2. [INFO] Scanning for projects...
  3. [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
  4. n-deploy-plugin:2.7: Failed to parse plugin descriptor for org.apache.maven.plug
  5. ins:maven-deploy-plugin:2.7 (C:\Documents and Settings\Administrator\.m2\reposit
  6. ory\org\apache\maven\plugins\maven-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar
  7. ): invalid LOC header (bad signature)
  8. [WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:mave
  9. n-site-plugin:3.0: Failed to parse plugin descriptor for org.apache.maven.plugin
  10. s:maven-site-plugin:3.0 (C:\Documents and Settings\Administrator\.m2\repository\
  11. org\apache\maven\plugins\maven-site-plugin\3.0\maven-site-plugin-3.0.jar): inval
  12. id LOC header (bad signature)
  13. Downloading: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-
  14. metadata.xml
  15. Downloading: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadat
  16. a.xml
  17. Downloaded: http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-m
  18. etadata.xml (11 KB at 10.7 KB/sec)
  19. Downloaded: http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata
  20. .xml (22 KB at 18.2 KB/sec)
  21. [INFO] ------------------------------------------------------------------------
  22. [INFO] BUILD FAILURE
  23. [INFO] ------------------------------------------------------------------------
  24. [INFO] Total time: 2.110s
  25. [INFO] Finished at: Sun Mar 03 17:31:20 CST 2013
  26. [INFO] Final Memory: 4M/15M
  27. [INFO] ------------------------------------------------------------------------
  28. [ERROR] No plugin found for prefix 'jetty' in the current project and in the plu
  29. gin groups [org.apache.maven.plugins, org.codehaus.mojo] available from the repo
  30. sitories [local (C:\Documents and Settings\Administrator\.m2\repository), centra
  31. l (http://repo.maven.apache.org/maven2)] -> [Help 1]
  32. [ERROR]
  33. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swit

settings.xml没有配置插件应此需要

  1. mvn org.mortbay.jetty:maven-jetty-plugin:run

这样来运行。
如果需要使用jetty:run,那么必须在maven的setting.xml下配置

  1. <pluginGroups>
  2. <pluginGroup>org.mortbay.jetty</pluginGroup>
  3. </pluginGroups>

或者在对应项目的pom.xml中plugins的节点下添加配置

    1. <plugin>
    2. <groupId>org.mortbay.jetty</groupId>
    3. <artifactId>jetty-maven-plugin</artifactId>
    4. <configuration>
    5. <webApp>
    6. <contextPath>/</contextPath>
    7. </webApp>
    8. <stopKey>webx</stopKey>
    9. <stopPort>9999</stopPort>
    10. <connectors>
    11. <connector implementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
    12. <port>8081</port>
    13. <maxIdleTime>60000</maxIdleTime>
    14. </connector>
    15. </connectors>
    16. <requestLog implementation="org.eclipse.jetty.server.NCSARequestLog">
    17. <filename>target/access.log</filename>
    18. <retainDays>90</retainDays>
    19. <append>false</append>
    20. <extended>false</extended>
    21. <logTimeZone>GMT+8:00</logTimeZone>
    22. </requestLog>
    23. <systemProperties>
    24. <systemProperty>
    25. <name>productionMode</name>
    26. <value>${productionMode}</value>
    27. </systemProperty>
    28. </systemProperties>
    29. </configuration>
    30. </plugin>

No plugin found for prefix 'jetty' in the current project and in the plugin groups 【转】的更多相关文章

  1. 错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups

    在maven进行jetty的调试中出现错误: [ERROR] No plugin found for prefix 'jetty' in the current project and in the ...

  2. 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

    maven配置文件(最大的那个)的<pluginGroups></pluginGroups>增加一行如下<pluginGroups><pluginGroup& ...

  3. Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决

    只需在maven的setting.xml文件上加入如下节点: <pluginGroups> <pluginGroup>org.mortbay.jetty</pluginG ...

  4. Maven命令行创建web项目,并部署到jobss当中(解决No plugin found for prefix 'jboss-as' in the current project and in the plugin groups [org.apache.maven.plugins,问题)

    首件创建项目:此处可参照:http://maven.apache.org/guides/mini/guide-webapp.html mvn archetype:generate -DgroupId= ...

  5. No plugin found for prefix 'tomcat' in the current project and in the plugin groups和java.net.BindException: Address already in use: JVM_Bind <null>:8080的错误解决

    错误报告:No plugin found for prefix 'tomcat' in the current project and in the plugin groups [org.apache ...

  6. Maven项目无法下载JAR包,输入mvn help:system出现No plugin found for prefix 'help' in the current project and in the plugin groups的解决方案

    这个问题困扰了我很久,一直无法解决:我在虚拟机里面按照同样的步骤配置了三次maven项目,每次都能成功:可一旦到外面maven项目总是创建失败,输入mvn help:system总是出现No plug ...

  7. No plugin found for prefix 'war' in the current project and in the plugin groups

    解决办法: 在pom里面添加 : <dependency> <groupId>org.apache.maven.plugins</groupId> <arti ...

  8. No plugin found for prefix 'mybatis-generator' in the current project

    http://blog.csdn.net/you23hai45/article/details/50792430 1.错误描述 F:\workspaces\Mybatis>mvn mybatis ...

  9. 关于Could not read pom.xml和No plugin found for prefix 'tomcate7' in the current project

    当时出现的错误:  有大神知道我这个错误怎么解决吗[ERROR] No plugin found for prefix 'tomcate7' in the current project and in ...

随机推荐

  1. html的input输入框边框

    1.输入框边框完全隐藏<input type="text" style="outline:none;border:0" /> 2.input去边框立 ...

  2. Webshell实现与隐藏探究

    一.什么是webshell webshell简介 webshell,顾名思义:web指的是在web服务器上,而shell是用脚本语言编写的脚本程序,webshell就是就是web的一个管理 工具,可以 ...

  3. Linux shell get random number

    the Shell Profile: When a new interactive shell is started, /etc/profile, followed by /etc/bash.bash ...

  4. java并发编程实践笔记

    文章转自:http://kenwublog.com/java-concurrency-in-practise-note 1, 保证线程安全的三种方法 :a, 不要跨线程访问共享变量b, 使共享变量是 ...

  5. JS实现图片上传预览效果:方法一

    <script type="text/javascript"> //处理file input加载的图片文件 $(document).ready(function(e) ...

  6. HDU 4819 Mosaic --二维线段树(树套树)

    题意: 给一个矩阵,每次查询一个子矩阵内的最大最小值,然后更新子矩阵中心点为(Max+Min)/2. 解法: 由于是矩阵,且要求区间最大最小和更新单点,很容易想到二维的线段树,可是因为之前没写过二维的 ...

  7. 2014 Super Training #8 G Grouping --Tarjan求强连通分量

    原题:ZOJ 3795 http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3795 题目大意:给定一个有向图,要求把点分为k个集 ...

  8. ExtJS要利用观察者模式 去实现自定义的事件

    // 要利用观察者模式 去实现自定义的事件 //1:由于浏览器他自己能定义内置的事件(click/blur...) // 我们也应该有一个类似于浏览器这样的类,这个类 自己去内部定义一些事件(自定义事 ...

  9. where,having与 group by连用的区别

    select 列a,聚合函数 from 表名 where 过滤条件 group by 列a having 过滤条件 group by 字句也和where条件语句结合在一起使用.当结合在一起时,wher ...

  10. smarty初始化文件

    为了smarty初始化文件能方便其他目录下的脚步包含使用,应该将初始化文件里的引入smarty类及其他路径设置为全局路径,而不是相对路径 另外,如果模板里有文件的路径的引用,一定要是相对PHP脚本文件 ...