Package org.wildfly.plugin.provision
Class ProvisionServerMojo
java.lang.Object
org.apache.maven.plugin.AbstractMojo
org.wildfly.plugin.provision.ProvisionServerMojo
- All Implemented Interfaces:
org.apache.maven.plugin.ContextEnabled
,org.apache.maven.plugin.Mojo
@Mojo(name="provision",
requiresDependencyResolution=COMPILE_PLUS_RUNTIME,
defaultPhase=PACKAGE)
public class ProvisionServerMojo
extends org.apache.maven.plugin.AbstractMojo
Provision a server.
- Since:
- 3.0
- Author:
- jfdenise
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.jboss.galleon.universe.maven.repo.MavenRepoManager
protected String
The path to the directory where to provision the server.Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jboss.galleon.api.config.GalleonProvisioningConfig
buildGalleonConfig
(org.jboss.galleon.api.GalleonBuilder galleonBuilder) protected void
void
execute()
protected org.jboss.galleon.api.config.GalleonProvisioningConfig
protected String
getGoal()
protected void
serverProvisioned
(Path jbossHome) Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
-
Field Details
-
provisioningDir
@Parameter(alias="provisioning-dir", property="wildfly.provisioning.dir", defaultValue="server") protected String provisioningDirThe path to the directory where to provision the server. Can be an absolute path or a path relative to the buildDir. By default the server is provisioned into thetarget/server
directory. -
artifactResolver
protected org.jboss.galleon.universe.maven.repo.MavenRepoManager artifactResolver
-
-
Constructor Details
-
ProvisionServerMojo
public ProvisionServerMojo()
-
-
Method Details
-
getGoal
-
serverProvisioned
protected void serverProvisioned(Path jbossHome) throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException - Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
execute
public void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException- Throws:
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
-
enrichRepositories
protected void enrichRepositories() throws org.apache.maven.plugin.MojoExecutionException- Throws:
org.apache.maven.plugin.MojoExecutionException
-
buildGalleonConfig
protected org.jboss.galleon.api.config.GalleonProvisioningConfig buildGalleonConfig(org.jboss.galleon.api.GalleonBuilder galleonBuilder) throws org.apache.maven.plugin.MojoExecutionException, org.jboss.galleon.ProvisioningException - Throws:
org.apache.maven.plugin.MojoExecutionException
org.jboss.galleon.ProvisioningException
-
getDefaultConfig
protected org.jboss.galleon.api.config.GalleonProvisioningConfig getDefaultConfig() throws org.jboss.galleon.ProvisioningException- Throws:
org.jboss.galleon.ProvisioningException
-