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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Unit execute()
      • 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
    • Constructor Detail

      • GenerateCloudFormationMojo

        GenerateCloudFormationMojo()