Class WfFeaturePackBuildMojo

  • All Implemented Interfaces:
    org.apache.maven.plugin.ContextEnabled, org.apache.maven.plugin.Mojo

    @Mojo(name="build-feature-pack",
          requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
          defaultPhase=COMPILE)
    public class WfFeaturePackBuildMojo
    extends AbstractFeaturePackBuildMojo
    This Maven mojo creates a WildFly style feature-pack archive from the provided resources according to the feature-pack build configuration file and attaches it to the current Maven project as an artifact. The content of the future feature-pack archive is first created in the directory called `layout` under the module's build directory which is then ZIPped to create the feature-pack artifact.
    Author:
    Alexey Loubyansky
    • Field Detail

      • forkEmbedded

        @Parameter(alias="fork-embedded",
                   required=false)
        protected boolean forkEmbedded
        Used only for feature spec generation and indicates whether to launch the embedded server to read feature descriptions in a separate process
      • wildflyHome

        @Parameter(alias="wildfly-home",
                   property="wfgp.wildflyHome",
                   defaultValue="${project.build.directory}/wildfly",
                   required=true)
        protected java.io.File wildflyHome
        Used only for feature spec generation and points to a directory from which the embedded WildFly instance will be started that is used for exporting the meta-model. Intended mainly for debugging.
      • moduleTemplatesDir

        @Parameter(alias="module-templates",
                   property="wfgp.moduleTemplatesDir",
                   defaultValue="${project.build.directory}/module-templates",
                   required=true)
        protected java.io.File moduleTemplatesDir
        Used only for feature spec generation and points to a directory where the module templates from the dependent feature packs are gathered before they are transformed and copied under their default destination wildflyHome/modules. Intended mainly for debugging.
      • featureSpecsOutput

        @Parameter(alias="feature-specs-output",
                   defaultValue="${project.build.directory}/resources/features",
                   required=true)
        protected java.io.File featureSpecsOutput
        The directory where the generated feature specs are written.
    • Constructor Detail

      • WfFeaturePackBuildMojo

        public WfFeaturePackBuildMojo()
    • Method Detail

      • getBuildConfig

        protected WildFlyFeaturePackBuild getBuildConfig()
                                                  throws org.apache.maven.plugin.MojoExecutionException
        Throws:
        org.apache.maven.plugin.MojoExecutionException
      • doExecute

        protected void doExecute()
                          throws org.apache.maven.plugin.MojoExecutionException,
                                 org.apache.maven.plugin.MojoFailureException
        Specified by:
        doExecute in class AbstractFeaturePackBuildMojo
        Throws:
        org.apache.maven.plugin.MojoExecutionException
        org.apache.maven.plugin.MojoFailureException