Package org.wildfly.galleon.maven
Class WfFeaturePackBuildMojo
- java.lang.Object
-
- org.apache.maven.plugin.AbstractMojo
-
- org.wildfly.galleon.maven.AbstractFeaturePackBuildMojo
-
- org.wildfly.galleon.maven.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 AbstractFeaturePackBuildMojoThis 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 Summary
Fields Modifier and Type Field Description protected java.io.FilefeatureSpecsOutputThe directory where the generated feature specs are written.protected booleanforkEmbeddedUsed only for feature spec generation and indicates whether to launch the embedded server to read feature descriptions in a separate processprotected java.io.FilemoduleTemplatesDirUsed 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 destinationwildflyHome/modules.protected java.io.FilewildflyHomeUsed 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.-
Fields inherited from class org.wildfly.galleon.maven.AbstractFeaturePackBuildMojo
addFeaturePacksAsRequiredChannels, artifactResolver, channelGenerated, jakartaTransform, jakartaTransformConfigsDir, jakartaTransformExcludedArtifacts, jakartaTransformRepo, jakartaTransformVerbose, project, repoSession, repositories, repoSystem, session, taskProps
-
-
Constructor Summary
Constructors Constructor Description WfFeaturePackBuildMojo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoExecute()protected WildFlyFeaturePackBuildgetBuildConfig()-
Methods inherited from class org.wildfly.galleon.maven.AbstractFeaturePackBuildMojo
addPackage, buildFeaturePack, debug, execute, getArtifactVersions, getFpDependencies, getFpDir, getJakartaTransformation, getPackagesDir, getWildFlyResourcesDir, getWorkDir, handleAddOns, handleLayers, handleModules, processFeaturePackDependencies, resolveArtifact, resolveVersion, setupDirs, transformOnlyArtifactDependencies, warn
-
-
-
-
Field Detail
-
forkEmbedded
@Parameter(alias="fork-embedded", required=false) protected boolean forkEmbeddedUsed 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 wildflyHomeUsed 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 moduleTemplatesDirUsed 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 destinationwildflyHome/modules. Intended mainly for debugging.
-
featureSpecsOutput
@Parameter(alias="feature-specs-output", defaultValue="${project.build.directory}/resources/features", required=true) protected java.io.File featureSpecsOutputThe directory where the generated feature specs are written.
-
-
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:
doExecutein classAbstractFeaturePackBuildMojo- Throws:
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureException
-
-