Maven Power / list goals


Maven users are blessed through plenty of available plugins. To avoid unprofessional seeking for plugin’s goals in internet, try

mvn help:describe -Dplugin=[your-plugin-here]

To obtain possible arguments of the particular plugin per goal, type

mvn help:describe -Dplugin=[your-plugin-here] -Ddetail

This will issue exhaustive information about that.

In order to get information about a certain goal, try

mvn help:describe -Dplugin=[your-plugin-here] -Dgoal=[your-goal-here] -Ddetail

Example:

mvn help:describe -Dplugin=release -Dgoal=branch -Ddetail

....

[INFO] --- maven-help-plugin:2.1.1:describe (default-cli) @ My Project ---
[INFO] Mojo: 'release:branch'
release:branch
  Description: Branch a project in SCM, using the same steps as the
    release:prepare goal, creating a branch instead of a tag. For more info see
    http://maven.apache.org/plugins/maven-release-plugin/examples/branch.html.
  Implementation: org.apache.maven.plugins.release.BranchReleaseMojo
  Language: java

  Available parameters:

    addSchema (Default: true)
      Expression: ${addSchema}
      Whether to add a schema to the POM if it was previously missing on
      release.

....

    branchName
      Expression: ${branchName}
      The branch name to use.
            
....      
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s