plugin:helpmojo

Full name:

org.apache.maven.plugins:maven-plugin-plugin:2.5.1:helpmojo

Description:

Generates a HelpMojo class.

Attributes:

  • Requires a Maven 2.0 project to be executed.
  • Since version: 2.4.
  • Binds by default to the lifecycle phase: generate-sources.

Optional Parameters

Name Type Since Description
encoding String 2.5 The file encoding of the source files.
Default value is: ${project.build.sourceEncoding}.
extractors Set 2.4 The role names of mojo extractors to use.

If not set, all mojo extractors will be used. If set to an empty extractor name, no mojo extractors will be used.

Example:

<!-- Use all mojo extractors -->
<extractors/>

<!-- Use no mojo extractors -->
<extractors>
<extractor/>
</extractors>

<!-- Use only bsh mojo extractor -->
<extractors>
<extractor>bsh</extractor>
</extractors>

goalPrefix String 2.4 The goal prefix that will appear before the ":".
outputDirectory File 2.4 The directory where the generated HelpMojo file will be put.
Default value is: ${project.build.directory}/generated-sources/plugin.

Parameter Details

encoding:

The file encoding of the source files.
  • Type: java.lang.String
  • Since: 2.5
  • Required: No
  • Expression: ${encoding}
  • Default: ${project.build.sourceEncoding}

extractors:

The role names of mojo extractors to use.

If not set, all mojo extractors will be used. If set to an empty extractor name, no mojo extractors will be used.

Example:

<!-- Use all mojo extractors -->
<extractors/>

<!-- Use no mojo extractors -->
<extractors>
<extractor/>
</extractors>

<!-- Use only bsh mojo extractor -->
<extractors>
<extractor>bsh</extractor>
</extractors>
  • Type: java.util.Set
  • Since: 2.4
  • Required: No

goalPrefix:

The goal prefix that will appear before the ":".
  • Type: java.lang.String
  • Since: 2.4
  • Required: No

outputDirectory:

The directory where the generated HelpMojo file will be put.
  • Type: java.io.File
  • Since: 2.4
  • Required: No
  • Default: ${project.build.directory}/generated-sources/plugin