在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. 三星嵌入式开发平台 三星Cortex-A9 4412 POP与SCP对比

    iTOP-4412核心板是迅为电子推出的一款高端四核核心板,其中分为POP封装与SCP封装,配备三星Exynos 4412四核处理器,主频为1.4GHz,内置16GB存储空间.该板设计小巧.配备三星自 ...

  2. CentOS 6.5上MySQL安装部署与入门。

    centos 6.5 yum 安装mysql1. 安装软件:yum install -y mysql-server mysql mysql-devel2.启动服务:service mysqld sta ...

  3. Laxcus大数据管理系统2.0(5)- 第二章 数据组织

    第二章 数据组织 在数据的组织结构设计上,Laxcus严格遵循数据和数据描述分离的原则,这个理念与关系数据库完全一致.在此基础上,为了保证大规模数据存取和计算的需要,我们设计了大量新的数据处理技术.同 ...

  4. python中str()和repr()的区别

    >>> s = 'Hello, world.' >>> str(s) 'Hello, world.' >>> repr(s) "'Hel ...

  5. 搭建WP8开发环境

    开发环境 VS2012旗舰版 遇到的问题 安装WP SDK8.0出错提示: 根据当前系统时钟或签名文件中的时间戳验证时要求的证书不在有效期内 解决办法 方法一:把操作系统的时间日期调整到系统的安装日期 ...

  6. Windows系统安装Oracle 11g数据库

    一.下载 http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html以下两网址来源此官方下载页 ...

  7. 023医疗项目-模块二:药品目录的导入导出-从数据库中查出数据用XSSF导出excel并存放在虚拟目录最后下载(包括调试)

    我们要实现的效果:     进入到这个页面后,输入要查询的条件,查询出药品表的数据,然后按下导出按钮 ,就会在服务器的一个目录下生成一个药品表的excel表格.  点击"导出"之后 ...

  8. 021医疗项目-模块二:药品目录的导入导出-介绍poi类

    我们使用的是.10版本 Apache POI - the Java API for Microsoft Documents,Apache POI 是用Java编写的免费开源的跨平台的 Java API ...

  9. Http请求中POST与GET的区别——前端面试

    一.原理区别 Http定义了与服务器交互的方法,其中最基本的四种是:GET,POST,PUT,DELETE,正对应着对资源的查,改,增,删.URL的全称是资源描述符,我们可以这样认为,一个URL地址, ...

  10. 【转】【UML】使用Visual Studio 2010 Team System中的架构师工具(设计与建模)

    Lab 1: 应用程序建模 实验目标 这个实验的目的是展示如何在Visual Studio 2010旗舰版中进行应用程序建模.团队中的架构师会通过建模确定应用程序是否满足客户的需求. 你可以创建不同级 ...