Etty is a Java-enabled, open-source, standards-based, and feature-rich Http server and Web container that can be used for free commercial behavior. Jetty This project was established in 1995 and now has a lot of successful products based on Jetty, such as Apache Geromino, JBoss, IBM Tivoli, Cisco sesm, etc. Jetty can be used as a traditional WEB server or as a dynamic content server, and Jetty can be easily embedded into Java applications.
This error is thrown when the lift project runs in accordance with this URL http://www.ibm.com/developerworks/cn/web/tutorials/wa-aj-comet/section3.html
[ERROR] No plugin found forPrefix'Jetty' inchThe current project andinchthe plugin groups [Org.apache.maven.plugins, Org.codehaus.mojo] available fromThe repositories [local (D:\apache-maven-3.0\repository), Nexus (http://localhost:8081/nExus/content/groups/snapshot), Nexus (http://localhost:8081/nexus/content/groups/ Public)] → [help1][error][error] To see the full stack trace of the errors, re-run Maven with the-e switch. [ERROR] Re-run MavenusingThe-xSwitchTo enable full debug logging. [ERROR] [ERROR] For more information on the errors and possible solutions, please read the following articles:[error] [ Help1] http://CWIKI.APACHE.ORG/CONFLUENCE/DISPLAY/MAVEN/NOPLUGINFOUNDFOrprefixexception
2.settings.xml
<pluginGroups> <pluginGroup>org.mortbay.jetty</pluginGroup> </pluginGroups> <activeProfiles> <activeProfile>nexus-local</activeProfile> </activeprofiles ></settings>
Note the relative position of the plugingroups, which is above </settings>
Finally start under Project projects
$ MVN Jetty:run
Everything's fine.
Maven Jetty Configuration