------ Usage ------ Maria Odea Ching ------ 27 July 2006 ------ ~~ Licensed to the Apache Software Foundation (ASF) under one ~~ or more contributor license agreements. See the NOTICE file ~~ distributed with this work for additional information ~~ regarding copyright ownership. The ASF licenses this file ~~ to you under the Apache License, Version 2.0 (the ~~ "License"); you may not use this file except in compliance ~~ with the License. You may obtain a copy of the License at ~~ ~~ http://www.apache.org/licenses/LICENSE-2.0 ~~ ~~ Unless required by applicable law or agreed to in writing, ~~ software distributed under the License is distributed on an ~~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY ~~ KIND, either express or implied. See the License for the ~~ specific language governing permissions and limitations ~~ under the License. Usage The Plugin Plugin is generally used for Maven 2 plugins. Its mojos are bound to different phases in the build life cycle. So when you execute a specific phase, the Plugin Plugin mojos bound to it are also executed. Aside from this, each goal can also be explicitly executed from the command line. * The <<>> Goal The <<>> goal is bound to the <<>> phase. This goal generates the plugin descriptor, which is an xml file that contains information about the plugin. For example, you want to create an archive of your plugin and you execute +-----+ mvn package +-----+ You will see that the plugin.xml file is generated in the target/classes/META-INF/maven directory of your project. The file is also bundled in the generated jar file. To explicitly execute the <<>> goal, type the following in the command line: +-----+ mvn plugin:descriptor +-----+ * The <<>> Goal To generate Xdoc files for the mojos of your plugin, execute the following on the command line: +-----+ mvn plugin:xdoc +-----+ * The <<>> Goal The <<>> goal is bound to the <<>> phase of the build life cycle. This goal updates the plugin registry to reflect the changes in the version of the plugin you're installing in your local repository. So when you execute +-----+ mvn install +-----+ you will see that the version of the plugin in the plugin-registry.xml is changed to the same version of the plugin that you have just installed. You can also explicitly execute the <<>> goal by executing +-----+ mvn plugin:updateRegistry +-----+ from the command line. * The <<>> Goal The <<>> goal, on the other hand, is bound to the <<>> phase of the build life cycle. This goal will add the metadata to the project artifact. To do this, execute +-----+ mvn package +-----+