Fork me on GitHub

properties:read-project-properties

Full name:

org.codehaus.mojo:properties-maven-plugin:1.0.0:read-project-properties

Description:

The read-project-properties goal reads property files and URLs and stores the properties as project properties. It serves as an alternate to specifying properties in pom.xml. It is especially useful when making properties defined in a runtime resource available at build time.

Attributes:

  • Requires a Maven project to be executed.
  • The goal is thread-safe and supports parallel builds.

Optional Parameters

Name Type Since Description
files File[] - The properties files that will be used when reading properties.
quiet boolean - If the plugin should be quiet if any of the files was not found
Default value is: false.
urls String[] - The URLs that will be used when reading properties. These may be non-standard URLs of the form classpath:com/company/resource.properties. Note that the type is not URL for this reason and therefore will be explicitly checked by this Mojo.

Parameter Details

files:

The properties files that will be used when reading properties.
  • Type: java.io.File[]
  • Required: No

quiet:

If the plugin should be quiet if any of the files was not found
  • Type: boolean
  • Required: No
  • Default: false

urls:

The URLs that will be used when reading properties. These may be non-standard URLs of the form classpath:com/company/resource.properties. Note that the type is not URL for this reason and therefore will be explicitly checked by this Mojo.
  • Type: java.lang.String[]
  • Required: No