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

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

  1. [ERROR]Nopluginfoundforprefix'jetty'inthecurrentprojectandintheplu
  2. gingroups[org.apache.maven.plugins,org.codehaus.mojo]availablefromtherepo
  3. sitories[local(C:\DocumentsandSettings\Administrator\.m2\repository),centra
  4. l(http://repo.maven.apache.org/maven2)]->[Help1]
  5. [ERROR]
  6. [ERROR]Toseethefullstacktraceoftheerrors,re-runMavenwiththe-eswit

详情如下:

  1. C:\myjava\workspace>mvnjetty:run
  2. [INFO]Scanningforprojects...
  3. [WARNING]Failedtoretrieveplugindescriptorfororg.apache.maven.plugins:mave
  4. n-deploy-plugin:2.7:Failedtoparseplugindescriptorfororg.apache.maven.plug
  5. ins:maven-deploy-plugin:2.7(C:\DocumentsandSettings\Administrator\.m2\reposit
  6. ory\org\apache\maven\plugins\maven-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar
  7. ):invalidLOCheader(badsignature)
  8. [WARNING]Failedtoretrieveplugindescriptorfororg.apache.maven.plugins:mave
  9. n-site-plugin:3.0:Failedtoparseplugindescriptorfororg.apache.maven.plugin
  10. s:maven-site-plugin:3.0(C:\DocumentsandSettings\Administrator\.m2\repository\
  11. org\apache\maven\plugins\maven-site-plugin\3.0\maven-site-plugin-3.0.jar):inval
  12. idLOCheader(badsignature)
  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(11KBat10.7KB/sec)
  19. Downloaded:http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata
  20. .xml(22KBat18.2KB/sec)
  21. [INFO]------------------------------------------------------------------------
  22. [INFO]BUILDFAILURE
  23. [INFO]------------------------------------------------------------------------
  24. [INFO]Totaltime:2.110s
  25. [INFO]Finishedat:SunMar0317:31:20CST2013
  26. [INFO]FinalMemory:4M/15M
  27. [INFO]------------------------------------------------------------------------
  28. [ERROR]Nopluginfoundforprefix'jetty'inthecurrentprojectandintheplu
  29. gingroups[org.apache.maven.plugins,org.codehaus.mojo]availablefromtherepo
  30. sitories[local(C:\DocumentsandSettings\Administrator\.m2\repository),centra
  31. l(http://repo.maven.apache.org/maven2)]->[Help1]
  32. [ERROR]
  33. [ERROR]Toseethefullstacktraceoftheerrors,re-runMavenwiththe-eswit



settings.xml没有配置插件应此需要
  1. mvnorg.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. <connectorimplementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  12. <port>8081</port>
  13. <maxIdleTime>60000</maxIdleTime>
  14. </connector>
  15. </connectors>
  16. <requestLogimplementation="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>

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

  1. [ERROR]Nopluginfoundforprefix'jetty'inthecurrentprojectandintheplu
  2. gingroups[org.apache.maven.plugins,org.codehaus.mojo]availablefromtherepo
  3. sitories[local(C:\DocumentsandSettings\Administrator\.m2\repository),centra
  4. l(http://repo.maven.apache.org/maven2)]->[Help1]
  5. [ERROR]
  6. [ERROR]Toseethefullstacktraceoftheerrors,re-runMavenwiththe-eswit

详情如下:

  1. C:\myjava\workspace>mvnjetty:run
  2. [INFO]Scanningforprojects...
  3. [WARNING]Failedtoretrieveplugindescriptorfororg.apache.maven.plugins:mave
  4. n-deploy-plugin:2.7:Failedtoparseplugindescriptorfororg.apache.maven.plug
  5. ins:maven-deploy-plugin:2.7(C:\DocumentsandSettings\Administrator\.m2\reposit
  6. ory\org\apache\maven\plugins\maven-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar
  7. ):invalidLOCheader(badsignature)
  8. [WARNING]Failedtoretrieveplugindescriptorfororg.apache.maven.plugins:mave
  9. n-site-plugin:3.0:Failedtoparseplugindescriptorfororg.apache.maven.plugin
  10. s:maven-site-plugin:3.0(C:\DocumentsandSettings\Administrator\.m2\repository\
  11. org\apache\maven\plugins\maven-site-plugin\3.0\maven-site-plugin-3.0.jar):inval
  12. idLOCheader(badsignature)
  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(11KBat10.7KB/sec)
  19. Downloaded:http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata
  20. .xml(22KBat18.2KB/sec)
  21. [INFO]------------------------------------------------------------------------
  22. [INFO]BUILDFAILURE
  23. [INFO]------------------------------------------------------------------------
  24. [INFO]Totaltime:2.110s
  25. [INFO]Finishedat:SunMar0317:31:20CST2013
  26. [INFO]FinalMemory:4M/15M
  27. [INFO]------------------------------------------------------------------------
  28. [ERROR]Nopluginfoundforprefix'jetty'inthecurrentprojectandintheplu
  29. gingroups[org.apache.maven.plugins,org.codehaus.mojo]availablefromtherepo
  30. sitories[local(C:\DocumentsandSettings\Administrator\.m2\repository),centra
  31. l(http://repo.maven.apache.org/maven2)]->[Help1]
  32. [ERROR]
  33. [ERROR]Toseethefullstacktraceoftheerrors,re-runMavenwiththe-eswit



settings.xml没有配置插件应此需要
  1. mvnorg.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. <connectorimplementation="org.eclipse.jetty.server.nio.SelectChannelConnector">
  12. <port>8081</port>
  13. <maxIdleTime>60000</maxIdleTime>
  14. </connector>
  15. </connectors>
  16. <requestLogimplementation="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>
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值