public abstract class AbstractAWSMojo<S extends com.amazonaws.AmazonWebServiceClient>
extends org.apache.maven.plugin.AbstractMojo
implements org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizable
NOTE: Settings in this class use properties based in "beanstalker", which is the project. The beanstalk module, though, prefixes then as "beanstalk" instead
Parts of this class come from maven-gae-plugin's source code.| Modifier and Type | Field and Description |
|---|---|
protected com.amazonaws.auth.AWSCredentialsProvider |
awsCredentialsProvider
AWS Credentials
|
protected AWSClientFactory |
clientFactory |
protected org.codehaus.plexus.context.Context |
context |
protected boolean |
ignoreExceptions
Ignore Exceptions?
|
protected String |
regionName
Service region e.g.
|
protected com.amazonaws.regions.Region |
regionObj |
protected String |
serverId
The server id in maven settings.xml to use for AWS Services Credentials (accessKey /
secretKey)
|
protected org.apache.maven.settings.Settings |
settings
Maven Settings Reference
|
protected boolean |
verbose
Verbose Logging?
|
protected String |
version |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractAWSMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
configure()
Extension Point - Meant for others to declare and redefine variables as needed.
|
void |
contextualize(org.codehaus.plexus.context.Context context) |
protected void |
displayResults(Object result,
int level) |
void |
execute() |
protected abstract Object |
executeInternal() |
protected Expose |
exposeSettings(String serverId) |
com.amazonaws.auth.AWSCredentialsProvider |
getAWSCredentials() |
protected com.amazonaws.ClientConfiguration |
getClientConfiguration() |
AWSClientFactory |
getClientFactory() |
protected com.amazonaws.regions.Region |
getRegion() |
S |
getService() |
protected String |
getUserAgent() |
void |
handleException(Exception e) |
boolean |
isVerbose() |
protected void |
setupService() |
protected void |
setupVersion() |
@Parameter(property="settings",
required=true,
readonly=true)
protected org.apache.maven.settings.Settings settings
protected com.amazonaws.auth.AWSCredentialsProvider awsCredentialsProvider
@Parameter(property="beanstalker.serverId",
defaultValue="aws.amazon.com")
protected String serverId
@Parameter(property="beanstalker.verbose",
defaultValue="false")
protected boolean verbose
@Parameter(property="beanstalker.ignoreExceptions",
defaultValue="false")
protected boolean ignoreExceptions
protected String version
protected org.codehaus.plexus.context.Context context
@Parameter(property="beanstalker.region") protected String regionName
Service region e.g. "us-east-1"
Note: Does not apply to all services.
"-Cloudfront, I'm talking to you! Look at me when I do that!"
See this list for reference.
protected com.amazonaws.regions.Region regionObj
protected AWSClientFactory clientFactory
protected com.amazonaws.regions.Region getRegion()
public com.amazonaws.auth.AWSCredentialsProvider getAWSCredentials()
throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionpublic AWSClientFactory getClientFactory()
protected Expose exposeSettings(String serverId) throws org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoFailureExceptionpublic void contextualize(org.codehaus.plexus.context.Context context)
throws org.codehaus.plexus.context.ContextException
contextualize in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Contextualizableorg.codehaus.plexus.context.ContextExceptionprotected com.amazonaws.ClientConfiguration getClientConfiguration()
protected final String getUserAgent()
protected void setupVersion()
protected void setupService()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic S getService()
public final void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
execute in interface org.apache.maven.plugin.Mojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void configure()
public void handleException(Exception e) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected void displayResults(Object result, int level)
public boolean isVerbose()
Copyright © 2011-2015 ingenieux. All Rights Reserved.