在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没有配置插件应此需要

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>

转载于:https://www.cnblogs.com/telwanggs/p/9523829.html

错误整理:No plugin found for prefix 'jetty' in the current project and in the plugin groups相关推荐

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

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

  2. 错误:No plugin found for prefix spring-boot in the current project and in the plugin groups

    前言 maven 3.6.1 springboot v2.1.x 在多模块的 Maven 项目中,执行 mvn spring-boot:run -pl xxx.groupId:xxx.artifact ...

  3. maven出现No plugin found for prefix ‘help‘ in the current project and in the plugin groups [org.ap

    控制台输入 mvn help:system 下载相应包时 出现如下问题: Noplugin found for prefix 'help' in the current project and in ...

  4. No plugin found for prefix ‘compile‘ in the current project

    在编译flink的scala工程的时候,编译命令如下: mvn scala compile:compile package 完整报错信息如下: [INFO] --------------------- ...

  5. 【maven】No plugin found for prefix ‘install‘ in the current project

    1.场景1 1.1 概述 在安装jar文件到本地仓库时有时会遇到这样的问题 解决方法: 下载 wagon-http-lightweight-2.2.jar 位置 https://repo.maven. ...

  6. no plugin found for prefix ‘tomcat 7‘ in the current project and in the plugin groups的解决方法

    no plugin found for prefix 'tomcat 7' in the current project and in the plugin groups的解决方法 参考文章: (1) ...

  7. Maven配置完毕后构建失败,无法下载JAR包,输入mvn help:system后出现No plugin found for prefix ‘help‘...问题的解决方案

    这个问题困扰了我很久,找了很多解决方案,但还是一直无法解决.我在虚拟机中按照标准步骤配置了很多次,每次都能够成功,但一在物理机中,相同的配置步骤带来的结果却总是配置失败,在cmd中输入mvn help ...

  8. 通过Cli方式创建uni-app常见错误整理

    通过Cli方式创建uni-app常见错误整理 文章目录 通过Cli方式创建uni-app常见错误整理 写在前面 错误一 :exports is not not defined 错误二:this.get ...

  9. 【QT学习】编译错误:FTH: (2592): Fault tolerant heap shim applied to current process. 解决办法

    文章目录 前言 一.打开终端命令 二.打开注册表 三.找到对应文件 四.删除工程路径 五.其他解决办法 总结 前言    FTH: (2592): *** Fault tolerant heap sh ...

最新文章

  1. Golang类型转化方法汇总
  2. 安装Apache的步骤
  3. 数据库 数据库SQL语句一
  4. 如何访问.then()链中的先前的诺言结果?
  5. Spark SQL运行架构
  6. 人工智能基础入门——神经网络讲解
  7. 美股全线收涨 特斯拉涨超7% 瑞幸大跌近13%
  8. Http协议及其实现httpd
  9. LOJ10064黑暗城堡
  10. 【百科】中华医书集成
  11. 【无标题】C语言连续输出输入语句执行跳过的问题
  12. el-admin框架简单解析-快速入门(前端部分)
  13. 算法复杂度:算法时间复杂度和空间复杂度表示法
  14. 额温枪为什么老是测不准 额温枪调节方法
  15. nz-upload的[nzCustomRequest]自定义上传
  16. 硬盘接口IDE、SATA、SCSI
  17. 西瓜书习题 - 3.线性模型
  18. 运维(22) 制作启动U盘安装黑苹果macOS
  19. [Systemverilog学习笔记] Thread Communication-Event、Semaphore、mailbox
  20. jelly 页面 教程_Android Jelly Bean通知教程

热门文章

  1. 桌面时钟代码_被遗忘的手机桌面小部件
  2. 浅谈Eclipse GEF
  3. CPU是如何处理指令的
  4. (47)System Verilog数组排序
  5. (6)FPGA面试题D触发器
  6. (21)FPGA面试技能提升篇(JESD204B接口)
  7. linux运维服务常见故障,linux常见故障处理
  8. php 错误提示模板,php 关闭错误提示方法总结与性能分析
  9. 进程的优先级设置与获取,进程时间
  10. docker 日志_Filebeat 采集 Docker 日志