https://github.com/codecentric/check-staging-properties-maven-plugin
Maven-plugin for checking the equality of several staging properties files
https://github.com/codecentric/check-staging-properties-maven-plugin
Last synced: 9 months ago
JSON representation
Maven-plugin for checking the equality of several staging properties files
- Host: GitHub
- URL: https://github.com/codecentric/check-staging-properties-maven-plugin
- Owner: codecentric
- License: apache-2.0
- Created: 2016-12-05T12:48:10.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-10-28T08:41:24.000Z (about 5 years ago)
- Last Synced: 2023-08-21T07:48:13.570Z (over 2 years ago)
- Language: Java
- Homepage: https://blog.codecentric.de/2017/01/staging-properties-maven-plugin/
- Size: 50.8 KB
- Stars: 5
- Watchers: 140
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# check-staging-properties-maven-plugin
[](https://raw.githubusercontent.com/codecentric/check-staging-properties-maven-plugin/master/LICENSE)
[](https://travis-ci.org/codecentric/check-staging-properties-maven-plugin)
[](https://www.codacy.com/app/britter/check-staging-properties-maven-plugin/dashboard)
[](https://coveralls.io/github/codecentric/check-staging-properties-maven-plugin)
[](https://maven-badges.herokuapp.com/maven-central/de.codecentric/check-staging-properties-maven-plugin/)
Maven-plugin for checking the equality of several `.properties`-files for Mule applications (at least mostly used with, but not necessary). This plugin is perfect for you, if you have multiple `.properties`-files for different staging environments like `app-DEV.properties` or `app-PRD.properties` and you want to check if they correlate. It will check if:
- sizes (number of keys) are equal,
- name of the keys are equal and
- all values are present.
## Usage
Add the following lines to the `build > plugins` section of your `pom.xml`. Here's an example:
```xml
de.codecentric
check-staging-properties-maven-plugin
1.0.4
verify
check
src/main/resources
credentials-(.*)\.properties
settings-(.*)\.properties
```
**Note:** The `configuration` section is optional. By default the plugin will search for properties in the `src/main/resources` directory and will break the Maven build if the properties are not equal. You can optionally pass a list of `groups` to group the checking of properties by filename.