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