Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cedricwalter/properties-sync-maven-plugin
Apache maven plugin for failing fast at build time when using maven resources filtering with environment based <filters>. This maven plugin will force you to keep in sync all properties files with the reference.
https://github.com/cedricwalter/properties-sync-maven-plugin
apache-maven continuous-delivery continuous-integration java plugins
Last synced: about 1 month ago
JSON representation
Apache maven plugin for failing fast at build time when using maven resources filtering with environment based <filters>. This maven plugin will force you to keep in sync all properties files with the reference.
- Host: GitHub
- URL: https://github.com/cedricwalter/properties-sync-maven-plugin
- Owner: cedricwalter
- License: gpl-3.0
- Created: 2017-03-08T13:45:16.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-19T10:38:13.000Z (over 7 years ago)
- Last Synced: 2024-10-13T09:04:27.235Z (2 months ago)
- Topics: apache-maven, continuous-delivery, continuous-integration, java, plugins
- Language: Java
- Homepage:
- Size: 19.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Introduction
Apache maven plugin for **failing fast** at build time when using maven resources filtering with environment based ``## Scenario
* You use maven filtering: some files get filtered because they may contains stage dependent values for example.
* you have some properties files that are used, and need to be kept in sync with another reference.properties.This maven plugin will force you to keep in sync all properties files with the reference.
**In Short it compare files against a reference file and enforce consistency.**
# Quick Usage
properties-sync-maven-plugin is available in Maven Central.```
com.cedricwalter
properties-sync-maven-plugin
1.0
properties
process-resources
${basedir}/src/main/resources
reference.properties
[a-zA-Z]*.properties
```
# Complete exampleImagine you have a folder src/main/filters which contains
* localhost.properties
* host1.propertiesYou want to force developer to keep in sync localhost.properties and host1.properties
Example of filtering
```
${basedir}/src/main/filters/${hostname}.properties
org.apache.maven.plugins
maven-resources-plugin
3.0.1
filter-resources
process-resources
resources
zip
jks
jar
tar.gz
com.cedricwalter
properties-sync-maven-plugin
1.0
properties
process-resources
${basedir}/src/main/filters
localhost.properties
host1.properties
```
The build will now failed if both files do not contains the same number of keys.