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