Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/chonton/properties-maven-plugin

Maven Plugin to write properties
https://github.com/chonton/properties-maven-plugin

defaults maven-plugin properties

Last synced: about 1 month ago
JSON representation

Maven Plugin to write properties

Awesome Lists containing this project

README

        

# properties-maven-plugin
Write properties file.

# Plugin
Plugin reports available at [plugin info](https://chonton.github.io/properties-maven-plugin/plugin-info.html).

There is a single goal: [write](https://chonton.github.io/properties-maven-plugin/write-mojo.html),
which by default binds to the "generate-resources" phase. This goal reads properties from the `defaults` location,
adds properties specified in the configuration, and writes a properties file at the `filename` location. The properties
file will contain lines of form `key`=`value`. No character escaping or line folding will occur.

## Configuration
| Parameter | Property | Default | Description |
|------------|-------------------------|----------------------------------------|------------------------------|
| comment | ${properties.comment} | | Comment added to properties |
| defaults | ${properties.defaults} | Relative to ${project.build.directory} | Filename to read defaults |
| filename | ${properties.filename} | Relative to ${project.build.directory} | Filename to write properties |
| properties | | | Properties to write | |
| skip | ${properties.skip} | false | Skip writing properties |

# Examples

## Typical Use
```xml




org.honton.chas
properties-maven-plugin
0.0.2




org.honton.chas
properties-maven-plugin



write




../target/env/properties
docker/env.properties

/home/myself
ramesh





```