Maven Jetty Configuration

Source: Internet
Author: User

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

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.