@Mojo(name="build-feature-pack",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=COMPILE)
public class WfFeaturePackBuildMojo
extends AbstractFeaturePackBuildMojo
| Modifier and Type | Field and Description |
|---|---|
protected File |
featureSpecsOutput
The directory where the generated feature specs are written.
|
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
|
protected boolean |
jakartaTransform
Whether to transform artifacts from javax.* to jakarta.* before generating feature specs.
|
protected File |
jakartaTransformConfigsDir
Directory where external user provided transformation configs are located (turns of default transformation rules).
|
protected List<String> |
jakartaTransformExcludedArtifacts
A list of regular expression filters to exclude a list of
GroupId:ArtifactId from jakarta transformation.
|
protected File |
jakartaTransformRepo
The directory where a generated local maven repo containing Jakarta-transformed artifacts are stored.
|
protected boolean |
jakartaTransformVerbose
If jakarta-transform is true, whether to produce verbose log output of the transformation work.
|
protected 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. |
protected 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.
|
artifactResolver, project, repoSession, repositories, repoSystem, session, taskProps| Constructor and Description |
|---|
WfFeaturePackBuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doExecute() |
protected WildFlyFeaturePackBuild |
getBuildConfig() |
addPackage, buildFeaturePack, debug, execute, getArtifactVersions, getFpDependencies, getFpDir, getPackagesDir, getWildFlyResourcesDir, getWorkDir, handleAddOns, handleLayers, handleModules, processFeaturePackDependencies, resolveArtifact, resolveVersion, setupDirs, warn@Parameter(alias="fork-embedded",
required=false)
protected boolean forkEmbedded
@Parameter(alias="wildfly-home",
property="wfgp.wildflyHome",
defaultValue="${project.build.directory}/wildfly",
required=true)
protected File wildflyHome
@Parameter(alias="module-templates",
property="wfgp.moduleTemplatesDir",
defaultValue="${project.build.directory}/module-templates",
required=true)
protected File moduleTemplatesDir
wildflyHome/modules. Intended mainly for debugging.@Parameter(alias="feature-specs-output",
defaultValue="${project.build.directory}/resources/features",
required=true)
protected File featureSpecsOutput
@Parameter(alias="jakarta-transform",
required=false)
protected boolean jakartaTransform
@Parameter(alias="jakarta-transform-configs-dir",
required=false)
protected File jakartaTransformConfigsDir
@Parameter(alias="jakarta-transform-verbose",
required=false)
protected boolean jakartaTransformVerbose
@Parameter(alias="jakarta-transform-maven-repo",
defaultValue="${project.build.directory}/jakarta-transform-maven-repo",
required=true)
protected File jakartaTransformRepo
@Parameter(alias="jakarta-transform-excluded-artifacts",
required=false)
protected List<String> jakartaTransformExcludedArtifacts
<jakarta-transform-excluded-artifacts>
<exclude>org.wildfly:wildfly-ee\z</exclude>
<exclude>io.smallrye.config:smallrye-config\z</exclude>
</jakarta-transform-excluded-artifacts>
protected WildFlyFeaturePackBuild getBuildConfig() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionprotected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
doExecute in class AbstractFeaturePackBuildMojoorg.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2016–2021 JBoss by Red Hat. All rights reserved.