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

it.ozimov
ArtifactId

ArtifactId

yaml-properties-maven-plugin
Last Version

Last Version

1.1.3
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
Project Organization

Project Organization

MojoHaus
Source Code Management

Source Code Management

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

Download yaml-properties-maven-plugin

How to add to project

<plugin>
    <groupId>it.ozimov</groupId>
    <artifactId>yaml-properties-maven-plugin</artifactId>
    <version>1.1.3</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.3. To use it in Maven, replace the following code

<groupId>org.codehaus.mojo</groupId>
<artifactId>properties-maven-plugin</artifactId>
<version>1.0.0</version>

with:

<groupId>it.ozimov</groupId>
<artifactId>yaml-properties-maven-plugin</artifactId>
<version>1.1.3</version>

Example of usage:

<plugin>
    <groupId>it.ozimov</groupId>
    <artifactId>yaml-properties-maven-plugin</artifactId>
    <version>LATES</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>
it.ozimov

Ozimov

Versions

Version
1.1.3
1.1.2
1.1.1
1.1.0