public abstract class AbstractDependencyMojo extends AbstractHelmMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
overwriteDependencyRepository
Value used to overwrite a local path chart's repository within a chart's dependencies.
|
protected String |
overwriteDependencyVersion
Value used to overwrite a local path chart's version within a chart's dependencies.
|
protected boolean |
overwriteLocalDependencies
Controls whether a local path chart should be used for a chart dependency.
|
mavenProject, mavenProjectHelper, settings, skip| Constructor and Description |
|---|
AbstractDependencyMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doOverwriteLocalDependencies(Path chartDirectory)
Overwrites the local path of a chart dependency with the desired repository and version when
helm.overwriteLocalDependencies is set to
true. |
getHelmExecutableDirectory, getHelmVersion, getOutputDirectory, isPlainHttpgetLog, getPluginContext, setLog, setPluginContext@Parameter(property="helm.overwriteLocalDependencies",
defaultValue="false")
protected boolean overwriteLocalDependencies
true, chart
dependencies on a local path chart will be overwritten with the respective properties set by
"helm.overwriteDependencyVersion" and "helm.overwriteDependencyRepository". This is helpful for deploying charts
with intra repository dependencies, while still being able to use local path dependencies for development builds.
Example usage:
@Parameter(property="helm.overwriteDependencyVersion") protected String overwriteDependencyVersion
true for this to apply.@Parameter(property="helm.overwriteDependencyRepository") protected String overwriteDependencyRepository
true for this to apply.protected void doOverwriteLocalDependencies(Path chartDirectory) throws org.apache.maven.plugin.MojoExecutionException
true.chartDirectory - directory containing a Helm chartorg.apache.maven.plugin.MojoExecutionException - Null value for 'overwriteDependencyRepository'Copyright © 2017–2023 Kokuwa.io. All rights reserved.