Error collation: No plugin found for prefix ' jetty ' in the ' the ' of the current project and the plugin groups

Source: Internet
Author: User
Tags stack trace

An error occurred during the jetty debugging of Maven:

[ERROR] No plugin found for prefix ' jetty ' in the ' the ' of the current project and in PLU gin groups
[Org.apache.maven.plugins, Org.cod Ehaus.mojo] Available
from the repo sitories [local (C:\Documents and Settings\administrator\.m2\repository),  Centra
L (http://repo.maven.apache.org/maven2)]-> [Help 1]
[ERROR]
[ERROR] to the ' full stack trace ' The errors, re-run Maven with The-e Swit


Details are as follows:

C:\MYJAVA\WORKSPACE>MVN Jetty:run [INFO] scanning for projects ... [WARNING] Failed to retrieve plugin descriptor for Org.apache.maven.plugins:mave n-deploy-plugin:2.7:failed to parse plugin Tor for Org.apache.maven.plug ins:maven-deploy-plugin:2.7 (C:\Documents and Settings\administrator\.m2\reposit ory\ Org\apache\maven\plugins\maven-deploy-plugin\2.7\maven-deploy-plugin-2.7.jar): Invalid LOC header (bad signature) [ WARNING] Failed to retrieve plugin descriptor for Org.apache.maven.plugins:mave n-site-plugin:3.0:failed to parse plugin Descriptor for Org.apache.maven.plugin s:maven-site-plugin:3.0 (C:\Documents and settings\administrator\.m2\ Repository\ Org\apache\maven\plugins\maven-site-plugin\3.0\maven-site-plugin-3.0.jar): Inval ID LOC Header (bad
Signature) Downloading:http://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-metadata.xml Downloading:http://repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadat A.xml Downloaded:http://repo.maven.apacHe.org/maven2/org/apache/maven/plugins/maven-m Etadata.xml (one KB at 10.7 kb/sec) downloaded:http:// Repo.maven.apache.org/maven2/org/codehaus/mojo/maven-metadata. XML (KB at 18.2 kb/sec) [INFO]--------------------- ---------------------------------------------------[INFO] build failure [INFO]----------------------------------- -------------------------------------[INFO] Total time:2.110s [info] finished At:sun 17:31:20 CST 2013 [INFO] Fi NAL memory:4m/15m [INFO]------------------------------------------------------------------------[ERROR] No Plugin Found for prefix ' jetty ' in the ' plu gin groups [Org.apache.maven.plugins, Org.codehaus.mojo] av Ailable from the Repo sitories [local (C:\Documents and Settings\administrator\.m2\repository), Centra L (http://repo.mav EN.APACHE.ORG/MAVEN2)]-> [Help 1] [ERROR] [ERROR] to the ' full stack trace of the ' errors, re-run Maven with THE-E Swit



Settings.xml did not configure the plugin should this be required


To run this way.
If you need to use Jetty:run, you must configure the Setting.xml under Maven
<pluginGroups>
    <pluginGroup>org.mortbay.jetty</pluginGroup>
  </pluginGroups>

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

<plugin> <groupId>org.mortbay.jetty</groupId> <artifactid>jetty-ma
                        Ven-plugin</artifactid> <configuration> <webApp> <contextPath>/</contextPath> </webApp> <stopkey>webx&
                        Lt;/stopkey> <stopPort>9999</stopPort> <connectors>
                            <connector implementation= "Org.eclipse.jetty.server.nio.SelectChannelConnector" >
                        <port>8081</port> <maxIdleTime>60000</maxIdleTime> </connector> </connectors> <requestlog implementation=
                        "Org.eclipse.jetty.server.NCSARequestLog" > <filename>target/access.log</filename> &Lt;retaindays>90</retaindays> <append>false</append>
                    <extended>false</extended> <logTimeZone>GMT+8:00</logTimeZone>
                            </requestLog> <systemProperties> <systemProperty> <name>productionMode</name> <value>${productionmo
                De}</value> </systemProperty> </systemProperties> </configuration> </plugin>

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.