错误整理:No plugin found for prefix ‘jetty‘ in the....

在maven进行jetty的调试中出现错误:

[plain] view plaincopyprint?

  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

详情如下:

[plain] view plaincopyprint?

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

[sql] view plaincopyprint?

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

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

[plain] view plaincopyprint?

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

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

[sql] view plaincopyprint?

  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>
时间: 2024-11-08 21:25:47

错误整理:No plugin found for prefix ‘jetty‘ in the....的相关文章

Maven出现错误No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups的问题解决

只需在maven的setting.xml文件上加入如下节点: <pluginGroups> <pluginGroup>org.mortbay.jetty</pluginGroup> </pluginGroups> setting.xml文件放在maven运行文件夹的conf文件夹下. 如果不想像上面增加额外的节点,可以通过以下的命令启动: mvn org.mortbay.jetty:maven-jetty-plugin:run Maven出现错误No plu

Maven出现错误No plugin found for prefix &#39;jetty&#39; in the current

Maven出现错误No plugin found for prefix 'jetty' in the current project and in the plugin groups的问题解决 只需在maven的setting.xml文件上加入如下节点: <pluginGroups>       <pluginGroup>org.mortbay.jetty</pluginGroup>   </pluginGroups> Maven出现错误No plugin

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups 【转】

在maven进行jetty的调试中出现错误: [plain] view plaincopyprint? [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 Se

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups搭建mvan时配置jetty

在maven进行jetty的调试中出现错误: [plain] view plaincopyprint? [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 Se

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups [org.apache.mave

这是我的项目: 运行的时候错误: [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.903s [INFO] Finished at: Thu Aug 13 11:33:22 CST 2015 [INFO] Final Memory: 7M/121M [INFO] ---------------------

No plugin found for prefix &#39;jetty&#39; in the current project and in the plugin groups

现在Jetty的版本已经到9了,也早已经在Eclipse的门下了.所以有很多groupId,比如:org.eclipse.jetty.org.mortbay.jetty.这些都可以用的哦. 我在使用MyEclipse结合maven操作jetty作为开发的服务器,这开开发比较方便. 当我运行命令: jetty:run 出现: [ERROR] No plugin found for prefix 'jetty' in the current project and in the plugin gro

Android 开发之错误整理java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10088 nor current process has android.permission.READ_PHONE_STATE.

java.lang.SecurityException: Requires READ_PHONE_STATE: Neither user 10088 nor current process has android.permission.READ_PHONE_STATE. 今天写了一款发短信的软件,拿了个酷派5879,试了下,结果不能用,把try{}catch{}去掉了,报这个错误, android.permission.READ_PHONE_STATE.没有READ_PHONE_STATE权限,

备忘:maven 错误信息: Plugin execution not covered by lifecycle configuration

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">  <modelVers

xliff:g 错误 error: Error parsing XML: unbound prefix

在安卓项目中使用 xliff:g ,按如下这样写 <string name="huiwutong_talk_limit"><xliff:g id="count_left" example="10">%1$s</xliff:g>个字</string> 出现了错误 error: Error parsing XML: unbound prefix ,原因是缺少xliff:g 的命名空间. 解决方法为: &