No plugin found for prefix ' jetty ' in the current project and the plugin groups when setting Mvan

Source: Internet
Author: User
Tags stack trace

An error occurred during MAVEN's debug jetty:

[Plain]View Plaincopyprint?
    1. [ERROR] No plugin found for prefix ' jetty ' in the current project and 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] The full stack trace of the errors, re-run Maven with The-e Swit



Details are as follows:

[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 (one KB at 10.7 kb/sec)
  19. Downloaded:http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata
  20. . XML (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 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 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] The full stack trace of the errors, re-run Maven with The-e Swit




Settings.xml no configuration plug-in should be required

[SQL]View Plaincopyprint?
    1. MVN Org.mortbay.jetty:maven-jetty-plugin:run


this to run.
If you need to use Jetty:run, you must configure it under Maven Setting.xml

[Plain]View Plaincopyprint?
    1. <pluginGroups>
    2. <pluginGroup>org.mortbay.jetty</pluginGroup>
    3. </pluginGroups>

Or add a configuration under Plugins node in the pom.xml of the corresponding project

[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>

No plugin found for prefix ' jetty ' in the current project and the plugin groups when setting Mvan

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.