@Mojo(name="build-feature-pack",
requiresDependencyResolution=RUNTIME,
defaultPhase=COMPILE)
public class WfFeaturePackBuildMojo
extends org.apache.maven.plugin.AbstractMojo
| Modifier and Type | Field and Description |
|---|---|
protected org.apache.maven.shared.artifact.resolve.ArtifactResolver |
artifactResolver |
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 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 org.apache.maven.project.MavenProject |
project |
protected List<org.eclipse.aether.repository.RemoteRepository> |
repositories |
protected org.eclipse.aether.RepositorySystem |
repoSystem |
protected org.apache.maven.execution.MavenSession |
session |
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.
|
| Constructor and Description |
|---|
WfFeaturePackBuildMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
protected WildFlyFeaturePackBuild |
getBuildConfig() |
Path |
resolveArtifact(ArtifactCoords coords) |
String |
resolveVersion(String coordsWoVersion) |
@Parameter(defaultValue="${project}",
readonly=true,
required=true)
protected org.apache.maven.project.MavenProject project
@Parameter(defaultValue="${session}",
readonly=true,
required=true)
protected org.apache.maven.execution.MavenSession session
@Parameter(defaultValue="${project.remoteProjectRepositories}",
readonly=true,
required=true)
protected List<org.eclipse.aether.repository.RemoteRepository> repositories
@Component protected org.eclipse.aether.RepositorySystem repoSystem
@Component protected org.apache.maven.shared.artifact.resolve.ArtifactResolver artifactResolver
@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
public void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionprotected WildFlyFeaturePackBuild getBuildConfig() throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic String resolveVersion(String coordsWoVersion) throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionExceptionpublic Path resolveArtifact(ArtifactCoords coords) throws org.jboss.galleon.ProvisioningException
org.jboss.galleon.ProvisioningExceptionCopyright © 2016–2018 JBoss by Red Hat. All rights reserved.