properties:read-project-properties

Full name:

org.kuali.maven.plugins:properties-maven-plugin:1.3.3:read-project-properties

Description:

The read-project-properties goal reads property files and stores the properties as project properties. It serves as an alternate to specifying properties in pom.xml.
Properties files handled by this plugin, have their property values resolved using Spring's expression parser. This means anything you can do with Spring property values you can do with property values handled by this plugin. For example, nested properties are supported: eg foo=${a.${b}.c}

Attributes:

  • Requires a Maven project to be executed.

Required Parameters

Name Type Since Description
locations String[] - Locations where properties files can be found. Any url Spring resource loading can understand is valid. eg classpath:myprops.properties. Both, .properties and .xml style properties are supported.

Optional Parameters

Name Type Since Description
ignore String - Comma separated list of property values to ignore
quiet boolean - If true, the plugin will silently ignore any non-existent properties files, and the build will continue
Default value is: false.
silent boolean - If true, the plugin will operate silently without emitting any log messages
Default value is: false.
verbose boolean - If true, the plugin will emit more verbose logging messages.
Default value is: false.

Parameter Details

ignore:

Comma separated list of property values to ignore
  • Type: java.lang.String
  • Required: No
  • Expression: ${properties.ignore}

locations:

Locations where properties files can be found. Any url Spring resource loading can understand is valid. eg classpath:myprops.properties. Both, .properties and .xml style properties are supported.
  • Type: java.lang.String[]
  • Required: Yes

quiet:

If true, the plugin will silently ignore any non-existent properties files, and the build will continue
  • Type: boolean
  • Required: No
  • Expression: ${properties.quiet}
  • Default: false

silent:

If true, the plugin will operate silently without emitting any log messages
  • Type: boolean
  • Required: No
  • Expression: ${properties.silent}
  • Default: false

verbose:

If true, the plugin will emit more verbose logging messages.
  • Type: boolean
  • Required: No
  • Expression: ${properties.verbose}
  • Default: false