public abstract class AbstractMuleMojo
extends org.apache.maven.plugin.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 org.apache.maven.artifact.factory.ArtifactFactory |
artifactFactory |
protected String |
businessGroup
Business group for deployment, if it is a nested one its format should be first.second.
|
protected org.apache.maven.settings.crypto.SettingsDecrypter |
decrypter |
protected AbstractMuleMojo.DeploymentType |
deploymentType
Deployment information.
|
protected File |
domain |
protected String |
environment
Anypoint environment name.
|
protected org.apache.maven.artifact.repository.ArtifactRepository |
localRepository |
protected org.apache.maven.project.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 org.apache.maven.settings.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 org.apache.maven.artifact.Artifact |
resolveMavenProjectArtifact() |
@Component protected org.apache.maven.settings.Settings settings
@Component protected org.apache.maven.settings.crypto.SettingsDecrypter decrypter
@Component protected org.apache.maven.project.MavenProject mavenProject
@Component protected org.apache.maven.artifact.factory.ArtifactFactory artifactFactory
@Parameter(defaultValue="${localRepository}",
readonly=true)
protected org.apache.maven.artifact.repository.ArtifactRepository localRepository
@Parameter(property="mule.skip") protected String skip
@Parameter protected File domain
@Parameter(property="script",
required=false)
protected File script
@Parameter(property="mule.timeout",
required=false)
protected int timeout
@Parameter(required=false,
property="maven.server")
protected String server
@Parameter(required=false,
property="anypoint.username")
protected String username
@Parameter(required=false,
property="anypoint.password")
protected String password
@Parameter(required=true) protected AbstractMuleMojo.DeploymentType deploymentType
@Parameter(readonly=true,
property="anypoint.uri",
defaultValue="https://anypoint.mulesoft.com")
protected String uri
@Parameter(required=false,
property="anypoint.environment")
protected String environment
@Parameter(property="mule.home") protected File muleHome
muleDistribution and muleVersion are mutual exclusive.@Parameter(property="mule.version") protected String muleVersion
muleDistribution parameter.
This parameter and muleDistribution are mutual exclusive.@Parameter(defaultValue="2",
required=true)
protected Integer size
@Parameter(defaultValue="",
property="anypoint.businessGroup")
protected String businessGroup
@Parameter(defaultValue="Medium",
readonly=true,
property="arm.insecure")
protected boolean armInsecure
@Parameter(property="mule.application") protected File application
@Parameter(readonly=true,
property="applicationName")
protected String applicationName
@Parameter(property="anypoint.target") protected String target
targetType@Parameter(property="anypoint.target.type") protected TargetType targetType
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionMojo.execute()protected abstract void doExecute()
throws org.apache.maven.plugin.MojoFailureException,
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected File getDependency(ArtifactDescription artifactDescription) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void addDomain(Deployer deployer) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected String readFile(String file) throws IOException
IOExceptionprotected void executeGroovyScript()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void addDependencies(Deployer deployer) throws org.apache.maven.plugin.MojoFailureException, org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureExceptionorg.apache.maven.plugin.MojoExecutionExceptionprotected org.apache.maven.artifact.Artifact resolveMavenProjectArtifact()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void initializeApplication()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionprotected void initializeEnvironment()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionCopyright © 2017. All rights reserved.