munge:munge

Full name:

org.sonatype.plugins:munge-maven-plugin:1.0:munge

Description:

Munges source files by keeping or removing sections of code according to what symbols are enabled.

Attributes:

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

Required Parameters

Name Type Since Description
symbols String - List of symbols (separated by commas) identifying which sections of munged code to keep.
Default value is: ${symbols}.

Optional Parameters

Name Type Since Description
excludes String - List of patterns (separated by commas) specifying files that should not be copied; by default exclude nothing.
Default value is: ${excludes}.
includes String - List of patterns (separated by commas) specifying files that should be munged; by default munge everything.
Default value is: ${includes}.
mungedDirectory String - Where to put the munged source files.
Default value is: ${project.build.directory}/munged.

Parameter Details

excludes:

List of patterns (separated by commas) specifying files that should not be copied; by default exclude nothing.
  • Type: java.lang.String
  • Required: No
  • Default: ${excludes}

includes:

List of patterns (separated by commas) specifying files that should be munged; by default munge everything.
  • Type: java.lang.String
  • Required: No
  • Default: ${includes}

mungedDirectory:

Where to put the munged source files.
  • Type: java.lang.String
  • Required: No
  • Default: ${project.build.directory}/munged

symbols:

List of symbols (separated by commas) identifying which sections of munged code to keep.
  • Type: java.lang.String
  • Required: Yes
  • Default: ${symbols}