Skip to content

izebit/consul-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Consul maven plugin

Apache License, Version 2.0, January 2004

Overview

Maven plugin for exporting properties from files and directories to consul server 🎲

License

Apache License, Version 2.0, January 2004

Usage

There are only three steps

Add the plugin to your pom.xml:

<plugin>
    <groupId>ru.izebit</groupId>
    <artifactId>consul-maven-plugin</artifactId>
    <version>1.0-SNAPSHOT</version>
    <configuration>
        <connection>
            <username>username</username>
            <password>qwerty</password>
            <url>http://localhost:8500</url>
        </connection>
        <prefix>app/config/</prefix>
        <sources>
            <source>src/main/resources/</source>
        </sources>
    </configuration>
</plugin>

Create a file of properties with the next structure:

first-key = first-value
#it is a comment
second-key =
third-key = #third value

Run a goal to export properties from file:

export-consul:run

About

maven plugin for export properties to consul

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published