Skip to content

chonton/yaml-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaml-maven-plugin

Write yaml file.

Plugin

Plugin reports available at plugin info.

There is a single goal: write, which by default binds to the generate-resources phase. This goal writes the values specified in the configuration into a yaml file at the filename location.

Configuration

Parameter CmdLine Property Description
filename yaml.filename Filename to write yaml
path - Dot separated path to prefix values
yaml - Map of values to write
skip yaml.skip Skip writing yaml

Examples

Typical Use

<build>
  <pluginManagement>
    <plugins>
      <plugin>
        <groupId>org.honton.chas</groupId>
        <artifactId>yaml-maven-plugin</artifactId>
        <version>0.0.1</version>
      </plugin>
    </plugins>
  </pluginManagement>

  <plugins>
    <plugin>
      <groupId>org.honton.chas</groupId>
      <artifactId>yaml-maven-plugin</artifactId>
      <executions>
        <execution>
          <goals>
            <goal>write</goal>
          </goals>
        </execution>
      </executions>
      <configuration>
        <filename>helm/env.yaml</filename>
        <prefix>pipeline</prefix>
        <values>
          <appVersion>${project.version}</appVersion>
          <environment>development</environment>
          <namespace>${group.namespace}</namespace>
          <region>us-east-2</region>
          <theatre>us</theatre>
        </values>
      </configuration>
    </plugin>
  </plugins>
</build>