This Plugin is intended for systems/plugins that cannot handle YAML merge keys itself. The plugin can parse and process yaml files and store them in an output file with the merge keys resolve.
Releases are published to Maven Central.
also see the maven plugin documentation
If you just want to process a single file, you can specify an input and an output file path.
<plugin>
<groupId>ch.codevo.maven</groupId>
<artifactId>yaml-merge-maven-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<goals>
<goal>resolve</goal>
</goals>
</execution>
</executions>
<configuration>
<input>${project.basedir}/src/main/resources/input.yaml</input>
<output>${project.build.directory}/output.yaml</output>
</configuration>
</plugin>
If you specify a folder as input the plugin will search for all .yaml and .yml files and process them.
<plugin>
<groupId>ch.codevo.maven</groupId>
<artifactId>yaml-merge-maven-plugin</artifactId>
<version>0.0.1</version>
<executions>
<execution>
<goals>
<goal>resolve</goal>
</goals>
</execution>
</executions>
<configuration>
<input>${project.basedir}/src/main/resources/yamls/</input>
<output>${project.build.directory}/processed-yamls/</output>
</configuration>
</plugin>
There are several options for configure a http proxy to be used to download a yaml file from an url.
there is the possibility to configure a proxy with the plugin configuration.
<plugin>
...
<configuration>
...
<proxy>
<host>some-proxy</host>
<port>8080</port>
<noProxyHosts>noproxy1,noproxy2</noProxyHosts>
</proxy>
</configuration>
</plugin>
Providing a proxy via maven settings.xml, see Maven Proxies.
nonProxyHosts
is supported.
Providing a proxy via java system properties or the command line, see Java HTTP Proxies
-Dhttp.proxyHost=some-proxy -Dhttp.proxyPort=8080
or
-Dhttps.proxyHost=some-proxy -Dhttps.proxyPort=8080
-Dhttp.nonProxyHosts
and -Dhttps.nonProxyHosts
is supported.
The plugin will read the environment variable http_proxy
and https_proxy
from your system and use them if available (lower and uppercase).
no_proxy
is supported.