Yaml Properties Maven Plugin

The Yaml Properties Maven Plugin is here to make life a little easier when dealing with properties. It provides goals to read and write properties from files.

License

License

Categories

Categories

Maven Build Tools
GroupId

GroupId

com.pro-crafting.maven
ArtifactId

ArtifactId

yaml-properties-maven-plugin
Last Version

Last Version

1.1.4
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

Yaml Properties Maven Plugin
The Yaml Properties Maven Plugin is here to make life a little easier when dealing with properties. It provides goals to read and write properties from files.
Project URL

Project URL

https://github.com/ozimov/yaml-properties-maven-plugin
Source Code Management

Source Code Management

https://github.com/pro-crafting/yaml-properties-maven-plugin

Download yaml-properties-maven-plugin

How to add to project

<plugin>
    <groupId>com.pro-crafting.maven</groupId>
    <artifactId>yaml-properties-maven-plugin</artifactId>
    <version>1.1.4</version>
</plugin>

Dependencies

compile (5)

Group / Artifact Type Version
org.apache.maven : maven-model jar 2.2.1
org.apache.maven : maven-plugin-api jar 2.2.1
org.apache.maven : maven-project jar 2.2.1
org.codehaus.plexus : plexus-utils jar 3.0.22
org.yaml : snakeyaml jar 1.16

provided (1)

Group / Artifact Type Version
org.apache.maven.plugin-tools : maven-plugin-annotations jar 3.4

test (2)

Group / Artifact Type Version
junit : junit jar 4.12
commons-io : commons-io jar 2.4

Project Modules

There are no modules declared in this project.

Yaml-Properties Maven Plugin

A Yaml extension of the MojoHaus Properties Maven Plugin v.1.0.1

Continuous Integration:
Maven Central
Build Status

How to use it?

This extension provides capability to import content from a yaml file into your pom. To this end, you should read the instructions for the properties-maven-plugin.

Just rememeber that current release is version 1.1.4. To use it in Maven, replace the following code

<groupId>com.pro-crafting.maven</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.1.4</version>

with:

<groupId>com.pro-crafting.maven</groupId>
<artifactId>yaml-properties-maven-plugin</artifactId>
<version>1.1.4</version>

Example of usage:

<plugin>
    <groupId>it.ozimov</groupId>
    <artifactId>yaml-properties-maven-plugin</artifactId>
    <version>LATEST</version>
    <executions>
        <execution>
            <phase>initialize</phase>
            <goals>
                <goal>read-project-properties</goal>
            </goals>
            <configuration>
                <files>
                    <file>config/my_configuration.yaml</file>
                </files>
            </configuration>
        </execution>
    </executions>
</plugin>

And then usage in the pom as

 <plugin>
    <groupId>some groupId</groupId>
    <artifactId>some artifactId</artifactId>
    <version>X.Y.Z</version>
    <configuration>
        <cfg_1>${my_yaml_key}</cfg_1>
    </configuration>
</plugin>
com.pro-crafting.maven

Ozimov

Versions

Version
1.1.4