Package ws.osiris.maven
Class GenerateCloudFormationMojo
-
- All Implemented Interfaces:
-
org.apache.maven.plugin.ContextEnabled,org.apache.maven.plugin.Mojo
@Mojo(name = "generate-cloudformation", defaultPhase = LifecyclePhase.PACKAGE, requiresDependencyResolution = ResolutionScope.COMPILE_PLUS_RUNTIME) public final class GenerateCloudFormationMojo extends OsirisMojo
Mojo defining a goal to generate a CloudFormation template using the API definition and additional configuration.
Generating files in the package phase doesn't feel quite right. But the API must be instantiated to build the CloudFormation template. In order to safely instantiate the API we need all the dependencies available. The easiest way to do this is to use the project jar which is only built during packaging.
-
-
Field Summary
Fields Modifier and Type Field Description private StringrootPackageprivate StringenvironmentNameprivate StringawsProfileprivate StringstackNameprivate StringstaticFilesDirectoryprivate Loglogprivate Map<Object, Object>pluginContext
-
Constructor Summary
Constructors Constructor Description GenerateCloudFormationMojo()
-
Method Summary
-
Methods inherited from class ws.osiris.maven.OsirisMojo
getAwsProfile, getEnvironmentName, getRootPackage, getStackName, getStaticFilesDirectory, setAwsProfile, setEnvironmentName, setRootPackage, setStackName, setStaticFilesDirectory -
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-