Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/chonton/properties-maven-plugin
- Owner: chonton
- License: apache-2.0
- Created: 2022-07-23T03:46:31.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-05-26T10:04:32.000Z (6 months ago)
- Last Synced: 2024-10-02T10:08:15.726Z (about 2 months ago)
- Topics: defaults, maven-plugin, properties
- Language: Java
- Homepage:
- Size: 105 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```