Meaning of executing the maven [goal] command

Source: Internet
Author: User

I will not repeat the differences between the concepts of Goal phase lifecycle. My previous blog post will be reposted, and there will be a lot of information on the Internet.

This articleArticleFor example, the MVN archetype: generate class executes the goal statement. What are the meanings of the two sides of the colon.

It corresponds to MVN goal-Prefix: Goal

What is goal-prefix?MVN help: Describe-dplugin = ArchetypeI believe it is clear.

Output of this command:

 
Name: Maven archetype plugindescription: Maven Archetype is a set of tools to deal with archetypes, I. e. an abstract representation of a kind of project that can be instantiated into a concrete Maven mized Maven project. an archetype knows which files will be part of the instantiated project and which properties to fill to properly customize the project. group ID: Org. apache. maven. pluginsartifact ID: Maven-Archetype-pluginversion: 2.1 goal Prefix: archetypethis plugin has 8 goals: [content omitted]

It is clear that a plugin corresponds to a goal prefix, which is the aforementioned goal-prefix and can be seen as the abbreviation of plugin artifectid.

This command will also clearly list all the goal of this plugin. If you need more detailed information, such as the specific usage, parameters, and bound phase of each goal in this plugin, You can execute

MVN help: Describe-dplugin = Archetype-Ddetail

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.