@Mojo(name="add-resource",
threadSafe=true)
public class AddResourceMojo
extends AbstractServerConnection
force is set to false and the resource has already been deployed to the server, an error will
occur and the operation will fail.
Note: this currently only works with adding resources to subsystems when your server is running in domain
mode.| Modifier and Type | Field and Description |
|---|---|
static String |
GOAL |
CLIENT_LOCK, 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| Constructor and Description |
|---|
AddResourceMojo() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String |
goal()
The goal of the deployment.
|
close, getCallbackHandler, getClient, getHostAddress, getPort, hostname, isDomainServerpublic static final String GOAL
public String goal()
AbstractServerConnectiongoal in class AbstractServerConnectionpublic void execute()
throws org.apache.maven.plugin.MojoExecutionException,
org.apache.maven.plugin.MojoFailureException
org.apache.maven.plugin.MojoExecutionExceptionorg.apache.maven.plugin.MojoFailureExceptionCopyright © 2013 JBoss by Red Hat. All Rights Reserved.