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

Source: Internet
Author: User
Tags stack trace


Now jetty's version has reached 9, and it is already under eclipse. So there are a lot of groupid, such:Org. Eclipse. jetty, org. mortbay. Jetty. These are all usable.

I am using myeclipse and Maven to operate jetty as the development server, which is easier to start and release.

When I run the command:

Jetty: Run

Appears:

[Error] No plugin found for prefix 'jetty 'in the current project and in the plugin groups [Org. apache. maven. plugins, org. codehaus. mojo] available from the repositories [local (F: \ Java \ Maven \ repository), central (http://repo.maven.apache.org/maven2)]-> [help 1]

[Error]

[Error] to see the full stack trace of the errors, re-run Maven with the-e switch.

[Error] re-run Maven using the-x switch to enable full debug logging.

[Error]

[Error] For more information about the errors and possible solutions, please read the following articles:

[Error] [help 1]Http://cwiki.apache.org/confluence/display/MAVEN/NoPluginFoundForPrefixException



In fact, Maven does not know where the plug-in is, so we need to configure or add parameters.


Solution:

Method 1:

The execution is like this:

MVN org. mortbay. jetty: Maven-jetty-plugin: Run

Or:

MVN org. Eclipse. jetty: Maven-jetty-plugin: Run


Method 2:

Add a plug-in to the maven configuration file plug-in group:

<Plugingroups>

<Plugingroup> org. mortbay. jetty </plugingroup>

</Plugingroups>

Or:

<Plugingroups>

<Plugingroup> org. Eclipse. jetty </plugingroup>

</Plugingroups>


This will solve the problem!






My personal website: http://www.verysu.com

[Welcome to visit. If you have any good work, please introduce it, or if you are HR, please have a good look. Thank you !]







This article from the "Long Road, very short" blog, please be sure to keep this source http://10000001.blog.51cto.com/4600383/1559704

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

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.