Maven archetype Plugin

Source: Internet
Author: User
General steps for using archetype

  • Command--MVN Archetype:generate
  • After entering the command, the archetype plugin will output a archetype list for the user to select, select the archetype you want to use, enter the corresponding number
  • Prompt to enter some basic parameters, such as groupid,artifactid,version,package, etc.
  • Archetype Plugin Build Project skeleton

Common Archetypemaven-archetype-quickstart

The default archetype, the basic content includes:

  • A pom.xml that contains the JUnit dependency claims
  • Src/main/java main code directory and a class called app
  • Src/test/java Test Code catalog and a test case named Apptest

Maven-archetype-webapp

One of the simplest Maven War project templates that you can use when you need to quickly create a web app. The resulting project content includes:

  • A pom.xml with a packaging war and a junit-dependent declaration
  • src/main/webapp/Directory
  • src/main/webapp/index.jsp file
  • Src/main/webapp/web-inf/web.xml file

Maven archetype 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.