How do I list the parameters of a goal?
Author: Deron Eriksson
Description: This tutorial describes how to list the parameters of a maven goal.
Tutorial created using:
Windows Vista || JDK 1.6.0_04 || Eclipse Web Tools Platform 2.0.1 (Eclipse 3.3.1)
(Continued from page 1) The configuration can be executed by selecting it from the list of external tools. ![]() First we're prompted for the plugin. I'll try the "help" plugin. NOTE: If the plugin isn't already present in your local repository, you may need to fully qualify your mavenSW coordinates for the plugin (ie, instead of "help", you might need to enter something like "org.apache.maven.plugins:maven-help-plugin:2.0.2"). ![]() Next we're prompted for the mojo (ie, goal). I'll ask for a description of the "active-profiles" goal. ![]() The resulting console output is shown here: Console output of 'mvn help:describe -Dfull=true -Dplugin=help -Dmojo=active-profiles'[INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'help'. [INFO] ------------------------------------------------------------------------ [INFO] Building Maven Default Project [INFO] task-segment: [help:describe] (aggregator-style) [INFO] ------------------------------------------------------------------------ [INFO] [help:describe] [INFO] Mojo: 'help:active-profiles' =============================================== Goal: 'active-profiles' Description: Lists the profiles which are currently active for this build. Implementation: org.apache.maven.plugins.help.ActiveProfilesMojo Language: java Parameters: ----------------------------------------------- [0] Name: output Type: java.io.File Required: false Directly editable: true Description: This is an optional parameter for a file destination for the output of this mojo...the listing of active profiles per project. ----------------------------------------------- [1] Name: projects Type: java.util.List Required: true Directly editable: false Description: This is the list of projects currently slated to be built by Maven. ----------------------------------------------- This mojo doesn't have any component requirements. =============================================== [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 1 second [INFO] Finished at: Sun Feb 10 10:38:18 PST 2008 [INFO] Final Memory: 2M/6M [INFO] ------------------------------------------------------------------------ |