diff --git a/README.md b/README.md index 3c487ea0..d114edb6 100644 --- a/README.md +++ b/README.md @@ -153,3 +153,30 @@ Parameter | Type | User Property | Required | Description ``| [HelmRepository](./src/main/java/com/kiwigrid/helm/maven/plugin/HelmRepository.java) | helm.uploadRepo.snapshot | false | Upload repository for snapshot charts (determined by version postfix 'SNAPSHOT') `` | boolean | helm.init.skipRefresh | false | do not refresh (download) the local repository cache while init `` | string | helm.security | false | path to your [settings-security.xml](https://maven.apache.org/guides/mini/guide-encryption.html) (default: `~/.m2/settings-security.xml`) + +## Packaging with the helm lifecycle + +To keep your pom files small you can use 'helm' packaging. This binds `helm:init` to the initialize phase, `helm:lint` to the test phase, `helm:package` to the package phase and `helm:upload` to the deploy phase. + +```xml + + my-helm-charts + 0.0.1 + helm + ... + + + + com.kiwigrid + helm-maven-plugin + + true + + ... + + + + .... + + +``` diff --git a/src/main/resources/META-INF/plexus/components.xml b/src/main/resources/META-INF/plexus/components.xml new file mode 100644 index 00000000..ad0b2b48 --- /dev/null +++ b/src/main/resources/META-INF/plexus/components.xml @@ -0,0 +1,23 @@ + + + + org.apache.maven.lifecycle.mapping.LifecycleMapping + helm + org.apache.maven.lifecycle.mapping.DefaultLifecycleMapping + + + + + default + + com.kiwigrid:helm-maven-plugin:init + com.kiwigrid:helm-maven-plugin:lint + com.kiwigrid:helm-maven-plugin:package + com.kiwigrid:helm-maven-plugin:upload + + + + + + +