public abstract class AbstractMuleMojo
extends AbstractMojo
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMuleMojo.DeploymentType |
| Modifier and Type | Field and Description |
|---|---|
protected File |
application
Application file to be deployed.
|
protected String |
applicationName
Name of the application to deploy/undeploy.
|
protected boolean |
armInsecure
Use insecure mode for ARM deployment: do not validate certificates, nor hostname.
|
protected ArtifactFactory |
artifactFactory |
protected ArtifactResolver |
artifactResolver |
protected String |
businessGroup
Business group for deployment, if it is a nested one its format should be first.second.
|
protected SettingsDecrypter |
decrypter |
protected AbstractMuleMojo.DeploymentType |
deploymentType
Deployment information.
|
protected File |
domain |
protected String |
environment
Anypoint environment name.
|
protected ArtifactRepository |
localRepository |
protected MavenProject |
mavenProject |
protected File |
muleHome
Path to a Mule Standalone server.
|
protected String |
muleVersion
Version of the Mule Runtime Enterprise distribution to download.
|
protected String |
password
Anypoint Platform password.
|
protected File |
script |
protected String |
server
Maven server with Anypoint Platform credentials.
|
protected Settings |
settings |
protected Integer |
size
Number of cluster nodes.
|
protected String |
skip |
protected String |
target
Anypoint Platform target name.
|
protected TargetType |
targetType
Anypoint Platform target type: server, serverGroup or cluster.
|
protected int |
timeout |
protected String |
uri
Anypoint Platform URI, can be configured to use with On Premise platform..
|
protected String |
username
Anypoint Platform username.
|
| Constructor and Description |
|---|
AbstractMuleMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addDependencies(Deployer deployer) |
protected void |
addDomain(Deployer deployer) |
protected abstract void |
doExecute() |
void |
execute() |
protected void |
executeGroovyScript() |
protected File |
getDependency(ArtifactDescription artifactDescription) |
protected void |
initializeApplication() |
protected void |
initializeEnvironment() |
protected String |
readFile(String file) |
protected Artifact |
resolveMavenProjectArtifact() |
protected Settings settings
protected SettingsDecrypter decrypter
protected MavenProject mavenProject
protected ArtifactFactory artifactFactory
protected ArtifactResolver artifactResolver
protected ArtifactRepository localRepository
protected String skip
protected File domain
protected File script
protected int timeout
protected String server
protected String username
protected String password
protected AbstractMuleMojo.DeploymentType deploymentType
protected String uri
protected String environment
protected File muleHome
muleDistribution and muleVersion are mutual exclusive.protected String muleVersion
muleDistribution parameter.
This parameter and muleDistribution are mutual exclusive.protected Integer size
protected String businessGroup
protected boolean armInsecure
protected File application
protected String applicationName
protected String target
targetTypeprotected TargetType targetType
public void execute()
throws MojoExecutionException,
MojoFailureException
MojoExecutionExceptionMojoFailureExceptionorg.apache.maven.plugin.Mojo#execute()protected abstract void doExecute()
throws MojoFailureException,
MojoExecutionException
MojoFailureExceptionMojoExecutionExceptionprotected File getDependency(ArtifactDescription artifactDescription) throws MojoExecutionException, MojoFailureException
MojoExecutionExceptionMojoFailureExceptionprotected void addDomain(Deployer deployer) throws MojoFailureException
MojoFailureExceptionprotected String readFile(String file) throws IOException
IOExceptionprotected void executeGroovyScript()
throws MojoExecutionException
MojoExecutionExceptionprotected void addDependencies(Deployer deployer) throws MojoFailureException, MojoExecutionException
MojoFailureExceptionMojoExecutionExceptionprotected Artifact resolveMavenProjectArtifact()
throws MojoFailureException
MojoFailureExceptionprotected void initializeApplication()
throws MojoFailureException
MojoFailureExceptionprotected void initializeEnvironment()
throws MojoExecutionException
MojoExecutionExceptionCopyright © 2017 MuleSoft Inc. All rights reserved.