metainf:metainf

Full name:

org.kuali.maven.plugins:metainf-maven-plugin:2.0.2:metainf

Description:

Create a file in META-INF that lists resources bundled into a jar file

Attributes:

  • Requires a Maven project to be executed.
  • Binds by default to the lifecycle phase: prepare-package.

Required Parameters

Name Type Since Description
baseDir File - The directory to scan using the include/exclude patterns. Paths in outputFile are generated relative to this directory
Default value is: ${project.build.outputDirectory}.
include String - Comma separated list of regular expression patterns for files to include
Default value is: **/*.
outputFile File - The file which will contain classpath: references to the files that were located
Default value is: ${project.build.outputDirectory}/META-INF/${project.artifactId}.resources.

Optional Parameters

Name Type Since Description
exclude String - Comma separated list of regular expression patterns for files to exclude
Default value is: **/META-INF/*.
forceMojoExecution boolean - By default, execution of this mojo is automatically skipped for Maven projects with a packaging of type pom. If forceMojoExecution is true this mojo will always execute. forceMojoExecution overrides skip.
Default value is: false.
prefix String - The prefix to insert before the relative path name
Default value is: classpath:.
skip boolean - By default, execution of this mojo is automatically skipped for Maven projects with a packaging of type pom. Set this parameter to true to explicitly skip executing this mojo in other scenarios. NOTE: forceMojoExecution overrides skip.
Default value is: false.
sort boolean - If true, the location list is sorted.
Default value is: true.

Parameter Details

baseDir:

The directory to scan using the include/exclude patterns. Paths in outputFile are generated relative to this directory
  • Type: java.io.File
  • Required: Yes
  • Expression: ${metainf.basedir}
  • Default: ${project.build.outputDirectory}

exclude:

Comma separated list of regular expression patterns for files to exclude
  • Type: java.lang.String
  • Required: No
  • Expression: ${metainf.exclude}
  • Default: **/META-INF/*

forceMojoExecution:

By default, execution of this mojo is automatically skipped for Maven projects with a packaging of type pom. If forceMojoExecution is true this mojo will always execute. forceMojoExecution overrides skip.
  • Type: boolean
  • Required: No
  • Expression: ${metainf.forceMojoExecution}
  • Default: false

include:

Comma separated list of regular expression patterns for files to include
  • Type: java.lang.String
  • Required: Yes
  • Expression: ${metainf.include}
  • Default: **/*

outputFile:

The file which will contain classpath: references to the files that were located
  • Type: java.io.File
  • Required: Yes
  • Expression: ${metainf.outputFile}
  • Default: ${project.build.outputDirectory}/META-INF/${project.artifactId}.resources

prefix:

The prefix to insert before the relative path name
  • Type: java.lang.String
  • Required: No
  • Expression: ${metainf.prefix}
  • Default: classpath:

skip:

By default, execution of this mojo is automatically skipped for Maven projects with a packaging of type pom. Set this parameter to true to explicitly skip executing this mojo in other scenarios. NOTE: forceMojoExecution overrides skip.
  • Type: boolean
  • Required: No
  • Expression: ${metainf.skip}
  • Default: false

sort:

If true, the location list is sorted.
  • Type: boolean
  • Required: No
  • Expression: ${metainf.sort}
  • Default: true