check-staging-properties-maven-plugin

Checks stage dependent properties

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

de.codecentric
ArtifactId

ArtifactId

check-staging-properties-maven-plugin
Last Version

Last Version

1.0.4
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

check-staging-properties-maven-plugin
Checks stage dependent properties
Project URL

Project URL

https://github.com/codecentric/check-staging-properties-maven-plugin
Project Organization

Project Organization

codecentric AG
Source Code Management

Source Code Management

https://github.com/codecentric/check-staging-properties-maven-plugin/tree/master

Download check-staging-properties-maven-plugin

How to add to project

<plugin>
    <groupId>de.codecentric</groupId>
    <artifactId>check-staging-properties-maven-plugin</artifactId>
    <version>1.0.4</version>
</plugin>

Dependencies

provided (2)

Group / Artifact Type Version
org.apache.maven : maven-plugin-api jar 3.3.9
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.5

test (1)

Group / Artifact Type Version
junit : junit jar 4.12

Project Modules

There are no modules declared in this project.

check-staging-properties-maven-plugin

GitHub license Build Status Codacy grade Coveralls Maven Central

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:

<plugin>
  <groupId>de.codecentric</groupId>
  <artifactId>check-staging-properties-maven-plugin</artifactId>
  <version>1.0.4</version>
  <executions>
    <execution>
      <phase>verify</phase>
      <goals>
        <goal>check</goal>
      </goals>
    </execution>
  </executions>
  <configuration>
    <directory>src/main/resources</directory>
    <groups>
      <group>credentials-(.*)\.properties</group>
      <group>settings-(.*)\.properties</group>
    </groups>
  </configuration>
</plugin>

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.

de.codecentric

codecentric AG

Versions

Version
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0