@Mojo(name="redeploy", requiresDependencyResolution=RUNTIME, threadSafe=true) @Execute(phase=PACKAGE) public class RedeployMojo extends AbstractServerConnection
Modifier and Type | Field and Description |
---|---|
protected org.apache.maven.project.MavenProject |
project |
DEBUG_MESSAGE_NO_CREDS, DEBUG_MESSAGE_NO_ID, DEBUG_MESSAGE_NO_SERVER_SECTION, DEBUG_MESSAGE_NO_SETTINGS_FILE, DEBUG_MESSAGE_POM_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_CREDS, DEBUG_MESSAGE_SETTINGS_HAS_ID, timeout
Constructor and Description |
---|
RedeployMojo() |
Modifier and Type | Method and Description |
---|---|
protected Deployment |
createDeployment() |
void |
execute() |
protected DeploymentResult |
executeDeployment(DeploymentManager deploymentManager,
Deployment deployment) |
protected File |
file()
The archive file.
|
String |
goal()
The goal of the deployment.
|
protected boolean |
skipExecution() |
protected void |
validate(boolean isDomain)
Validates the deployment.
|
createClient, getClientConfiguration
@Parameter(defaultValue="${project}", readonly=true, required=true) protected org.apache.maven.project.MavenProject project
public String goal()
protected DeploymentResult executeDeployment(DeploymentManager deploymentManager, Deployment deployment) throws IOException, MojoDeploymentException
IOException
MojoDeploymentException
protected boolean skipExecution()
protected File file()
public final void execute() throws org.apache.maven.plugin.MojoExecutionException, org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoFailureException
protected Deployment createDeployment()
protected void validate(boolean isDomain) throws MojoDeploymentException
isDomain
- true
if this is a domain server, otherwise false
MojoDeploymentException
- if the deployment is invalidCopyright © 2019 JBoss by Red Hat. All rights reserved.