Class CloudManagerAllPackageMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
io.wcm.devops.conga.plugins.aem.maven.CloudManagerAllPackageMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name="cloudmanager-all-package",
threadSafe=true)
public final class CloudManagerAllPackageMojo
extends org.apache.maven.plugin.AbstractMojo
Builds an "all" content package dedicated for deployment via Adobe Cloud Manager
for the given environment and node(s).
By default, it builds one "all" package per environment and node without adding any Cloud Manager
environment-specific run mode suffixes to the folders. By defining a parameter cloudManager.target
(contains a list of string values) in the CONGA environment it is possible:
- If it contains
noneno "all" package is build. - If set to one or multiple environment names (normally dev/stage/prod) one "all" package for each of them is defined, and the environment name is added as runmode suffix to all config and install folders.
-
Field Summary
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()Get directory of the selected environment.getNodeDirs(File environmentDir) Get matching node directories from environment.protected Fileprotected booleanisEnvironmentConfiguredExplicitely(String environment) Checks if the given environment was configured explicitly in plugin configuration.Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Constructor Details
-
CloudManagerAllPackageMojo
public CloudManagerAllPackageMojo()
-
-
Method Details
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
getTargetDir
- Returns:
- Target directory
-
getEnvironmentDir
Get directory of the selected environment. It has to be exactly one matching environment.- Returns:
- Environment directory
- Throws:
org.apache.maven.plugin.MojoExecutionException- if no or multiple directories found
-
isEnvironmentConfiguredExplicitely
Checks if the given environment was configured explicitly in plugin configuration.- Parameters:
environment- Environment name- Returns:
- true if configured explicitly
-
getNodeDirs
Get matching node directories from environment.- Parameters:
environmentDir- Environment directory- Returns:
- List of directories
-