------ Configuring Generation of Plugin Descriptor ------ Maria Odea Ching ------ 2008-02-01 ------ ~~ 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. ~~ NOTE: For help with the syntax of this file, see: ~~ http://maven.apache.org/doxia/references/apt-format.html Configuring Generation of Plugin Descriptor To configure the generation of the plugin descriptor, add the following to the project's POM: +-----+ ... org.apache.maven.plugins maven-plugin-plugin ${project.version} plugin target/dir ... ... +-----+ The <<>> parameter will set the goal prefix for the plugin that is specified in the descriptor. The <<>> parameter, on the other hand, specifies the target location of the generated plugin descriptor. * Example For instance, if we make reference on <<>> from <<>> which is generated by the Maven Archetype Plugin, i.e.: ----- mvn archetype:create \ -DgroupId=org.apache.maven.plugin.my \ -DartifactId=maven-my-plugin \ -DarchetypeArtifactId=maven-archetype-mojo ----- The plugin descriptor generated by <<>> should be: ----- org.apache.maven.plugin.my maven-my-plugin 1.0-SNAPSHOT my false true touch Goal which touches a timestamp file. false true false false false true process-sources org.apache.maven.plugin.my.MyMojo java per-lookup once-per-session outputDirectory java.io.File true true Location of the file. \${project.build.directory} org.apache.maven maven-plugin-api jar 2.0 -----