Introducing Maven by Balaji Varanasi

Introducing Maven by Balaji Varanasi

Author:Balaji Varanasi
Language: eng
Format: epub
ISBN: 9781484254103
Publisher: Apress


It is valid for a Maven phase to not have any goals associated with it. In that case, Maven will skip the phase execution. Such phases serve as placeholders for users and third-party vendors to associate their custom-built goals.

The <packaging /> element in the pom.xml file will automatically assign the right goals for each of the phases without any additional configuration. Remember that this is a benefit of CoC. For example, if the packaging element is jar, then the package phase will be bound to the jar goal in the jar plug-in. Similarly, for a WAR artifact, pom.xml will bind the package to a war goal in the war plug-in. Figure 5-2 shows a portion of the internal lifecycle associated with a WAR project.

Figure 5-2Default lifecycle for WAR project



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.